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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/parser/strip-script-attrs-on-input.html

Issue 1372343002: Crash fix: Avoid using stale HTMLToken after tree construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO about mutation Created 5 years, 2 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/fast/parser/strip-script-attrs-on-input-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 <body>
3 <div contenteditable="true" id="target">
4 <!-- Blink will remove javascript url attrs when copy&pasted. -->
5 <input onblur="javascript:false;" onclick="javascript:false;" type="text"/>
6 </div>
7 <script>
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
11 }
12
13 requestAnimationFrame(function() {
14 var target = document.getElementById("target");
15 var selection = window.getSelection();
16 var range = document.createRange();
17 range.selectNodeContents(target);
18 selection.addRange(range);
19
20 // Invoke HTML parser with ParserContentPolicy disabling scripting content.
21 document.execCommand("Cut");
22 document.execCommand("Paste");
23
24 target.innerHTML = '';
25 testRunner.notifyDone();
26 });
27 </script>
28 <p>PASS: if no OOB access detected in ASAN.</p>
29 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/parser/strip-script-attrs-on-input-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698