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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2782093003: Merge "Form validation: Validation bubble should be closed on document unload process." to M58 (Closed)
Patch Set: Created 3 years, 9 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/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index cb46ff7839871e4e42121a95f384be650f53f522..b18bc71cc18890bd58fda8809fe2a49d2d2a817b 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -186,6 +186,11 @@ void Page::setMainFrame(Frame* mainFrame) {
m_mainFrame = mainFrame;
}
+void Page::willUnloadDocument(const Document& document) {
+ if (m_validationMessageClient)
+ m_validationMessageClient->willUnloadDocument(document);
+}
+
void Page::documentDetached(Document* document) {
m_pointerLockController->documentDetached(document);
m_contextMenuController->documentDetached(document);
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | third_party/WebKit/Source/core/page/ValidationMessageClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698