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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2160523002: Send UpdateState when detaching a RenderFrame in FNE-enabled modes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move fix. Created 4 years, 5 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 | third_party/WebKit/LayoutTests/FlagExpectations/isolate-extensions » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 621712eba762c597a3c04f315aa8afee9afe1be3..4245a9fe536fa8d9d35b03c5027096c914d1f781 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2851,6 +2851,10 @@ void RenderFrameImpl::frameDetached(blink::WebLocalFrame* frame,
FOR_EACH_OBSERVER(RenderViewObserver, render_view_->observers(),
FrameDetached(frame));
+ // Send a state update before the frame is detached.
+ if (SiteIsolationPolicy::UseSubframeNavigationEntries())
+ SendUpdateState();
+
// We only notify the browser process when the frame is being detached for
// removal and it was initiated from the renderer process.
if (!in_browser_initiated_detach_ && type == DetachType::Remove)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/FlagExpectations/isolate-extensions » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698