Title: [246245] tags/Safari-608.1.28.1/Source/WebCore
- Revision
- 246245
- Author
- [email protected]
- Date
- 2019-06-09 14:15:57 -0700 (Sun, 09 Jun 2019)
Log Message
Cherry-pick r246205. rdar://problem/51345064
Limit simulated mouse events on Google Maps to entering Street View
https://bugs.webkit.org/show_bug.cgi?id=198657
<rdar://problem/51345064>
Reviewed by Brent Fulgham.
* page/Quirks.cpp:
(WebCore::Quirks::shouldDispatchSimulatedMouseEvents const):
(WebCore::Quirks::shouldDispatchSimulatedMouseEventsOnTarget const):
* page/Quirks.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246205 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: tags/Safari-608.1.28.1/Source/WebCore/ChangeLog (246244 => 246245)
--- tags/Safari-608.1.28.1/Source/WebCore/ChangeLog 2019-06-09 21:15:54 UTC (rev 246244)
+++ tags/Safari-608.1.28.1/Source/WebCore/ChangeLog 2019-06-09 21:15:57 UTC (rev 246245)
@@ -1,5 +1,35 @@
2019-06-09 Babak Shafiei <[email protected]>
+ Cherry-pick r246205. rdar://problem/51345064
+
+ Limit simulated mouse events on Google Maps to entering Street View
+ https://bugs.webkit.org/show_bug.cgi?id=198657
+ <rdar://problem/51345064>
+
+ Reviewed by Brent Fulgham.
+
+ * page/Quirks.cpp:
+ (WebCore::Quirks::shouldDispatchSimulatedMouseEvents const):
+ (WebCore::Quirks::shouldDispatchSimulatedMouseEventsOnTarget const):
+ * page/Quirks.h:
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246205 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-06-07 Antoine Quint <[email protected]>
+
+ Limit simulated mouse events on Google Maps to entering Street View
+ https://bugs.webkit.org/show_bug.cgi?id=198657
+ <rdar://problem/51345064>
+
+ Reviewed by Brent Fulgham.
+
+ * page/Quirks.cpp:
+ (WebCore::Quirks::shouldDispatchSimulatedMouseEvents const):
+ (WebCore::Quirks::shouldDispatchSimulatedMouseEventsOnTarget const):
+ * page/Quirks.h:
+
+2019-06-09 Babak Shafiei <[email protected]>
+
Cherry-pick r246099. rdar://problem/48006291
iPadOS: Google calendars new event picker moves and flickers in landscape with software keyboard
Modified: tags/Safari-608.1.28.1/Source/WebCore/page/Quirks.cpp (246244 => 246245)
--- tags/Safari-608.1.28.1/Source/WebCore/page/Quirks.cpp 2019-06-09 21:15:54 UTC (rev 246244)
+++ tags/Safari-608.1.28.1/Source/WebCore/page/Quirks.cpp 2019-06-09 21:15:57 UTC (rev 246245)
@@ -278,9 +278,9 @@
return shouldSuppressAutocorrectionAndAutocaptializationInHiddenEditableAreasForHost(m_document->topDocument().url().host());
}
+#if PLATFORM(IOS_FAMILY)
bool Quirks::shouldDispatchSimulatedMouseEvents() const
{
-#if PLATFORM(IOS_FAMILY)
if (!needsQuirks())
return false;
@@ -313,10 +313,23 @@
return true;
if (equalLettersIgnoringASCIICase(host, "naver.com") || host.endsWithIgnoringASCIICase(".naver.com"))
return true;
-#endif
return false;
}
+bool Quirks::shouldDispatchSimulatedMouseEventsOnTarget(EventTarget* target) const
+{
+ if (!needsQuirks() || !shouldDispatchSimulatedMouseEvents())
+ return false;
+
+ // On Google Maps, we want to limit simulated mouse events to dragging the little man that allows entering into Street View.
+ auto& url = ""
+ auto host = url.host();
+ if (equalLettersIgnoringASCIICase(host, "www.google.com") && url.path().startsWithIgnoringASCIICase("/maps/"))
+ return is<Element>(target) && downcast<Element>(target)->getAttribute("class") == "widget-expand-button-pegman-icon";
+ return true;
+}
+#endif
+
bool Quirks::shouldDisablePointerEventsQuirk() const
{
#if PLATFORM(IOS_FAMILY)
Modified: tags/Safari-608.1.28.1/Source/WebCore/page/Quirks.h (246244 => 246245)
--- tags/Safari-608.1.28.1/Source/WebCore/page/Quirks.h 2019-06-09 21:15:54 UTC (rev 246244)
+++ tags/Safari-608.1.28.1/Source/WebCore/page/Quirks.h 2019-06-09 21:15:57 UTC (rev 246245)
@@ -49,7 +49,10 @@
bool shouldAutoplayForArbitraryUserGesture() const;
bool hasBrokenEncryptedMediaAPISupportQuirk() const;
bool hasWebSQLSupportQuirk() const;
+#if PLATFORM(IOS_FAMILY)
bool shouldDispatchSimulatedMouseEvents() const;
+ bool shouldDispatchSimulatedMouseEventsOnTarget(EventTarget*) const;
+#endif
bool shouldDisablePointerEventsQuirk() const;
bool needsInputModeNoneImplicitly(const HTMLElement&) const;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes