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

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

Issue 2771193002: Form validation: Validation bubble should be closed on document unload process. (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 257a0c58de21b167aebf0a023cb90fdcfc5678a1..0a37141dc1744a1af1fce1681fa600db04f7a21b 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -243,6 +243,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