Changeset 244537 in webkit
- Timestamp:
- Apr 22, 2019 6:36:39 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r244507 r244537 1 2019-04-22 Zalan Bujtas <zalan@apple.com> 2 3 [ContentChangeObserver] Some dropdown menus may close without user gesture on americanexpress.com 4 https://bugs.webkit.org/show_bug.cgi?id=197175 5 <rdar://problem/49613013> 6 7 Reviewed by Simon Fraser. 8 9 * fast/events/touch/ios/content-observation/mouse-out-event-should-not-fire-on-click-when-default-prevented-expected.txt: Added. 10 * fast/events/touch/ios/content-observation/mouse-out-event-should-not-fire-on-click-when-default-prevented.html: Added. 11 1 12 2019-04-22 Justin Fan <justin_fan@apple.com> 2 13 -
trunk/LayoutTests/fast/events/touch/ios/content-observation/mouse-out-event-should-fire-on-click.html
r244378 r244537 36 36 </head> 37 37 <body onload="test()"> 38 < div id=tapthis>PASS if 'mouseout' text is shown below.</div>38 <button id=tapthis>PASS if 'mouseout' text is shown below.</button> 39 39 <div id=becomesVisible></div> 40 40 <pre id=result></pre> -
trunk/LayoutTests/fast/events/touch/ios/content-observation/mouse-out-event-should-not-fire-on-click-when-default-prevented.html
r244533 r244537 2 2 <html> 3 3 <head> 4 <title>This tests that we fire mouseout on synthetic click </title>4 <title>This tests that we fire mouseout on synthetic click unless the click is preventDefaulted</title> 5 5 <script src="../../../../../resources/basic-gestures.js"></script> 6 6 <style> … … 36 36 </head> 37 37 <body onload="test()"> 38 <div id=tapthis>PASS if 'mouseout' text is shown below.</div>38 <div id=tapthis>PASS if 'mouseout' text is not shown below.</div> 39 39 <div id=becomesVisible></div> 40 40 <pre id=result></pre> … … 47 47 tapthis.addEventListener("mouseout", function( event ) { 48 48 result.innerHTML = result.innerHTML + " mouseout triggered "; 49 if (window.testRunner)50 testRunner.notifyDone();51 49 }, false); 52 50 53 51 tapthis.addEventListener("click", function( event ) { 54 52 result.innerHTML = result.innerHTML + " clicked "; 53 event.preventDefault(); 54 if (window.testRunner) 55 setTimeout("testRunner.notifyDone()", 0); 55 56 }, false); 56 57 </script> -
trunk/Source/WebKit/ChangeLog
r244529 r244537 1 2019-04-22 Zalan Bujtas <zalan@apple.com> 2 3 [ContentChangeObserver] Some dropdown menus may close without user gesture on americanexpress.com 4 https://bugs.webkit.org/show_bug.cgi?id=197175 5 <rdar://problem/49613013> 6 7 Reviewed by Simon Fraser. 8 9 Do not generate additional synthetic mouse events (e.g. mouseout in this case) when the content handles the click event. This helps cases when the synthetic mouseout ended up dismissing the dropdown menus. 10 However it won't regress cases like youtube.com, where sending mouseout is required to have the control bar dismissed on play. 11 12 * WebProcess/WebPage/ios/WebPageIOS.mm: 13 (WebKit::WebPage::completeSyntheticClick): 14 1 15 2019-04-22 Alex Christensen <achristensen@webkit.org> 2 16 -
trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
r244494 r244537 689 689 elementDidRefocus(*newFocusedElement); 690 690 691 if ( nodeRespondingToClick.document().frame())691 if (!tapWasHandled && nodeRespondingToClick.document().frame()) 692 692 nodeRespondingToClick.document().frame()->eventHandler().dispatchSyntheticMouseOut(PlatformMouseEvent(roundedAdjustedPoint, roundedAdjustedPoint, LeftButton, PlatformEvent::NoType, 0, shiftKey, ctrlKey, altKey, metaKey, WallTime::now(), 0, WebCore::NoTap)); 693 693 if (m_isClosed)
Note: See TracChangeset
for help on using the changeset viewer.