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

Side by Side Diff: LayoutTests/accessibility/adopt-node-causes-crash.html

Issue 539603002: adoptNode wasn't clearing the accessibility cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | LayoutTests/accessibility/adopt-node-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 <html>
esprehn 2014/09/04 20:00:46 Add <!DOCTYPE html>, remove <head>, Body> and <ht
dmazzoni 2014/09/05 00:19:13 Done.
2 <head>
3 <script src="../resources/js-test.js"></script>
4 </head>
5 <body>
6
7 <!-- Nodes inside a canvas get an AXNodeObject, not an AXRenderObject. -->
8 <canvas>
9 <div id=node2></div>
10 </canvas>
11
12 <script>
13 description("Ensure that if we have an AXNodeObject with a raw pointer to a Node, the accessible object gets correctly detached if we adopt the node into a new document.");
14
15 // This triggers an asynchronous accessibility notification.
16 document.getElementById("node2").setAttribute("aria-label", "Label");
17
18 // Adopt the node into a new document, then garbage-collect it.
19 // Make sure the notification doesn't try to access the invalid node.
20 document.implementation.createDocument("", null).adoptNode(node2);
21 gc();
22 </script>
23
24 </body>
25 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/adopt-node-causes-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698