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

Side by Side Diff: LayoutTests/fast/dom/Range/surroundContents-iframe-crash.html

Issue 364293004: CANCEL: Make Range::insertNode to validate new end boundary point before using it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-07-04T05:04:32 Created 6 years, 5 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/dom/Range/surroundContents-iframe-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 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7
8 var inSurroundContents = false;
9 document.addEventListener('load', function() {
10 var iframe = document.querySelector('iframe');
11 if (inSurroundContents) {
12 var newText = iframe.nextSibling;
13 newText.parentNode.removeChild(newText);
14 return;
15 }
16 var range = document.createRange();
17 range.setStart(document.body.firstChild, 2);
18 inSurroundContents = true;
19 range.surroundContents(iframe);
20 inSurroundContents = false;
21 document.body.textContent = 'PASS if Blink doesn\'t crash.';
22 }, true);
23 </script>
24 </head>
25 <body>abcde<iframe></iframe></body>
26 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/surroundContents-iframe-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698