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

Side by Side Diff: LayoutTests/editing/inserting/insert-with-mutation-event.html

Issue 141103006: Protect document.execCommand() from recursive call and DOM mutation events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2014-01-29T17:06:03 Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/editing/inserting/insert-with-mutation-event-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 id="sample" contenteditable="true">
4 foo
5 <div id="test" style="font-weight:bold">bar</div>
6 </div>
7 </body>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
11 function $(id) { return document.getElementById(id); }
12 window.getSelection().collapse($('test'), 0);
13 document.execCommand('Delete');
14 var sample = $('sample');
15 sample.addEventListener('DOMSubtreeModified', function () {
16 // Move nodes being processed by 'InsertText' to another document.
17 var anotherDoc = document.implementation.createDocument('', null);
18 anotherDoc.adoptNode(sample);
19 });
20 document.execCommand('InsertText', false, 'ab123cd');
21 document.body.textContent = 'PASS; NOT CRASHED';
22 </script>
tkent 2014/01/29 08:22:01 I don't understand how recursive execCommand happe
yosin_UTC9 2014/01/29 09:13:30 This test is checks mutation event handler not to
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/inserting/insert-with-mutation-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698