Index: third_party/WebKit/LayoutTests/external/wpt/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/origin-check-in-document-open-basic.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/origin-check-in-document-open-basic.html b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/origin-check-in-document-open-basic.html |
index 7335122e28f4214c73ffd3382df4508649b5ac55..118be71af19c88d5fed0a1efe010bbd6868eae9c 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/origin-check-in-document-open-basic.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/origin-check-in-document-open-basic.html |
@@ -14,5 +14,13 @@ testInIFrame(undefined, (ctx) => { |
assert_unreached("Opening a same origin document throws"); |
} |
}, "It should be possible to open same origin documents."); |
+ |
+testInIFrame(undefined, (ctx) => { |
+ try { |
+ ctx.iframes[0].contentDocument.write(""); |
+ } catch (e) { |
+ assert_unreached("Implicitly opening a same origin document throws"); |
+ } |
+}, "It should be possible to implicitly open same origin documents."); |
</script> |
</body> |