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

Unified Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp

Issue 2078143002: Make plugin elements return false from canStartSelection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More testing Created 4 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/html/HTMLPlugInElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
index ee6d324fe3dbacd19fe1e53a068af1ecfa66da3b..1e5b2ba9b8dceb77772e059bf1377480b37fb2f1 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -102,6 +102,14 @@ bool HTMLPlugInElement::canProcessDrag() const
return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(pluginWidget())->canProcessDrag();
}
+bool HTMLPlugInElement::canStartSelection() const
+{
+ if (!useFallbackContent())
yosin_UTC9 2016/06/22 01:23:18 How about below? return useFallbackContent() && N
aelias_OOO_until_Jul13 2016/06/22 01:33:03 Done.
+ return false;
+
+ return Node::canStartSelection();
+}
+
bool HTMLPlugInElement::willRespondToMouseClickEvents()
{
if (isDisabledFormControl())
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLPlugInElement.h ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698