summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Burtsev <kirill.burtsev@qt.io>2020-12-02 12:58:02 +0100
committerKirill Burtsev <kirill.burtsev@qt.io>2021-01-05 19:16:03 +0000
commitf5a93d251cca15cb24a3acacd2fc0f645513c56d (patch)
tree97740324690c3ab6d3a3da153ddc3c23de04d398
parente71010069b4385f8b2751983f7ba01428c4ace34 (diff)
downloadqtwebengine-chromium-83-based.tar.gz
Allow the embedder to suppress an error page for http errors83-based
Change-Id: Ifc0bd4a88a477de6bb786f5fec6f2c2e3278d44a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--chromium/content/renderer/render_frame_impl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/content/renderer/render_frame_impl.cc b/chromium/content/renderer/render_frame_impl.cc
index a25bc15671b..e717166e46f 100644
--- a/chromium/content/renderer/render_frame_impl.cc
+++ b/chromium/content/renderer/render_frame_impl.cc
@@ -4510,6 +4510,11 @@ void RenderFrameImpl::RunScriptsAtDocumentReady(bool document_is_empty) {
return;
WebURL unreachable_url = frame_->GetDocument().Url();
+
+ // Allow the embedder to suppress an error page.
+ if (GetContentClient()->renderer()->ShouldSuppressErrorPage(this, unreachable_url))
+ return;
+
std::string error_html;
GetContentClient()->renderer()->PrepareErrorPageForHttpStatusError(
this, unreachable_url, document_loader->HttpMethod().Ascii(),