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

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

Issue 2707263013: Don't recreate feature policy on fragment navigation (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 07f3cc9d1eb6137155132c4f146032ea6b1efe7d..24dc9aa09df1400c29861f7eb7d3d4ec4e592fea 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -685,7 +685,8 @@ void NavigatorImpl::DidNavigate(
// After setting the last committed origin, reset the feature policy in the
// RenderFrameHost to a blank policy based on the parent frame.
- render_frame_host->ResetFeaturePolicy();
+ if (!did_navigate)
alexmos 2017/02/24 21:21:12 A couple of concerns with this. First, I think yo
iclelland 2017/03/03 15:26:31 Thanks for that -- I've updated the condition, to
+ render_frame_host->ResetFeaturePolicy();
// Send notification about committed provisional loads. This notification is
// different from the NAV_ENTRY_COMMITTED notification which doesn't include
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698