Title: [243070] trunk/Source/WebCore
Revision
243070
Author
grao...@webkit.org
Date
2019-03-18 09:25:06 -0700 (Mon, 18 Mar 2019)

Log Message

Make mouse event simulation a quirk
https://bugs.webkit.org/show_bug.cgi?id=195218
<rdar://problem/48516794>

Reviewed by Dean Jackson.

Add new quirks to control whether we should dispatch simulated mouse events and whether we should assume
preventDefault() was called when a simulated "mousemove" event was handled. Currently both return false
but will be made to return more interesting results as we determine heuristics or specific sites that
may require such quirks.

* page/Quirks.cpp:
(WebCore::Quirks::shouldDispatchSimulateMouseEvents const):
(WebCore::Quirks::shouldMousemoveEventHandlingPreventDefault const):
* page/Quirks.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (243069 => 243070)


--- trunk/Source/WebCore/ChangeLog	2019-03-18 16:18:10 UTC (rev 243069)
+++ trunk/Source/WebCore/ChangeLog	2019-03-18 16:25:06 UTC (rev 243070)
@@ -1,3 +1,21 @@
+2019-03-15  Antoine Quint  <grao...@apple.com>
+
+        Make mouse event simulation a quirk
+        https://bugs.webkit.org/show_bug.cgi?id=195218
+        <rdar://problem/48516794>
+
+        Reviewed by Dean Jackson.
+
+        Add new quirks to control whether we should dispatch simulated mouse events and whether we should assume
+        preventDefault() was called when a simulated "mousemove" event was handled. Currently both return false
+        but will be made to return more interesting results as we determine heuristics or specific sites that
+        may require such quirks.
+
+        * page/Quirks.cpp:
+        (WebCore::Quirks::shouldDispatchSimulateMouseEvents const):
+        (WebCore::Quirks::shouldMousemoveEventHandlingPreventDefault const):
+        * page/Quirks.h:
+
 2019-03-18  Philippe Normand  <pnorm...@igalia.com>
 
         [GStreamer] Rewrite HTTP source element using pushsrc base class

Modified: trunk/Source/WebCore/page/Quirks.cpp (243069 => 243070)


--- trunk/Source/WebCore/page/Quirks.cpp	2019-03-18 16:18:10 UTC (rev 243069)
+++ trunk/Source/WebCore/page/Quirks.cpp	2019-03-18 16:25:06 UTC (rev 243070)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2018 Apple Inc. All rights reserved.
+ * Copyright (C) 2018-2019 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -195,4 +195,14 @@
     return false;
 }
 
+bool Quirks::shouldDispatchSimulateMouseEvents() const
+{
+    return false;
 }
+
+bool Quirks::shouldMousemoveEventHandlingPreventDefault() const
+{
+    return false;
+}
+
+}

Modified: trunk/Source/WebCore/page/Quirks.h (243069 => 243070)


--- trunk/Source/WebCore/page/Quirks.h	2019-03-18 16:18:10 UTC (rev 243069)
+++ trunk/Source/WebCore/page/Quirks.h	2019-03-18 16:25:06 UTC (rev 243070)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2018 Apple Inc. All rights reserved.
+ * Copyright (C) 2018-2019 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -45,6 +45,8 @@
     bool shouldAutoplayForArbitraryUserGesture() const;
     bool hasBrokenEncryptedMediaAPISupportQuirk() const;
     bool hasWebSQLSupportQuirk() const;
+    bool shouldDispatchSimulateMouseEvents() const;
+    bool shouldMousemoveEventHandlingPreventDefault() const;
 
     WEBCORE_EXPORT bool isTouchBarUpdateSupressedForHiddenContentEditable() const;
     WEBCORE_EXPORT bool isNeverRichlyEditableForTouchBar() const;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to