Title: [293970] trunk
Revision
293970
Author
[email protected]
Date
2022-05-09 03:47:12 -0700 (Mon, 09 May 2022)

Log Message

[WinCairo][WK1] accessibility/aria-combobox-control-owns-elements.html is crashing after 250325@main
https://bugs.webkit.org/show_bug.cgi?id=240218
<rdar://problem/92929718>

Reviewed by Joanmarie Diggs.

Source/WebCore:

Fix a wrong ASSERT for AriaReflectionForElementReferencesEnabled.
If AriaReflectionForElementReferencesEnabled is disabled, and you set
one of the attributes that have reflection under that flag,
we'll hit an ASSERT in Element::attributeChanged().

The fact that we set such attribute doesn't mean that the flag
has to be enabled.

Removed the ASSERT and added an if to check if the flag is enabled,
otherwise we don't need to do anything with the map.

* dom/Element.cpp:
(WebCore::Element::attributeChanged):

LayoutTests:

* platform/wincairo-wk1/TestExpectations: Mark test as timeout as it
was before r293958.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (293969 => 293970)


--- trunk/LayoutTests/ChangeLog	2022-05-09 08:41:51 UTC (rev 293969)
+++ trunk/LayoutTests/ChangeLog	2022-05-09 10:47:12 UTC (rev 293970)
@@ -1,3 +1,14 @@
+2022-05-09  Manuel Rego Casasnovas  <[email protected]>
+
+        [WinCairo][WK1] accessibility/aria-combobox-control-owns-elements.html is crashing after 250325@main
+        https://bugs.webkit.org/show_bug.cgi?id=240218
+        <rdar://problem/92929718>
+
+        Reviewed by Joanmarie Diggs.
+
+        * platform/wincairo-wk1/TestExpectations: Mark test as timeout as it
+        was before r293958.
+
 2022-05-08  Fujii Hironori  <[email protected]>
 
         [WinCairo][WK1] accessibility/aria-combobox-control-owns-elements.html is crashing after 250325@main

Modified: trunk/LayoutTests/platform/wincairo-wk1/TestExpectations (293969 => 293970)


--- trunk/LayoutTests/platform/wincairo-wk1/TestExpectations	2022-05-09 08:41:51 UTC (rev 293969)
+++ trunk/LayoutTests/platform/wincairo-wk1/TestExpectations	2022-05-09 10:47:12 UTC (rev 293970)
@@ -258,7 +258,7 @@
 
 webkit.org/b/181501 accessibility/table-header-calculation-for-header-rows.html [ Failure ]
 
-webkit.org/b/240218 accessibility/aria-combobox-control-owns-elements.html [ Skip ] # Crash
+webkit.org/b/240218 accessibility/aria-combobox-control-owns-elements.html [ Timeout ]
 
 webkit.org/b/183955 accessibility/row-with-aria-role-in-native-table.html [ Failure ]
 

Modified: trunk/Source/WebCore/ChangeLog (293969 => 293970)


--- trunk/Source/WebCore/ChangeLog	2022-05-09 08:41:51 UTC (rev 293969)
+++ trunk/Source/WebCore/ChangeLog	2022-05-09 10:47:12 UTC (rev 293970)
@@ -1,3 +1,25 @@
+2022-05-09  Manuel Rego Casasnovas  <[email protected]>
+
+        [WinCairo][WK1] accessibility/aria-combobox-control-owns-elements.html is crashing after 250325@main
+        https://bugs.webkit.org/show_bug.cgi?id=240218
+        <rdar://problem/92929718>
+
+        Reviewed by Joanmarie Diggs.
+
+        Fix a wrong ASSERT for AriaReflectionForElementReferencesEnabled.
+        If AriaReflectionForElementReferencesEnabled is disabled, and you set
+        one of the attributes that have reflection under that flag,
+        we'll hit an ASSERT in Element::attributeChanged().
+
+        The fact that we set such attribute doesn't mean that the flag
+        has to be enabled.
+
+        Removed the ASSERT and added an if to check if the flag is enabled,
+        otherwise we don't need to do anything with the map.
+
+        * dom/Element.cpp:
+        (WebCore::Element::attributeChanged):
+
 2022-05-09  Diego Pino Garcia  <[email protected]>
 
         Unreviewed, non-unified build fixes after r293562

Modified: trunk/Source/WebCore/dom/Element.cpp (293969 => 293970)


--- trunk/Source/WebCore/dom/Element.cpp	2022-05-09 08:41:51 UTC (rev 293969)
+++ trunk/Source/WebCore/dom/Element.cpp	2022-05-09 10:47:12 UTC (rev 293970)
@@ -1942,8 +1942,7 @@
             }
         } else if (name == HTMLNames::partAttr)
             partAttributeChanged(newValue);
-        else if (isElementReflectionAttribute(name)) {
-            ASSERT(document().settings().ariaReflectionForElementReferencesEnabled());
+        else if (document().settings().ariaReflectionForElementReferencesEnabled() && isElementReflectionAttribute(name)) {
             if (auto* map = explicitlySetAttrElementsMapIfExists())
                 map->remove(name);
         } else if (name == HTMLNames::exportpartsAttr) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to