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

Unified Diff: components/test_runner/test_runner_for_specific_view.cc

Issue 1890493002: PlzNavigate: properly execute BeforeUnload on renderer initiated navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed dcheng's comments Created 4 years, 7 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: components/test_runner/test_runner_for_specific_view.cc
diff --git a/components/test_runner/test_runner_for_specific_view.cc b/components/test_runner/test_runner_for_specific_view.cc
index 4476f3d210e0e0d190601966a61653a2b544098c..482a9f583a93968a84eb7c7927c0c230a7157a60 100644
--- a/components/test_runner/test_runner_for_specific_view.cc
+++ b/components/test_runner/test_runner_for_specific_view.cc
@@ -559,7 +559,8 @@ void TestRunnerForSpecificView::DidLosePointerLockInternal() {
}
bool TestRunnerForSpecificView::CallShouldCloseOnWebView() {
- return web_view()->mainFrame()->dispatchBeforeUnloadEvent();
+ return web_view()->mainFrame()->toWebLocalFrame()->dispatchBeforeUnloadEvent(
nasko 2016/05/09 21:56:04 I don't think you can make this assumption here. I
Łukasz Anforowicz 2016/05/09 22:43:23 nasko@ - you are correct that web_view()->mainFram
clamy 2016/05/10 00:39:56 With the current architecture, you would get a NOT
clamy 2016/05/10 01:58:08 Went with CHECK(false).
+ false);
}
void TestRunnerForSpecificView::SetDomainRelaxationForbiddenForURLScheme(
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.cc » ('j') | content/browser/frame_host/render_frame_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698