Changeset 246205 in webkit
- Timestamp:
- Jun 7, 2019, 10:11:01 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
page/Quirks.cpp (modified) (2 diffs)
-
page/Quirks.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246200 r246205 1 2019-06-07 Antoine Quint <graouts@apple.com> 2 3 Limit simulated mouse events on Google Maps to entering Street View 4 https://bugs.webkit.org/show_bug.cgi?id=198657 5 <rdar://problem/51345064> 6 7 Reviewed by Brent Fulgham. 8 9 * page/Quirks.cpp: 10 (WebCore::Quirks::shouldDispatchSimulatedMouseEvents const): 11 (WebCore::Quirks::shouldDispatchSimulatedMouseEventsOnTarget const): 12 * page/Quirks.h: 13 1 14 2019-06-07 Joonghun Park <jh718.park@samsung.com> 2 15 -
trunk/Source/WebCore/page/Quirks.cpp
r246118 r246205 283 283 } 284 284 285 #if PLATFORM(IOS_FAMILY) 285 286 bool Quirks::shouldDispatchSimulatedMouseEvents() const 286 287 { 287 #if PLATFORM(IOS_FAMILY)288 288 if (!needsQuirks()) 289 289 return false; … … 318 318 if (equalLettersIgnoringASCIICase(host, "naver.com") || host.endsWithIgnoringASCIICase(".naver.com")) 319 319 return true; 320 #endif 321 return false; 322 } 320 return false; 321 } 322 323 bool Quirks::shouldDispatchSimulatedMouseEventsOnTarget(EventTarget* target) const 324 { 325 if (!needsQuirks() || !shouldDispatchSimulatedMouseEvents()) 326 return false; 327 328 // On Google Maps, we want to limit simulated mouse events to dragging the little man that allows entering into Street View. 329 auto& url = m_document->topDocument().url(); 330 auto host = url.host(); 331 if (equalLettersIgnoringASCIICase(host, "www.google.com") && url.path().startsWithIgnoringASCIICase("/maps/")) 332 return is<Element>(target) && downcast<Element>(target)->getAttribute("class") == "widget-expand-button-pegman-icon"; 333 return true; 334 } 335 #endif 323 336 324 337 bool Quirks::shouldDisablePointerEventsQuirk() const -
trunk/Source/WebCore/page/Quirks.h
r245301 r246205 50 50 bool hasBrokenEncryptedMediaAPISupportQuirk() const; 51 51 bool hasWebSQLSupportQuirk() const; 52 #if PLATFORM(IOS_FAMILY) 52 53 bool shouldDispatchSimulatedMouseEvents() const; 54 bool shouldDispatchSimulatedMouseEventsOnTarget(EventTarget*) const; 55 #endif 53 56 bool shouldDisablePointerEventsQuirk() const; 54 57 bool needsInputModeNoneImplicitly(const HTMLElement&) const;
Note:
See TracChangeset
for help on using the changeset viewer.