Revision fc7c0b7d097b3f584889127fd6ea350a1980cc7a authored by Emilio Cobos Álvarez on 09 April 2018, 07:01:25 UTC, committed by moz-wptsync-bot on 09 April 2018, 07:52:06 UTC
The code was trying to assert that we had frames constructed for all the nodes in the parent chain, but we don't bail out in the !GetContentInsertionFrameFor(aContainer) in the case that it's a children element, because they actually have no insertion frame, though their children do. Move the LazyFC check after the insertion point check. That makes the previous check work on the insertion point of the child, which makes it sound. This also fixes bug 1410020, and with it a Shadow DOM test-case that was failing because we had two sibling assigned to two different <slot>s, and the second one wasn't getting properly flagged, and thus the second sibling never got a frame. The other two test failures in this test are an event dispatch failure, where the position of the target is not what the test expects (we don't account for margin and padding). Filed that as bug 1450027. Also, added a test for which we have wrong layout without these patches, and that crashes with "Called Servo_Element_IsDisplayNone" with the first patch of this bug applied but not this one, due to the bogus check mentioned above. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1303605 gecko-commit: 12a824f8d55a8fb0396fb2132974f8223c6a9606 gecko-integration-branch: central gecko-reviewers: bz
1 parent a835486
aria-checked_false_on_menuitemradio-manual.html
<!doctype html>
<html>
<head>
<title>aria-checked=false on menuitemradio</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/resources/testharness.css">
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
<script>
setup({explicit_timeout: true, explicit_done: true });
var theTest = new ATTAcomm(
{
"steps" : [
{
"element" : "test",
"test" : {
"ATK" : [
[
"property",
"states",
"contains",
"STATE_CHECKABLE"
],
[
"property",
"states",
"doesNotContain",
"STATE_CHECKED"
]
],
"AXAPI" : [
[
"property",
"AXValue",
"is",
"0"
],
[
"property",
"AXMenuItemMarkChar",
"is",
"<nil>"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"checkable:true"
]
],
"MSAA" : [
[
"property",
"states",
"doesNotContain",
"STATE_SYSTEM_CHECKED"
]
],
"UIA" : [
[
"property",
"Toggle.ToggleState",
"is",
"Off (0)"
],
[
"property",
"SelectionItem.IsSelected",
"is",
"False"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "aria-checked=false on menuitemradio"
}
) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for aria-checked=false on menuitemradio.</p>
<div role='menu'>
<div role='menuitemradio' id='test' aria-checked='false'>content</div>
</div>
<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
Computing file changes ...