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

Side by Side Diff: LayoutTests/editing/selection/resources/deleteFromDocument-scoped-dispatch-event-crash-iframe.html

Issue 199383004: Postpone mutation event dispatch in Selection.deleteFromDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Scoping Range event Created 6 years, 9 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var count = 0;
5 document.addEventListener("DOMNodeRemoved", function () {
6 count++;
7 if (count < 2) {
8 var src = event.srcElement;
9 document.designMode = "on";
10 src.parentNode.replaceChild(document.head, src);
11 }
12 }, false);
13
14 window.onload = function () {
15 var selection = window.getSelection();
16 document.execCommand("SelectAll", false)
17 selection.deleteFromDocument();
18 window.parent.postMessage("FINISH", "*");
19 };
20 </script>
21 </head>
22 <body>
23 <div>
24 A
25 <select></select>
26 </div>
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/selection/deleteFromDocument-scoped-dispatch-event-crash-expected.txt ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698