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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Range/range-created-in-mutation-event-crash.xhtml

Issue 2532843002: Postpone DOM mutation event in Range::extractContents() (Closed)
Patch Set: 2016-11-28T18:02:27 Created 4 years 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/dom/Range/range-created-in-mutation-event-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 xmlns="http://www.w3.org/1999/xhtml">
3 <style></style>
4 <script>
5 <![CDATA[
6
7 window.onload = function () {
8 document.execCommand("SelectAll", false);
9
10 var range = null;
11
12 document.addEventListener("DOMNodeRemovedFromDocument", function () {
13 range = getSelection().getRangeAt(0);
14 },true);
15
16 getSelection().getRangeAt(0).extractContents();
17 range.getBoundingClientRect();
18
19 if (window.testRunner)
20 testRunner.dumpAsText();
21
22 alert("This test calls getBoundingClientRect on a range obtained inside a mu tation event listener.\n"
23 + "The test passes if WebKit doesn't crash.\n\n"
24 + "PASS.");
25 }
26
27 ]]>
28 </script>
29 <input/>
30 </html>
31
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Range/range-created-in-mutation-event-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698