diff --git a/src/webview/webpage.cpp b/src/webview/webpage.cpp index 15a990075..44aafef25 100644 --- a/src/webview/webpage.cpp +++ b/src/webview/webpage.cpp @@ -304,6 +304,11 @@ bool WebPage::extension(Extension extension, const ExtensionOption* option, Exte const ErrorPageExtensionOption* exOption = static_cast(option); ErrorPageExtensionReturn* exReturn = static_cast(output); + WebPage* erPage = qobject_cast(exOption->frame->page()); + + if (erPage->bytesReceived() != 0) { + return QWebPage::extension(extension, option, output); + } QString errorString; if (exOption->domain == QWebPage::QtNetwork) { @@ -325,8 +330,8 @@ bool WebPage::extension(Extension extension, const ExtensionOption* option, Exte break; case QNetworkReply::ContentAccessDenied: if (exOption->errorString.startsWith("AdBlockRule")) { - if (exOption->frame != exOption->frame->page()->mainFrame()) { //Content in