Changeset 236286 in webkit
- Timestamp:
- Sep 20, 2018 3:05:49 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r236285 r236286 1 2018-09-20 Sihui Liu <sihui_liu@apple.com> 2 3 REGRESSION(r196265): WKWebView fires mouseover, mouseenter, and mouseleave events even when it's in a background window 4 https://bugs.webkit.org/show_bug.cgi?id=187545 5 <rdar://problem/42401575> 6 7 Reviewed by Ryosuke Niwa. 8 9 * TestExpectations: 10 * fast/events/inactive-window-no-mouse-event-expected.txt: Added. 11 * fast/events/inactive-window-no-mouse-event.html: Added. 12 * platform/mac-wk2/TestExpectations: 13 1 14 2018-09-20 Basuke Suzuki <Basuke.Suzuki@sony.com> 2 15 -
trunk/LayoutTests/TestExpectations
r236277 r236286 404 404 405 405 fast/misc/valid-primary-screen-displayID.html [ Skip ] 406 407 # This test currently only works for mac-wk2 408 fast/events/inactive-window-no-mouse-event.html [ Skip ] 406 409 407 410 #////////////////////////////////////////////////////////////////////////////////////////// -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r236282 r236286 62 62 webkit.org/b/184569 storage/indexeddb/modern/transactions-stop-on-navigation.html [ Pass Failure ] 63 63 64 65 fast/events/inactive-window-no-mouse-event.html [ Pass ] 64 66 65 67 #////////////////////////////////////////////////////////////////////////////////////////// -
trunk/Source/WebCore/ChangeLog
r236284 r236286 1 2018-09-20 Sihui Liu <sihui_liu@apple.com> 2 3 REGRESSION(r196265): WKWebView fires mouseover, mouseenter, and mouseleave events even when it's in a background window 4 https://bugs.webkit.org/show_bug.cgi?id=187545 5 <rdar://problem/42401575> 6 7 Reviewed by Ryosuke Niwa. 8 9 When the window is not active, we should only update the scrollbar for mouse events. GTK 10 apps have different expectation on this behavior. 11 12 Test: fast/events/inactive-window-no-mouse-event.html 13 14 * page/EventHandler.cpp: 15 (WebCore::EventHandler::handleMouseMoveEvent): 16 (WebCore::EventHandler::shouldSendMouseEventsToInactiveWindows const): 17 * page/EventHandler.h: 18 1 19 2018-09-20 Alex Christensen <achristensen@webkit.org> 2 20 -
trunk/Source/WebCore/page/EventHandler.cpp
r235865 r236286 1966 1966 #endif 1967 1967 if (onlyUpdateScrollbars) { 1968 updateMouseEventTargetNode(mouseEvent.targetNode(), platformMouseEvent, true); 1968 if (shouldSendMouseEventsToInactiveWindows()) 1969 updateMouseEventTargetNode(mouseEvent.targetNode(), platformMouseEvent, true); 1970 1969 1971 return true; 1970 1972 } … … 2007 2009 2008 2010 return swallowEvent; 2011 } 2012 2013 bool EventHandler::shouldSendMouseEventsToInactiveWindows() const 2014 { 2015 #if PLATFORM(GTK) 2016 return true; 2017 #endif 2018 return false; 2009 2019 } 2010 2020 -
trunk/Source/WebCore/page/EventHandler.h
r234930 r236286 494 494 void clearLatchedState(); 495 495 496 bool shouldSendMouseEventsToInactiveWindows() const; 497 496 498 Frame& m_frame; 497 499
Note: See TracChangeset
for help on using the changeset viewer.