Changeset 259438 in webkit
- Timestamp:
- Apr 2, 2020, 6:51:16 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/accessibility/menu-list-sends-change-notification-expected.txt (added)
-
LayoutTests/accessibility/menu-list-sends-change-notification.html (modified) (4 diffs)
-
LayoutTests/platform/mac/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/accessibility/mac/AXObjectCacheMac.mm (modified) (1 diff)
-
Source/WebCore/rendering/RenderMenuList.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r259434 r259438 1 2020-04-02 Andres Gonzalez <andresg_22@apple.com> 2 3 Crash in RenderMenuList::didUpdateActiveOption. 4 https://bugs.webkit.org/show_bug.cgi?id=208867 5 <rdar://problem/60035390> 6 7 Reviewed by Chris Fleizach. 8 9 Enabled accessibility/menu-list-sends-change-notification.html test 10 and added the expected.txt file for it. 11 12 * accessibility/menu-list-sends-change-notification-expected.txt: Added. 13 * accessibility/menu-list-sends-change-notification.html: 14 1 15 2020-04-02 Said Abou-Hallawa <sabouhallawa@apple.com> 2 16 -
trunk/LayoutTests/accessibility/menu-list-sends-change-notification.html
r217171 r259438 1 1 <html> 2 2 <head> 3 <script src="../resources/js-test .js"></script>3 <script src="../resources/js-test-pre.js"></script> 4 4 <script> 5 5 jsTestIsAsync = true; … … 13 13 14 14 function listener(notification) { 15 d ocument.getElementById("console").innerText += "Got notification: " + notification + "\n";15 debug("MenuList received notification: " + notification); 16 16 accessibleMenulist.removeNotificationListener(listener); 17 17 finishJSTest(); … … 21 21 // Change the selected index. 22 22 menulist.selectedIndex = 1; 23 24 // Make the test finish quickly whether we get the notification or not.25 window.setTimeout(function() {26 finishJSTest();27 }, 10);28 23 } 29 24 30 25 if (window.testRunner && window.accessibilityController) { 31 26 window.addEventListener('load', function() { 27 debug("Load event notification received."); 32 28 setTimeout(runTest, 10); 33 29 }, false); … … 46 42 <div id="console"></div> 47 43 44 <script src="../resources/js-test-post.js"></script> 48 45 </body> 49 46 </html> -
trunk/LayoutTests/platform/mac/TestExpectations
r259391 r259438 68 68 accessibility/combo-box-collapsed-selection-changed.html 69 69 accessibility/children-changed-sends-notification.html 70 accessibility/menu-list-sends-change-notification.html71 70 accessibility/multiselect-list-reports-active-option.html 72 71 -
trunk/Source/WebCore/ChangeLog
r259435 r259438 1 2020-04-02 Andres Gonzalez <andresg_22@apple.com> 2 3 Crash in RenderMenuList::didUpdateActiveOption. 4 https://bugs.webkit.org/show_bug.cgi?id=208867 5 <rdar://problem/60035390> 6 7 Reviewed by Chris Fleizach. 8 9 Enabled test accessibility/menu-list-sends-change-notification.html. 10 11 - Check the type of the AccessibilityObject before downcasting in RenderMenuList. 12 - Fixed handling of the AXMenuListValueChanged notification on the Mac. 13 This notification was previously ignored and hence the LayoutTest was failing. 14 15 * accessibility/mac/AXObjectCacheMac.mm: 16 (WebCore::AXObjectCache::postPlatformNotification): 17 * rendering/RenderMenuList.cpp: 18 (RenderMenuList::didUpdateActiveOption): 19 1 20 2020-04-02 Eric Carlson <eric.carlson@apple.com> 2 21 -
trunk/Source/WebCore/accessibility/mac/AXObjectCacheMac.mm
r258673 r259438 342 342 break; 343 343 case AXMenuListItemSelected: 344 case AXMenuListValueChanged: 344 345 macNotification = (id)kAXMenuItemSelectedNotification; 345 346 break; -
trunk/Source/WebCore/rendering/RenderMenuList.cpp
r243601 r259438 421 421 return; 422 422 423 if (auto* menuList = downcast<AccessibilityMenuList>(axCache->get(this))) 424 menuList->didUpdateActiveOption(optionIndex); 423 auto* axObject = axCache->get(this); 424 if (is<AccessibilityMenuList>(axObject)) 425 downcast<AccessibilityMenuList>(*axObject).didUpdateActiveOption(optionIndex); 425 426 } 426 427
Note:
See TracChangeset
for help on using the changeset viewer.