Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/insert-adjacent-html-causes-crash.xhtml

Issue 1550113003: Fix crash when cached parent of AXLayoutObject is stale. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/accessibility/insert-adjacent-html-causes-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!-- This document must be xhtml for the crash to occur -->
2 <li xmlns="http://www.w3.org/1999/xhtml">
3 <h1 id="x">x<h1></h1></h1>
4 <script><![CDATA[
5 if (testRunner)
6 testRunner.dumpAsText();
7
8 // Calling accessibleElementById on a nonexistant id has the side effect
9 // of creating an accessibility object for every node in the tree.
10 if (accessibilityController)
11 accessibilityController.accessibleElementById('dummy');
12
13 // Calling insertAdjacentHTML causes the cached parent of an
14 // AXLayoutObject to be invalid after the next layout.
15 x=document.getElementById("x");
16 x.insertAdjacentHTML("beforebegin", "text");
17
18 // Force layout.
19 x.offsetTop;
20
21 // Explore the accessibility tree again, triggering the crash if
22 // the cached parent isn't updated correctly.
23 if (accessibilityController)
24 accessibilityController.accessibleElementById('dummy');
25 ]]></script>
26 </li>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/accessibility/insert-adjacent-html-causes-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698