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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2905873003: VR: Disable select element in VR mode via WebPreferences (Closed)
Patch Set: Address the comment Created 3 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: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index c530e82bde81dccf45383e65a34b7626352b1f6f..2a35f2c1d8715e6d8aab6221edc1917f4780aca5 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -931,6 +931,9 @@ bool ChromeClientImpl::HasOpenedPopup() const {
PopupMenu* ChromeClientImpl::OpenPopupMenu(LocalFrame& frame,
HTMLSelectElement& select) {
+ if (frame.GetDocument()->GetSettings()->GetPagePopupsSuppressed())
+ return nullptr;
+
NotifyPopupOpeningObservers();
if (WebViewBase::UseExternalPopupMenus())
return new ExternalPopupMenu(frame, select, *web_view_);

Powered by Google App Engine
This is Rietveld 408576698