mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fixed occasional crash on adblockcleanup
This commit is contained in:
parent
61269f8c0a
commit
c62f297349
@ -175,7 +175,7 @@ void WebPage::addAdBlockRule(const QString &filter, const QUrl &url)
|
||||
QWebElementCollection elements;
|
||||
elements.append(docElement.findAll("*[src=\"" + url.toString() + "\"]"));
|
||||
foreach (QWebElement element, elements)
|
||||
element.removeFromDocument();
|
||||
element.setAttribute("style", "display:none;");
|
||||
}
|
||||
|
||||
bool WebPage::extension(Extension extension, const ExtensionOption* option, ExtensionReturn* output)
|
||||
|
Loading…
Reference in New Issue
Block a user