254 if extension == QWebPage.ErrorPageExtension: |
254 if extension == QWebPage.ErrorPageExtension: |
255 info = sip.cast(option, QWebPage.ErrorPageExtensionOption) |
255 info = sip.cast(option, QWebPage.ErrorPageExtensionOption) |
256 if info.error == 102: |
256 if info.error == 102: |
257 # this is something of a hack; hopefully it will work in the future |
257 # this is something of a hack; hopefully it will work in the future |
258 return False |
258 return False |
|
259 |
|
260 if info.domain == QWebPage.QtNetwork and \ |
|
261 info.error == QNetworkReply.OperationCanceledError and \ |
|
262 info.errorString == "eric5:No Error": |
|
263 return False |
259 |
264 |
260 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn) |
265 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn) |
261 errorPage.baseUrl = info.url |
266 errorPage.baseUrl = info.url |
262 urlString = bytes(info.url.toEncoded()).decode() |
267 urlString = bytes(info.url.toEncoded()).decode() |
263 html = notFoundPage_html |
268 html = notFoundPage_html |