Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: third_party/WebKit/Source/core/frame/Frame.cpp

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/Frame.cpp
diff --git a/third_party/WebKit/Source/core/frame/Frame.cpp b/third_party/WebKit/Source/core/frame/Frame.cpp
index 9b1434afa3b22c478bf29334f32f561ed62196c2..f53c13f10f29d5526b278c86b9201dbc71201da7 100644
--- a/third_party/WebKit/Source/core/frame/Frame.cpp
+++ b/third_party/WebKit/Source/core/frame/Frame.cpp
@@ -194,7 +194,7 @@ bool Frame::canNavigate(const Frame& targetFrame) {
printNavigationErrorMessage(targetFrame, errorReason.latin1().data());
if (isLocalFrame())
toLocalFrame(this)->navigationScheduler().schedulePageBlock(
- toLocalFrame(this)->document());
+ toLocalFrame(this)->document(), -27 /* net::ERR_BLOCKED_BY_CLIENT */);
return false;
}
if (!isAllowedNavigation && !errorReason.isNull())

Powered by Google App Engine
This is Rietveld 408576698