Bug 1576293 [wpt PR 17419] - Add tests for cases where a <base target> shouldn't apply, a=testonly
authornatechapin <japhet@chromium.org>
Wed, 28 Aug 2019 09:54:10 +0000
changeset 490600 1614ca504f6193db6932ae8841e4bae3f24398bf
parent 490599 1cd8c72bcdebe21f24f4d24a5d4350a62beaa6e1
child 490601 48de222785005409ac797e49c1ab8ad06d6c3d08
push id113997
push userwptsync@mozilla.com
push dateThu, 29 Aug 2019 15:12:16 +0000
treeherdermozilla-inbound@48de22278500 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1576293, 17419
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1576293 [wpt PR 17419] - Add tests for cases where a <base target> shouldn't apply, a=testonly Automatic update from web-platform-tests HTML: tests for cases where a <base target> shouldn't apply -- wpt-commits: dbb4e0ccfd0a97f80becd851371fb5a205aef7ec wpt-pr: 17419
testing/web-platform/tests/html/semantics/document-metadata/the-base-element/base_target_does_not_affect_iframe_src_navigation.html
testing/web-platform/tests/html/semantics/document-metadata/the-base-element/base_target_does_not_affect_location_assignment.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/document-metadata/the-base-element/base_target_does_not_affect_iframe_src_navigation.html
@@ -0,0 +1,10 @@
+<base id="base" target="_blank">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<iframe id="i" src="about:blank"></iframe>
+<script>
+async_test(function(t) {
+  window.onmessage = () => t.done();
+  i.src = "data:text/html,This should navigate the iframe<script>top.postMessage('done', '*');</sc" + "ript>";
+});
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/document-metadata/the-base-element/base_target_does_not_affect_location_assignment.html
@@ -0,0 +1,10 @@
+<base id="base" target="_blank">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<iframe id="i" src="about:blank"></iframe>
+<script>
+async_test(function(t) {
+  window.onmessage = () => t.done();
+  i.contentWindow.location = "data:text/html,This should navigate the iframe<script>top.postMessage('done', '*');</sc" + "ript>";
+});
+</script>