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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2956673002: [reland] Move navigation-induced hiding of form-validation-bubble to the browser process. (Closed)
Patch Set: Keep ValidationMessageClient::DocumentDetached method. Created 3 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: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 5f661d84653b150493e1274b2d8efa8960b7ea9b..28dc9baa8b084c09315786374f9af6c983775950 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3251,8 +3251,6 @@ void Document::DispatchUnloadEvents() {
return;
if (load_event_progress_ <= kUnloadEventInProgress) {
- if (GetPage())
- GetPage()->WillUnloadDocument(*this);
Element* current_focused_element = FocusedElement();
if (isHTMLInputElement(current_focused_element))
toHTMLInputElement(*current_focused_element).EndEditing();
« no previous file with comments | « content/browser/web_contents/web_contents_impl_browsertest.cc ('k') | third_party/WebKit/Source/core/dom/DocumentTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698