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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/DOMParser-detached-no-crash.html

Issue 2509813002: DOMParser: handle use from contexts without an "active document". (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/xml/DOMParser.cpp » ('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 <title>Document-detached use of DOMParser</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <body>
6 <script>
7 test(() => {
8 var iframe = document.createElement("iframe");
9 iframe.src = "data:text/html,<b>";
10 document.body.appendChild(iframe);
11 var Parser = iframe.contentWindow.DOMParser;
12 iframe.remove();
13 var d = new Parser();
14 assert_true(d != null);
15 var detached = d.parseFromString("no crash", "text/html");
16 assert_equals(detached.origin, "null");
17 });
18 </script>
19 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/xml/DOMParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698