Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(285)

Unified Diff: Source/WebCore/loader/PolicyChecker.cpp

Issue 339530043: SB prototype
Patch Set: Squashed patch Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/loader/PolicyChecker.h ('k') | Source/WebCore/page/Settings.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/loader/PolicyChecker.cpp
diff --git a/Source/WebCore/loader/PolicyChecker.cpp b/Source/WebCore/loader/PolicyChecker.cpp
index b6690ea9665a1515c97a63adc9407732b9819127..9a5553c7ee7e9d23c62be5185f11d92c20e76f0a 100644
--- a/Source/WebCore/loader/PolicyChecker.cpp
+++ b/Source/WebCore/loader/PolicyChecker.cpp
@@ -178,6 +178,8 @@ void PolicyChecker::checkNavigationPolicy(ResourceRequest&& request, bool didRec
FALLTHROUGH;
case PolicyAction::Ignore:
return function({ }, nullptr, ShouldContinue::No);
+ case PolicyAction::IgnoreAndLockBackForwardList:
+ return function({ }, nullptr, ShouldContinue::NoAndLockBackForwardList);
case PolicyAction::Suspend:
return function({ }, nullptr, ShouldContinue::ForSuspension);
case PolicyAction::Use:
@@ -209,6 +211,9 @@ void PolicyChecker::checkNewWindowPolicy(NavigationAction&& navigationAction, Re
case PolicyAction::Ignore:
function({ }, nullptr, { }, { }, ShouldContinue::No);
return;
+ case PolicyAction::IgnoreAndLockBackForwardList:
+ ASSERT_NOT_REACHED();
+ return;
case PolicyAction::Suspend:
// It is invalid to get a "Suspend" policy for new windows, as the old document is not going away.
RELEASE_ASSERT_NOT_REACHED();
« no previous file with comments | « Source/WebCore/loader/PolicyChecker.h ('k') | Source/WebCore/page/Settings.yaml » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b