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

Unified Diff: third_party/WebKit/LayoutTests/fast/html/imports/import-child-null-document-crash.html

Issue 2551973003: Use correct document for notifying of inserted import. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/html/imports/import-child-null-document-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/html/imports/import-child-null-document-crash.html b/third_party/WebKit/LayoutTests/fast/html/imports/import-child-null-document-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..48242b9a5bef9da0abe177762ae0a5e3a72529cf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/html/imports/import-child-null-document-crash.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<link id="importLink" rel="import" href="dummy.html">
+<script>
+ test(() => {
+ document.head.appendChild(importLink.cloneNode());
+ }, "Cloning and appending the loading import should not crash.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698