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

Side by Side Diff: LayoutTests/fast/text/international/unicode-bidi-isolate-nested-with-removes.html

Issue 23137012: Added LayoutTest for use-after-free regression with bidi isolates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified test to output PASS if does not crash. Created 7 years, 4 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/fast/text/international/unicode-bidi-isolate-nested-with-removes-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 tests for regression of https://crbug.com/265838 where adjacent, neste d isolates caused a use-after-free if the elements were later removed. -->
2 <script>
3 function remove(node)
4 {
5 node.parentNode.removeChild(node);
6 }
7
8 window.onload = function()
9 {
10 document.body.offsetTop;
11 remove(b.lastChild);
12 document.body.offsetTop;
13 remove(a.firstChild);
14 document.body.offsetTop;
15
16 document.body.appendChild(document.createTextNode("PASS did not crash"));
17 }
18 </script>
19
20 <body>
21 <div id="a">foo</div>
22 <div></div>
23 <div>
24 <output>
25 <output>bar</output>
26 <span id="b">
27 <span><div style="display:inline-block"></div><br><br><br></span>
28 </span>
29 </output>
30 </div>
31 </body>
32
33 <script>
34 if (window.testRunner)
35 testRunner.dumpAsText();
36 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/text/international/unicode-bidi-isolate-nested-with-removes-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698