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

Unified Diff: content/browser/webui/web_ui_impl.cc

Issue 2041993002: WebUI: Fix lifecycle-bug when RenderFrameHost is swapped out (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/webui/web_ui_impl.cc
diff --git a/content/browser/webui/web_ui_impl.cc b/content/browser/webui/web_ui_impl.cc
index 41fc037852c786645705881beed7ad9ca6d0e0fa..7d90bfa4f07b9739cb16cd76120604e8547f0bed 100644
--- a/content/browser/webui/web_ui_impl.cc
+++ b/content/browser/webui/web_ui_impl.cc
@@ -100,6 +100,11 @@ void WebUIImpl::RenderViewReused(RenderViewHost* render_view_host,
handler->RenderViewReused();
}
+void WebUIImpl::RenderFrameHostSwappingOut() {
+ for (WebUIMessageHandler* handler : handlers_)
+ handler->RenderFrameHostSwappingOut();
Dan Beam 2016/06/06 23:41:46 why wouldn't we just call DisallowJavascript() dir
tommycli 2016/06/07 17:46:07 Done.
+}
+
WebContents* WebUIImpl::GetWebContents() const {
return web_contents_;
}

Powered by Google App Engine
This is Rietveld 408576698