Commit 640e37dc authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@f76b2e5e2b1dd5d73cf2351c57a303d4a67eb729

Using wpt-import in Chromium fc035627.
With Chromium commits locally applied on WPT:
9e3affdd "Ship `referer` header length limitation."
3d4f72a8 "Worker: Add service worker interception tests for shared workers"
043af69d "WebSocket: stop removing an iframe in onerror from crashing"


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
jsbell@chromium.org:
  external/wpt/IndexedDB
pwnall@chromium.org, jsbell@chromium.org:
  external/wpt/cookie-store

NOAUTOREVERT=true
TBR=lpz

No-Export: true
Change-Id: I3edf68a57813623a3513df3a730f8d98a1859231
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1666460Reviewed-by: default avatarWPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#670368}
parent 04138e24
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# separate runner, run_webdriver_tests.py. Thus this is a separate # separate runner, run_webdriver_tests.py. Thus this is a separate
# expectation file from TestExpectations. # expectation file from TestExpectations.
# ====== New tests from wpt-importer added here ====== # ====== New tests from wpt-importer added here ======
crbug.com/626703 [ Linux ] external/wpt/webdriver/tests/switch_to_window/alerts.py>>test_retain_tab_modal_status [ Failure ]
crbug.com/626703 [ Linux ] external/wpt/webdriver/tests/minimize_window/minimize.py>>test_fully_exit_fullscreen [ Failure ] crbug.com/626703 [ Linux ] external/wpt/webdriver/tests/minimize_window/minimize.py>>test_fully_exit_fullscreen [ Failure ]
crbug.com/626703 [ Linux ] external/wpt/webdriver/tests/permissions/set.py>>test_set_to_state[realmSetting2-denied] [ Failure ] crbug.com/626703 [ Linux ] external/wpt/webdriver/tests/permissions/set.py>>test_set_to_state[realmSetting2-denied] [ Failure ]
crbug.com/626703 [ Linux ] external/wpt/webdriver/tests/perform_actions/pointer_contextmenu.py>>test_control_click[\ue009-ctrlKey] [ Failure ] crbug.com/626703 [ Linux ] external/wpt/webdriver/tests/perform_actions/pointer_contextmenu.py>>test_control_click[\ue009-ctrlKey] [ Failure ]
......
...@@ -6,12 +6,13 @@ ...@@ -6,12 +6,13 @@
<script src=support.js></script> <script src=support.js></script>
<script> <script>
var open_rq = createdb(async_test(), 'database_name', 13); var database_name = document.location + '-database_name';
var open_rq = createdb(async_test(), database_name, 13);
open_rq.onupgradeneeded = function(e) {}; open_rq.onupgradeneeded = function(e) {};
open_rq.onsuccess = function(e) { open_rq.onsuccess = function(e) {
var db = e.target.result; var db = e.target.result;
assert_equals(db.name, 'database_name', 'db.name'); assert_equals(db.name, database_name, 'db.name');
assert_equals(db.version, 13, 'db.version'); assert_equals(db.version, 13, 'db.version');
this.done(); this.done();
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<script src=support.js></script> <script src=support.js></script>
<script> <script>
var open_rq = createdb(async_test(), 'database_name'); var open_rq = createdb(async_test(), document.location + '-database_name');
open_rq.onupgradeneeded = function(e) { open_rq.onupgradeneeded = function(e) {
assert_equals(e.target.result.version, 1, "db.version"); assert_equals(e.target.result.version, 1, "db.version");
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<script src=support.js></script> <script src=support.js></script>
<script> <script>
var open_rq = createdb(async_test(), 'database_name'); var open_rq = createdb(async_test(), document.location + '-database_name');
open_rq.onupgradeneeded = function() {}; open_rq.onupgradeneeded = function() {};
open_rq.onsuccess = function(e) { open_rq.onsuccess = function(e) {
......
...@@ -9,12 +9,18 @@ self.addEventListener('install', (event) => { ...@@ -9,12 +9,18 @@ self.addEventListener('install', (event) => {
// The subscribeToChanges calls are not done in parallel on purpose. Having // The subscribeToChanges calls are not done in parallel on purpose. Having
// multiple in-flight requests introduces failure modes aside from the // multiple in-flight requests introduces failure modes aside from the
// cookie change logic that this test aims to cover. // cookie change logic that this test aims to cover.
await cookieStore.subscribeToChanges([ try {
{ name: 'cookie-name1', matchType: 'equals', url: '/scope/path1' }]); await cookieStore.subscribeToChanges([
await cookieStore.subscribeToChanges([ { name: 'cookie-name1', matchType: 'equals', url: '/scope/path1' }]);
{ }, // Test the default values for subscription properties. await cookieStore.subscribeToChanges([
{ name: 'cookie-prefix', matchType: 'starts-with' }, { }, // Test the default values for subscription properties.
]); { name: 'cookie-prefix', matchType: 'starts-with' },
]);
// If the worker enters the "redundant" state, the UA may terminate it
// before all tests have been reported to the client. Stifle errors in
// order to avoid this and ensure all tests are consistently reported.
} catch (err) {}
})()); })());
}); });
......
...@@ -6,8 +6,14 @@ importScripts("/resources/testharness.js"); ...@@ -6,8 +6,14 @@ importScripts("/resources/testharness.js");
self.addEventListener('install', (event) => { self.addEventListener('install', (event) => {
event.waitUntil((async () => { event.waitUntil((async () => {
await cookieStore.subscribeToChanges([ try {
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]); await cookieStore.subscribeToChanges([
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
// If the worker enters the "redundant" state, the UA may terminate it
// before all tests have been reported to the client. Stifle errors in
// order to avoid this and ensure all tests are consistently reported.
} catch (err) {}
})()); })());
}); });
......
...@@ -6,7 +6,13 @@ importScripts("/resources/testharness.js"); ...@@ -6,7 +6,13 @@ importScripts("/resources/testharness.js");
self.addEventListener('install', (event) => { self.addEventListener('install', (event) => {
event.waitUntil((async () => { event.waitUntil((async () => {
await cookieStore.subscribeToChanges([]); try {
await cookieStore.subscribeToChanges([]);
// If the worker enters the "redundant" state, the UA may terminate it
// before all tests have been reported to the client. Stifle errors in
// order to avoid this and ensure all tests are consistently reported.
} catch (err) {}
})()); })());
}); });
......
...@@ -6,8 +6,14 @@ importScripts("/resources/testharness.js"); ...@@ -6,8 +6,14 @@ importScripts("/resources/testharness.js");
self.addEventListener('install', (event) => { self.addEventListener('install', (event) => {
event.waitUntil((async () => { event.waitUntil((async () => {
await cookieStore.subscribeToChanges([ try {
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]); await cookieStore.subscribeToChanges([
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
// If the worker enters the "redundant" state, the UA may terminate it
// before all tests have been reported to the client. Stifle errors in
// order to avoid this and ensure all tests are consistently reported.
} catch (err) {}
})()); })());
}); });
......
...@@ -6,8 +6,14 @@ importScripts("/resources/testharness.js"); ...@@ -6,8 +6,14 @@ importScripts("/resources/testharness.js");
self.addEventListener('install', (event) => { self.addEventListener('install', (event) => {
event.waitUntil((async () => { event.waitUntil((async () => {
await cookieStore.subscribeToChanges([ try {
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]); await cookieStore.subscribeToChanges([
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
// If the worker enters the "redundant" state, the UA may terminate it
// before all tests have been reported to the client. Stifle errors in
// order to avoid this and ensure all tests are consistently reported.
} catch (err) {}
})()); })());
}); });
......
This is a testharness.js-based test.
FAIL API availability following history traversal Cannot read property 'history' of null
Harness: the test ran to completion.
<!doctype html>
<title>API availability following history traversal</title>
<meta charset=utf-8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<p>Test requires popup blocker disabled</p>
<div id=log></div>
<script>
var t = async_test();
var hasNavigated = false;
var child;
t.step(function() {
child = window.open("resources/api-availability-1.html");
t.add_cleanup(function() {
child.close();
});
});
navigate = t.step_func(function() {
hasNavigated = true;
child.location = child.location.href.replace("api-availability-1.html", "api-availability-2.html");
});
</script>
<!doctype html>
<title>API availability following history traversal - 1</title>
<script>
var controller = opener;
var t = controller.t;
var assert_not_equals = controller.assert_not_equals;
t.step(function() {
// If this document is discarded as a result of navigation, then this script
// will be executed a second time. The semantics this test intends to verify
// cannot be observed under these conditions, the discarding is not itself a
// violation. Silently pass the test in that case.
if (controller.hasNavigated) {
t.done();
return;
}
t.step_timeout(function() {
assert_not_equals(window.history, null, 'history');
assert_not_equals(window.localStorage, null, 'localStorage');
assert_not_equals(window.location, null, 'location');
assert_not_equals(window.navigator, null, 'navigator');
assert_not_equals(window.opener, null, 'opener');
assert_not_equals(window.sessionStorage, null, 'sessionStorage');
t.done();
}, 1000);
controller.navigate();
});
</script>
<!doctype html>
<title>API availability following history traversal - 2</title>
<body onload="history.back()"></body>
const SAME_ORIGIN = {origin: get_host_info().HTTP_ORIGIN, name: "SAME_ORIGIN"};
const SAME_SITE = {origin: get_host_info().HTTP_REMOTE_ORIGIN, name: "SAME_SITE"};
const CROSS_ORIGIN = {origin: get_host_info().HTTP_NOTSAMESITE_ORIGIN, name: "CROSS_ORIGIN"}
function coop_test(t, host, coop, channelName, hasOpener) {
let bc = new BroadcastChannel(channelName);
bc.onmessage = t.step_func_done((event) => {
let payload = event.data;
assert_equals(payload.name, hasOpener ? channelName : "");
assert_equals(payload.opener, hasOpener);
});
let w = window.open(`${host.origin}/html/cross-origin-opener/resources/coop_window.py?path=window.sub.html&coop=${escape(coop)}&channel=${channelName}`, channelName);
// w will be closed by its postback iframe. When out of process,
// window.close() does not work.
t.add_cleanup(() => w.close());
}
function run_coop_tests(mainTest, testArray) {
for (let test of tests) {
async_test(t => {
coop_test(t, test[0], test[1],
`${mainTest}_to_${test[0].name}_${test[1].replace(/ /g,"-")}`,
test[2]);
}, `${mainTest} document opening popup to ${test[0].origin} with COOP: "${test[1]}"`);
}
}
This is a testharness.js-based test.
PASS null document opening popup to http://web-platform.test:8001 with COOP: ""
PASS null document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL null document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "null_to_SAME_ORIGIN_same-site"
FAIL null document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "null_to_SAME_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL null document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "null_to_SAME_ORIGIN_same-origin"
FAIL null document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "null_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS null document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS null document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL null document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "null_to_SAME_SITE_same-site"
FAIL null document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "null_to_SAME_SITE_same-site-unsafe-allow-outgoing"
FAIL null document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "null_to_SAME_SITE_same-origin"
FAIL null document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "null_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS null document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS null document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL null document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "null_to_CROSS_ORIGIN_same-site"
FAIL null document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "null_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL null document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "null_to_CROSS_ORIGIN_same-origin"
FAIL null document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "null_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="common.sub.js"></script>
<div id=log></div>
<script>
let tests = [
// popup Origin, popup COOP, expect opener
[SAME_ORIGIN, "", true],
[SAME_ORIGIN, "jibberish", true],
[SAME_ORIGIN, "same-site", false],
[SAME_ORIGIN, "same-site unsafe-allow-outgoing", false],
[SAME_ORIGIN, "same-origin", false],
[SAME_ORIGIN, "same-origin unsafe-allow-outgoing", false],
[SAME_SITE, "", true],
[SAME_SITE, "jibberish", true],
[SAME_SITE, "same-site", false],
[SAME_SITE, "same-site unsafe-allow-outgoing", false],
[SAME_SITE, "same-origin", false],
[SAME_SITE, "same-origin unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "", true],
[CROSS_ORIGIN, "jibberish", true],
[CROSS_ORIGIN, "same-site", false],
[CROSS_ORIGIN, "same-site unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "same-origin", false],
[CROSS_ORIGIN, "same-origin unsafe-allow-outgoing", false],
];
run_coop_tests("null", tests);
</script>
This is a testharness.js-based test.
FAIL same-origin document opening popup to http://web-platform.test:8001 with COOP: "" assert_equals: expected "" but got "same-origin_to_SAME_ORIGIN_"
FAIL same-origin document opening popup to http://web-platform.test:8001 with COOP: "jibberish" assert_equals: expected "" but got "same-origin_to_SAME_ORIGIN_jibberish"
FAIL same-origin document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-origin_to_SAME_ORIGIN_same-site"
FAIL same-origin document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_to_SAME_ORIGIN_same-site-unsafe-allow-outgoing"
PASS same-origin document opening popup to http://web-platform.test:8001 with COOP: "same-origin"
FAIL same-origin document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
FAIL same-origin document opening popup to http://www1.web-platform.test:8001 with COOP: "" assert_equals: expected "" but got "same-origin_to_SAME_SITE_"
FAIL same-origin document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish" assert_equals: expected "" but got "same-origin_to_SAME_SITE_jibberish"
FAIL same-origin document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-origin_to_SAME_SITE_same-site"
FAIL same-origin document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_to_SAME_SITE_same-site-unsafe-allow-outgoing"
FAIL same-origin document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-origin_to_SAME_SITE_same-origin"
FAIL same-origin document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
FAIL same-origin document opening popup to http://not-web-platform.test:8001 with COOP: "" assert_equals: expected "" but got "same-origin_to_CROSS_ORIGIN_"
FAIL same-origin document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish" assert_equals: expected "" but got "same-origin_to_CROSS_ORIGIN_jibberish"
FAIL same-origin document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-origin_to_CROSS_ORIGIN_same-site"
FAIL same-origin document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-origin document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-origin_to_CROSS_ORIGIN_same-origin"
FAIL same-origin document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="common.sub.js"></script>
<div id=log></div>
<script>
let tests = [
// popup Origin, popup COOP, expect opener
[SAME_ORIGIN, "", false],
[SAME_ORIGIN, "jibberish", false],
[SAME_ORIGIN, "same-site", false],
[SAME_ORIGIN, "same-site unsafe-allow-outgoing", false],
[SAME_ORIGIN, "same-origin", true],
[SAME_ORIGIN, "same-origin unsafe-allow-outgoing", false],
[SAME_SITE, "", false],
[SAME_SITE, "jibberish", false],
[SAME_SITE, "same-site", false],
[SAME_SITE, "same-site unsafe-allow-outgoing", false],
[SAME_SITE, "same-origin", false],
[SAME_SITE, "same-origin unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "", false],
[CROSS_ORIGIN, "jibberish", false],
[CROSS_ORIGIN, "same-site", false],
[CROSS_ORIGIN, "same-site unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "same-origin", false],
[CROSS_ORIGIN, "same-origin unsafe-allow-outgoing", false],
];
run_coop_tests("same-origin", tests);
</script>
This is a testharness.js-based test.
PASS same-origin_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-origin_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
PASS same-origin_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing"
PASS same-origin_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-origin_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_SAME_SITE_same-site"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_SAME_SITE_same-site-unsafe-allow-outgoing"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-origin_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-origin_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-origin_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-origin_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="common.sub.js"></script>
<div id=log></div>
<script>
let tests = [
// popup Origin, popup COOP, expect opener
[SAME_ORIGIN, "", true],
[SAME_ORIGIN, "jibberish", true],
[SAME_ORIGIN, "same-site", false],
[SAME_ORIGIN, "same-site unsafe-allow-outgoing", false],
[SAME_ORIGIN, "same-origin", false],
[SAME_ORIGIN, "same-origin unsafe-allow-outgoing", true],
[SAME_SITE, "", true],
[SAME_SITE, "jibberish", true],
[SAME_SITE, "same-site", false],
[SAME_SITE, "same-site unsafe-allow-outgoing", false],
[SAME_SITE, "same-origin", false],
[SAME_SITE, "same-origin unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "", true],
[CROSS_ORIGIN, "jibberish", true],
[CROSS_ORIGIN, "same-site", false],
[CROSS_ORIGIN, "same-site unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "same-origin", false],
[CROSS_ORIGIN, "same-origin unsafe-allow-outgoing", false],
];
run_coop_tests("same-origin_unsafe-allow-outgoing", tests);
</script>
<!doctype html>
<meta charset=utf-8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script>
const CHANNEL_NAME = "new_window_same_site";
async_test(t => {
let w = window.open(`${get_host_info().HTTP_REMOTE_ORIGIN}/html/cross-origin-opener/resources/window.sub.html?channel=${CHANNEL_NAME}`, "window_name", "height=200,width=250");
// w will be closed by its postback iframe. When out of process,
// window.close() does not work.
t.add_cleanup(() => w.close());
let bc = new BroadcastChannel(CHANNEL_NAME);
bc.onmessage = t.step_func_done((event) => {
let payload = event.data;
assert_equals(payload.name, "window_name");
assert_equals(payload.opener, true);
});
}, "same-site policy works");
</script>
This is a testharness.js-based test.
FAIL same-site document opening popup to http://web-platform.test:8001 with COOP: "" assert_equals: expected "" but got "same-site_to_SAME_ORIGIN_"
FAIL same-site document opening popup to http://web-platform.test:8001 with COOP: "jibberish" assert_equals: expected "" but got "same-site_to_SAME_ORIGIN_jibberish"
PASS same-site document opening popup to http://web-platform.test:8001 with COOP: "same-site"
FAIL same-site document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_to_SAME_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_to_SAME_ORIGIN_same-origin"
FAIL same-site document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
FAIL same-site document opening popup to http://www1.web-platform.test:8001 with COOP: "" assert_equals: expected "" but got "same-site_to_SAME_SITE_"
FAIL same-site document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish" assert_equals: expected "" but got "same-site_to_SAME_SITE_jibberish"
PASS same-site document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site"
FAIL same-site document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_to_SAME_SITE_same-site-unsafe-allow-outgoing"
FAIL same-site document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_to_SAME_SITE_same-origin"
FAIL same-site document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
FAIL same-site document opening popup to http://not-web-platform.test:8001 with COOP: "" assert_equals: expected "" but got "same-site_to_CROSS_ORIGIN_"
FAIL same-site document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish" assert_equals: expected "" but got "same-site_to_CROSS_ORIGIN_jibberish"
FAIL same-site document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_to_CROSS_ORIGIN_same-site"
FAIL same-site document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_to_CROSS_ORIGIN_same-origin"
FAIL same-site document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="common.sub.js"></script>
<div id=log></div>
<script>
let tests = [
// popup Origin, popup COOP, expect opener
[SAME_ORIGIN, "", false],
[SAME_ORIGIN, "jibberish", false],
[SAME_ORIGIN, "same-site", true],
[SAME_ORIGIN, "same-site unsafe-allow-outgoing", false],
[SAME_ORIGIN, "same-origin", false],
[SAME_ORIGIN, "same-origin unsafe-allow-outgoing", false],
[SAME_SITE, "", false],
[SAME_SITE, "jibberish", false],
[SAME_SITE, "same-site", true],
[SAME_SITE, "same-site unsafe-allow-outgoing", false],
[SAME_SITE, "same-origin", false],
[SAME_SITE, "same-origin unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "", false],
[CROSS_ORIGIN, "jibberish", false],
[CROSS_ORIGIN, "same-site", false],
[CROSS_ORIGIN, "same-site unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "same-origin", false],
[CROSS_ORIGIN, "same-origin unsafe-allow-outgoing", false],
];
run_coop_tests("same-site", tests);
</script>
<!doctype html>
<meta charset=utf-8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="common.sub.js"></script>
<div id=log></div>
<script>
let tests = [
// popup Origin, popup COOP, expect opener
[SAME_ORIGIN, "", true],
[SAME_ORIGIN, "jibberish", true],
[SAME_ORIGIN, "same-site", false],
[SAME_ORIGIN, "same-site unsafe-allow-outgoing", true],
[SAME_ORIGIN, "same-origin", false],
[SAME_ORIGIN, "same-origin unsafe-allow-outgoing", false],
[SAME_SITE, "", true],
[SAME_SITE, "jibberish", true],
[SAME_SITE, "same-site", false],
[SAME_SITE, "same-site unsafe-allow-outgoing", true],
[SAME_SITE, "same-origin", false],
[SAME_SITE, "same-origin unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "", true],
[CROSS_ORIGIN, "jibberish", true],
[CROSS_ORIGIN, "same-site", false],
[CROSS_ORIGIN, "same-site unsafe-allow-outgoing", false],
[CROSS_ORIGIN, "same-origin", false],
[CROSS_ORIGIN, "same-origin unsafe-allow-outgoing", false],
];
run_coop_tests("same-site_unsafe-allow-outgoing", tests);
</script>
import urllib
import os.path
def main(request, response):
coop = request.GET.first('coop')
if coop:
response.headers.set('Cross-Origin-Opener-Policy', urllib.unquote(coop))
path = os.path.join(os.path.dirname(__file__), request.GET.first('path'))
response.content = open(path, mode='rb').read()
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
<meta charset=utf-8> <meta charset=utf-8>
<script src="/common/get-host-info.sub.js"></script> <script src="/common/get-host-info.sub.js"></script>
<div id="status"> </div>
<script type="text/javascript"> <script type="text/javascript">
let iframe = document.createElement("iframe"); window.addEventListener('load', function() {
iframe.onload = () => { let iframe = document.createElement("iframe");
let payload = { name: self.name, opener: !!self.opener }; iframe.onload = () => {
iframe.contentWindow.postMessage(payload, "*"); let payload = { name: self.name, opener: !!self.opener };
}; iframe.contentWindow.postMessage(payload, "*");
let channelName = new URL(location).searchParams.get("channel"); };
iframe.src = `${get_host_info().HTTP_ORIGIN}/html/cross-origin-opener/resources/postback.sub.html?channel=${channelName}`; let channelName = new URL(location).searchParams.get("channel");
document.body.appendChild(iframe); iframe.src = `${get_host_info().HTTP_ORIGIN}/html/cross-origin-opener/resources/postback.sub.html?channel=${channelName}`;
document.body.appendChild(iframe);
});
</script> </script>
from webdriver.error import NoSuchAlertException
from tests.support.asserts import assert_error, assert_success from tests.support.asserts import assert_error, assert_success
from tests.support.inline import inline from tests.support.inline import inline
from tests.support.sync import Poll
def accept_alert(session): def accept_alert(session):
...@@ -43,3 +46,16 @@ def test_accept_prompt(session): ...@@ -43,3 +46,16 @@ def test_accept_prompt(session):
response = accept_alert(session) response = accept_alert(session)
assert_success(response) assert_success(response)
assert session.execute_script("return window.result") == "Federer" assert session.execute_script("return window.result") == "Federer"
def test_unexpected_alert(session):
session.execute_script("window.setTimeout(function() { window.alert('Hello'); }, 100);")
wait = Poll(
session,
timeout=5,
ignored_exceptions=NoSuchAlertException,
message="No user prompt with text 'Hello' detected")
wait.until(lambda s: s.alert.text == "Hello")
response = accept_alert(session)
assert_success(response)
from webdriver.error import NoSuchAlertException
from tests.support.asserts import assert_error, assert_success from tests.support.asserts import assert_error, assert_success
from tests.support.inline import inline from tests.support.inline import inline
from tests.support.sync import Poll
def dismiss_alert(session): def dismiss_alert(session):
...@@ -43,3 +46,16 @@ def test_dismiss_prompt(session): ...@@ -43,3 +46,16 @@ def test_dismiss_prompt(session):
response = dismiss_alert(session) response = dismiss_alert(session)
assert_success(response) assert_success(response)
assert session.execute_script("return window.result") is None assert session.execute_script("return window.result") is None
def test_unexpected_alert(session):
session.execute_script("setTimeout(function() { alert('Hello'); }, 100);")
wait = Poll(
session,
timeout=5,
ignored_exceptions=NoSuchAlertException,
message="No user prompt with text 'Hello' detected")
wait.until(lambda s: s.alert.text == "Hello")
response = dismiss_alert(session)
assert_success(response)
from webdriver.error import NoSuchAlertException
from tests.support.asserts import assert_error, assert_success from tests.support.asserts import assert_error, assert_success
from tests.support.inline import inline from tests.support.inline import inline
from tests.support.sync import Poll
def get_alert_text(session): def get_alert_text(session):
...@@ -48,3 +51,16 @@ def test_get_prompt_text(session): ...@@ -48,3 +51,16 @@ def test_get_prompt_text(session):
prompt_text = response.body["value"] prompt_text = response.body["value"]
assert isinstance(prompt_text, basestring) assert isinstance(prompt_text, basestring)
assert prompt_text == "Enter Your Name: " assert prompt_text == "Enter Your Name: "
def test_unexpected_alert(session):
session.execute_script("setTimeout(function() { alert('Hello'); }, 100);")
wait = Poll(
session,
timeout=5,
ignored_exceptions=NoSuchAlertException,
message="No user prompt with text 'Hello' detected")
wait.until(lambda s: s.alert.text == "Hello")
response = get_alert_text(session)
assert_success(response)
import pytest
from webdriver import error
from tests.support.asserts import assert_success
from tests.support.inline import inline
def switch_to_window(session, handle):
return session.transport.send(
"POST", "session/{session_id}/window".format(**vars(session)),
{"handle": handle})
def test_retain_tab_modal_status(session, create_window):
handle = session.window_handle
new_handle = create_window()
response = switch_to_window(session, new_handle)
assert_success(response)
session.url = inline("<script>window.alert('Hello');</script>")
assert session.alert.text == "Hello"
response = switch_to_window(session, handle)
assert_success(response)
with pytest.raises(error.NoSuchAlertException):
session.alert.text == "Hello"
response = switch_to_window(session, new_handle)
assert_success(response)
assert session.alert.text == "Hello"
This is a testharness.js-based test.
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = fullscreen error
PASS Element#requestFullscreen() followed by moving the element into an iframe
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_ORIGIN_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-site"
PASS same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://www1.web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_SAME_SITE_same-origin-unsafe-allow-outgoing"
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: ""
PASS same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "jibberish"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-site unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-site-unsafe-allow-outgoing"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin"
FAIL same-site_unsafe-allow-outgoing document opening popup to http://not-web-platform.test:8001 with COOP: "same-origin unsafe-allow-outgoing" assert_equals: expected "" but got "same-site_unsafe-allow-outgoing_to_CROSS_ORIGIN_same-origin-unsafe-allow-outgoing"
Harness: the test ran to completion.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment