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

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

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Remove layout test; better coverage with unit tests Created 4 years, 1 month 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/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 5740af67acbee9231ed9620e601cc8be1848aa9a..3103dcce6c154d8e7b9c2cc9e25076a4003c24f2 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -581,8 +581,10 @@ void NavigatorImpl::DidNavigate(
// Navigating to a new location means a new, fresh set of http headers and/or
// <meta> elements - we need to reset CSP policy to an empty set.
- if (!is_navigation_within_page)
+ if (!is_navigation_within_page) {
render_frame_host->frame_tree_node()->ResetContentSecurityPolicy();
+ render_frame_host->frame_tree_node()->ResetFeaturePolicy();
alexmos 2016/11/17 21:45:58 nit: update comment to mention feature policy (so
iclelland 2016/11/18 16:12:37 Done.
+ }
// When using --site-per-process, we notify the RFHM for all navigations,
// not just main frame navigations.

Powered by Google App Engine
This is Rietveld 408576698