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

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: Add doctype, get rid of <html>, <head>, <body> 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 <!DOCTYPE html>
2 <script src="../resources/js-test.js"></script>
3
4 <!-- Nodes inside a canvas get an AXNodeObject, not an AXRenderObject. -->
5 <canvas>
6 <div id=node2></div>
7 </canvas>
8
9 <script>
10 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.");
11
12 // This triggers an asynchronous accessibility notification.
13 document.getElementById("node2").setAttribute("aria-label", "Label");
14
15 // Adopt the node into a new document, then garbage-collect it.
16 // Make sure the notification doesn't try to access the invalid node.
17 document.implementation.createDocument("", null).adoptNode(node2);
18 gc();
19 </script>
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