Changeset 244814 in webkit
- Timestamp:
- Apr 30, 2019 5:12:51 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r244812 r244814 1 2019-04-30 Devin Rousso <drousso@apple.com> 2 3 Crash when running test wpt/tests/element_click/bubbling.py::test_element_disappears_during_click 4 https://bugs.webkit.org/show_bug.cgi?id=197361 5 <rdar://problem/49861407> 6 7 Reviewed by Brian Burg. 8 9 Don't assume that all elements have client rects (e.g. `getClientRects`). If the container 10 element isn't visible, then the child won't be either. 11 12 * UIProcess/Automation/SimulatedInputDispatcher.cpp: 13 (WebKit::SimulatedInputDispatcher::resolveLocation): 14 (WebKit::SimulatedInputDispatcher::transitionInputSourceToState): 15 * UIProcess/Automation/WebAutomationSession.cpp: 16 (WebKit::WebAutomationSession::viewportInViewCenterPointOfElement): 17 1 18 2019-04-30 Chris Dumez <cdumez@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp
r240554 r244814 223 223 } 224 224 225 ASSERT(inViewCenterPoint); 225 if (!inViewCenterPoint) { 226 completionHandler(WTF::nullopt, AUTOMATION_COMMAND_ERROR_WITH_NAME(ElementNotInteractable)); 227 return; 228 } 229 226 230 destination.moveBy(inViewCenterPoint.value()); 227 231 completionHandler(destination, WTF::nullopt); … … 270 274 return; 271 275 } 272 RELEASE_ASSERT(location); 276 277 if (!location) { 278 eventDispatchFinished(AUTOMATION_COMMAND_ERROR_WITH_NAME(ElementNotInteractable)); 279 return; 280 } 281 273 282 b.location = location; 274 283 // The "dispatch a pointer{Down,Up,Move} action" algorithms (§17.4 Dispatching Actions). … … 304 313 return; 305 314 } 306 RELEASE_ASSERT(location); 315 316 if (!location) { 317 eventDispatchFinished(AUTOMATION_COMMAND_ERROR_WITH_NAME(ElementNotInteractable)); 318 return; 319 } 320 307 321 b.location = location; 308 322 // The "dispatch a pointer{Down,Up,Move} action" algorithms (§17.4 Dispatching Actions). -
trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp
r244281 r244814 1462 1462 } 1463 1463 1464 ASSERT(inViewCenterPoint); 1464 if (!inViewCenterPoint) { 1465 completionHandler(WTF::nullopt, AUTOMATION_COMMAND_ERROR_WITH_NAME(ElementNotInteractable)); 1466 return; 1467 } 1468 1465 1469 completionHandler(inViewCenterPoint, WTF::nullopt); 1466 1470 };
Note: See TracChangeset
for help on using the changeset viewer.