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

Side by Side Diff: LayoutTests/editing/inserting/insert-with-javascript-protocol-crash.html

Issue 64103002: Make "InsertHTML" and "Indent" commands to handle DOM tree modification during processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-11-08T13:02:58 Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/editing/inserting/insert-with-javascript-protocol-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 <script>
2 onload = function() {
3 document.execCommand('selectall');
4 var iframe = document.createElement('iframe');
5 iframe.onload = startIframe;
6 document.documentElement.appendChild(iframe);
7 document.body.textContent = 'PASS; NOT CRASHED';
8 if (window.testRunner)
9 testRunner.dumpAsText();
10 };
11
12 function startIframe()
13 {
14 document.designMode = 'on';
15 document.execCommand('justifyfull');
16 document.execCommand('insertimage', false, 'x.gif');
17 document.execCommand('indent');
18 document.execCommand('inserthtml', false, '<iframe></iframe>')
19 document.execCommand('inserthtml', false, '<iframe src="javascript:window.to p.startIFrame2()"></iframe>');
20 }
21
22 var counter = 0;
23 function startIFrame2()
24 {
25 try {
26 ++counter;
27 if (counter >= 22)
28 return;
29 document.execCommand('justifyleft');
30 document.execCommand('indent');
31 document.execCommand('forwardDelete');
32 } catch (e) {
33 // Catch "Uncaught RangeError: Maximum call stack size exceeded."
34 }
35 }
36 </script>
37 <body></body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/inserting/insert-with-javascript-protocol-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698