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

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2042483002: Fix web_accesible_resources enforcement for Site Isolation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: content/browser/frame_host/navigation_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index 240eba7416107135f096249c2f9b94954e080c84..7fb0e77d8a2913be65c93a03f4964e5a676d262b 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -416,6 +416,7 @@ NavigationHandleImpl::CheckWillStartRequest() {
case NavigationThrottle::CANCEL:
case NavigationThrottle::CANCEL_AND_IGNORE:
+ case NavigationThrottle::BLOCK_REQUEST:
state_ = CANCELING;
return result;
@@ -423,9 +424,6 @@ NavigationHandleImpl::CheckWillStartRequest() {
state_ = DEFERRING_START;
next_index_ = i + 1;
return result;
-
- default:
- NOTREACHED();
}
}
next_index_ = 0;
@@ -455,7 +453,7 @@ NavigationHandleImpl::CheckWillRedirectRequest() {
next_index_ = i + 1;
return result;
- default:
+ case NavigationThrottle::BLOCK_REQUEST:
NOTREACHED();
}
}
@@ -490,6 +488,9 @@ NavigationHandleImpl::CheckWillProcessResponse() {
state_ = DEFERRING_RESPONSE;
next_index_ = i + 1;
return result;
+
+ case NavigationThrottle::BLOCK_REQUEST:
+ NOTREACHED();
}
}
next_index_ = 0;

Powered by Google App Engine
This is Rietveld 408576698