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

Unified Diff: Source/core/frame/DOMWindow.cpp

Issue 51033005: Add a use counter and deprecation message for showModalDialog (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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: Source/core/frame/DOMWindow.cpp
diff --git a/Source/core/frame/DOMWindow.cpp b/Source/core/frame/DOMWindow.cpp
index d1a0e18453a1ad5cf45c752fa4dd29d59c464e0e..118381975d996d33a8afbcc6ac58d741b0290063 100644
--- a/Source/core/frame/DOMWindow.cpp
+++ b/Source/core/frame/DOMWindow.cpp
@@ -1848,6 +1848,8 @@ void DOMWindow::showModalDialog(const String& urlString, const String& dialogFea
if (!canShowModalDialogNow(m_frame) || !firstWindow->allowPopUp())
return;
+ UseCounter::countDeprecation(this, UseCounter::ShowModalDialog);
+
WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_frame->view()));
Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures,
activeWindow, firstFrame, m_frame, function, functionContext);

Powered by Google App Engine
This is Rietveld 408576698