html/browsers/origin/cross-origin-objects/
116 / 127 WPT subtests passing
- Failed
- 11
- Timed out
- 0
- Not run
- 0
- Test files
- 8
- Blocking files
- 0
Chrome 110 / 127 WPT subtests passing on the same files, none blocking
Tests
8 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
cross-origin-due-to-document-domain-only.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Cross-origin due to document.domain
cross-origin-objects-function-caching.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Cross-origin Window methods are cached
- Cross-origin Window accessors are cached
- Cross-origin Location `replace` method is cached
- Cross-origin Location `href` setter is cached
cross-origin-objects-function-length.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Cross-origin Window methods have correct 'length'
- Cross-origin Window accessors have correct 'length'
- Cross-origin Location `replace` method has correct 'length'
- Cross-origin Location `href` setter has correct 'length'
cross-origin-objects-function-name.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Cross-origin Window methods have correct 'name'
- Cross-origin Window accessors have correct 'name'
- Cross-origin Location `replace` method has correct 'name'
- Cross-origin Location `href` setter has correct 'name'
cross-origin-objects-on-new-window.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Cross-origin object identity preserved across document.domain
cross-origin-objects.html 81 / 90 passingChrome 75 / 909 failedWith failures
- ¶
FAIL[[SetPrototypeOf]] should return false (cross-origin)
assert_throws_js: proto setter |call| on cross-origin Window function "function() { protoSetter.call(win, new Object()); }" threw object "SecurityError: Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame." ("SecurityError") expected instance of function "function TypeError() { [native code] }" ("TypeError") - ¶
FAIL[[SetPrototypeOf]] should return false (same-origin + document.domain)
assert_throws_js: proto setter |call| on cross-origin Window function "function() { protoSetter.call(win, new Object()); }" threw object "SecurityError: Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame." ("SecurityError") expected instance of function "function TypeError() { [native code] }" ("TypeError") - ¶
FAIL[[SetPrototypeOf]] should return false (cross-site)
assert_throws_js: proto setter |call| on cross-origin Window function "function() { protoSetter.call(win, new Object()); }" threw object "SecurityError: Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame." ("SecurityError") expected instance of function "function TypeError() { [native code] }" ("TypeError") - ¶
FAIL[[PreventExtensions]] should return false cross-origin objects (cross-origin)
assert_throws_js: preventExtensions on cross-origin Window should throw function "function() { Object.preventExtensions(win) }" threw object "SecurityError: Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame." ("SecurityError") expected instance of function "function TypeError() { [native code] }" ("TypeError") - ¶
FAIL[[PreventExtensions]] should return false cross-origin objects (same-origin + document.domain)
assert_throws_js: preventExtensions on cross-origin Window should throw function "function() { Object.preventExtensions(win) }" threw object "SecurityError: Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame." ("SecurityError") expected instance of function "function TypeError() { [native code] }" ("TypeError") - ¶
FAIL[[PreventExtensions]] should return false cross-origin objects (cross-site)
assert_throws_js: preventExtensions on cross-origin Window should throw function "function() { Object.preventExtensions(win) }" threw object "SecurityError: Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame." ("SecurityError") expected instance of function "function TypeError() { [native code] }" ("TypeError") - ¶
FAILCan only enumerate safelisted enumerable properties (cross-origin)
assert_equals: Enumerate all enumerable safelisted cross-origin Window properties expected 2 but got 0
- ¶
FAILCan only enumerate safelisted enumerable properties (same-origin + document.domain)
assert_equals: Enumerate all enumerable safelisted cross-origin Window properties expected 2 but got 0
- ¶
FAILCan only enumerate safelisted enumerable properties (cross-site)
assert_equals: Enumerate all enumerable safelisted cross-origin Window properties expected 2 but got 0
81 passing subtests
- Basic sanity-checking (cross-origin)
- Basic sanity-checking (same-origin + document.domain)
- Basic sanity-checking (cross-site)
- Only certain properties are accessible cross-origin (cross-origin)
- Only certain properties are accessible cross-origin (same-origin + document.domain)
- Only certain properties are accessible cross-origin (cross-site)
- Only certain properties are usable as cross-origin this objects (cross-origin)
- Only certain properties are usable as cross-origin this objects (same-origin + document.domain)
- Only certain properties are usable as cross-origin this objects (cross-site)
- [[GetPrototypeOf]] should return null (cross-origin)
- [[GetPrototypeOf]] should return null (same-origin + document.domain)
- [[GetPrototypeOf]] should return null (cross-site)
- [[IsExtensible]] should return true for cross-origin objects (cross-origin)
- [[IsExtensible]] should return true for cross-origin objects (same-origin + document.domain)
- [[IsExtensible]] should return true for cross-origin objects (cross-site)
- [[GetOwnProperty]] - Properties on cross-origin objects should be reported |own| (cross-origin)
- [[GetOwnProperty]] - Properties on cross-origin objects should be reported |own| (same-origin + document.domain)
- [[GetOwnProperty]] - Properties on cross-origin objects should be reported |own| (cross-site)
- [[GetOwnProperty]] - Property descriptors for cross-origin properties should be set up correctly (cross-origin)
- [[GetOwnProperty]] - Property descriptors for cross-origin properties should be set up correctly (same-origin + document.domain)
- [[GetOwnProperty]] - Property descriptors for cross-origin properties should be set up correctly (cross-site)
- [[GetOwnProperty]] - Subframe named 'then' should shadow the default 'then' value (cross-origin)
- [[GetOwnProperty]] - Subframe named 'then' should shadow the default 'then' value (same-origin + document.domain)
- [[GetOwnProperty]] - Subframe named 'then' should shadow the default 'then' value (cross-site)
- [[GetOwnProperty]] - Subframes should be visible cross-origin only if their names don't match the names of cross-origin-exposed IDL properties (cross-origin)
- [[GetOwnProperty]] - Subframes should be visible cross-origin only if their names don't match the names of cross-origin-exposed IDL properties (same-origin + document.domain)
- [[GetOwnProperty]] - Subframes should be visible cross-origin only if their names don't match the names of cross-origin-exposed IDL properties (cross-site)
- [[GetOwnProperty]] - Should be able to get a property descriptor for an indexed property only if it corresponds to a child window. (cross-origin)
- [[GetOwnProperty]] - Should be able to get a property descriptor for an indexed property only if it corresponds to a child window. (same-origin + document.domain)
- [[GetOwnProperty]] - Should be able to get a property descriptor for an indexed property only if it corresponds to a child window. (cross-site)
- [[Delete]] Should throw on cross-origin objects (cross-origin)
- [[Delete]] Should throw on cross-origin objects (same-origin + document.domain)
- [[Delete]] Should throw on cross-origin objects (cross-site)
- [[DefineOwnProperty]] Should throw for cross-origin objects (cross-origin)
- [[DefineOwnProperty]] Should throw for cross-origin objects (same-origin + document.domain)
- [[DefineOwnProperty]] Should throw for cross-origin objects (cross-site)
- [[OwnPropertyKeys]] should return all properties from cross-origin objects (cross-origin)
- [[OwnPropertyKeys]] should return all properties from cross-origin objects (same-origin + document.domain)
- [[OwnPropertyKeys]] should return all properties from cross-origin objects (cross-site)
- [[OwnPropertyKeys]] should return the right symbol-named properties for cross-origin objects (cross-origin)
- [[OwnPropertyKeys]] should return the right symbol-named properties for cross-origin objects (same-origin + document.domain)
- [[OwnPropertyKeys]] should return the right symbol-named properties for cross-origin objects (cross-site)
- [[OwnPropertyKeys]] should place the symbols after the property names after the subframe indices (cross-origin)
- [[OwnPropertyKeys]] should place the symbols after the property names after the subframe indices (same-origin + document.domain)
- [[OwnPropertyKeys]] should place the symbols after the property names after the subframe indices (cross-site)
- [[OwnPropertyKeys]] should not reorder where 'then' appears if it's a named subframe, nor add another copy of 'then' (cross-origin)
- [[OwnPropertyKeys]] should not reorder where 'then' appears if it's a named subframe, nor add another copy of 'then' (same-origin + document.domain)
- [[OwnPropertyKeys]] should not reorder where 'then' appears if it's a named subframe, nor add another copy of 'then' (cross-site)
- A and B jointly observe the same identity for cross-origin Window and Location (cross-origin)
- A and B jointly observe the same identity for cross-origin Window and Location (same-origin + document.domain)
- A and B jointly observe the same identity for cross-origin Window and Location (cross-site)
- Cross-origin functions get local Function.prototype (cross-origin)
- Cross-origin functions get local Function.prototype (same-origin + document.domain)
- Cross-origin functions get local Function.prototype (cross-site)
- Cross-origin Window accessors get local Function.prototype (cross-origin)
- Cross-origin Window accessors get local Function.prototype (same-origin + document.domain)
- Cross-origin Window accessors get local Function.prototype (cross-site)
- Same-origin observers get different functions for cross-origin objects (cross-origin)
- Same-origin observers get different functions for cross-origin objects (same-origin + document.domain)
- Same-origin observers get different functions for cross-origin objects (cross-site)
- Same-origin observers get different accessors for cross-origin Window (cross-origin)
- Same-origin observers get different accessors for cross-origin Window (same-origin + document.domain)
- Same-origin observers get different accessors for cross-origin Window (cross-site)
- Same-origin observers get different accessors for cross-origin Location (cross-origin)
- Same-origin observers get different accessors for cross-origin Location (same-origin + document.domain)
- Same-origin observers get different accessors for cross-origin Location (cross-site)
- {}.toString.call() does the right thing on cross-origin objects (cross-origin)
- {}.toString.call() does the right thing on cross-origin objects (same-origin + document.domain)
- {}.toString.call() does the right thing on cross-origin objects (cross-site)
- Resolving a promise with a cross-origin window without a 'then' subframe should work (cross-origin)
- Resolving a promise with a cross-origin window without a 'then' subframe should work (same-origin + document.domain)
- Resolving a promise with a cross-origin window without a 'then' subframe should work (cross-site)
- Resolving a promise with a cross-origin window with a 'then' subframe should work (cross-origin)
- Resolving a promise with a cross-origin window with a 'then' subframe should work (same-origin + document.domain)
- Resolving a promise with a cross-origin window with a 'then' subframe should work (cross-site)
- Resolving a promise with a cross-origin location should work (cross-origin)
- Resolving a promise with a cross-origin location should work (same-origin + document.domain)
- Resolving a promise with a cross-origin location should work (cross-site)
- LegacyLenientThis behavior (cross-origin)
- LegacyLenientThis behavior (same-origin + document.domain)
- LegacyLenientThis behavior (cross-site)
location-properties-smoke-test.window.js 12 / 12 passingChrome 12 / 120 failedClean
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?assign OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'assign' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?customproperty OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'customproperty' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?hash OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'hash' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?host OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'host' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?hostname OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'hostname' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?pathname OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'pathname' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?port OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'port' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?protocol OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'protocol' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?reload OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'reload' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?search OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'search' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?toString OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'toString' is restricted
/html/browsers/origin/cross-origin-objects/location-properties-smoke-test.window.html?valueOf OK 1 / 1
1 passing subtest
- Verifying that cross-origin access of 'valueOf' is restricted
window-location-and-location-href-cross-realm-set.html 9 / 11 passingChrome 9 / 112 failedWith failures
- ¶
FAILCross-origin window.location setter throws TypeError in lexical realm on invalid |this| value
assert_throws_js: function "() => { Object.create(crossOriginWindow).location = URL_VALID; }" did not throw - ¶
FAILCross-origin location.href setter throws TypeError in lexical realm on invalid |this| value
assert_throws_js: function "() => { Object.create(crossOriginWindow.location).href = URL_VALID; }" did not throw
9 passing subtests
- Same-origin window.location getter throws TypeError in holder's realm on invalid |this| value
- Same-origin location.href getter throws TypeError in holder's realm on invalid |this| value
- Cross-origin location.href getter throws SecurityError in lexical realm
- Same-origin window.location setter throws TypeError in holder's realm on invalid |this| value
- Same-origin location.href setter throws TypeError in holder's realm on invalid |this| value
- Same-origin window.location` setter throws TypeError in holder's realm on non-coercible URL argument
- Same-origin location.href setter throws TypeError in holder's realm on non-coercible URL argument
- Cross-origin window.location setter throws TypeError in lexical realm on non-coercible URL argument
- Cross-origin location.href setter throws TypeError in lexical realm on non-coercible URL argument