Summary

Harness status: OK

Found 8 tests

Details

ResultTest NameMessage
PassCross-origin: the prototype is null
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/browsers/the-windowproxy-exotic-object/windowproxy-prototype-setting-cross-origin.sub.html:21:5)
FailCross-origin: setting the prototype to an empty object via Object.setPrototypeOf should throw a TypeErrorassert_throws_js: function "() => { Object.setPrototypeOf(target, newValue); }" threw object "SecurityError: Blocked a frame with origin "https://wpt.live" from accessing a cross-origin frame." ("SecurityError") expected instance of function "function TypeError() { [native code] }" ("TypeError")
    at Test.<anonymous> (https://wpt.live/common/test-setting-immutable-prototype.js:5:5)
    at Test.step (https://wpt.live/resources/testharness.js:2638:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at self.testSettingImmutablePrototypeToNewValueOnly (https://wpt.live/common/test-setting-immutable-prototype.js:4:3)
Asserts run
Fail
assert_throws_js(function "function TypeError() { [native code] }", function "() => {       Object.setPrototypeOf(target, newValue);     }")
    at Test.<anonymous> ( /common/test-setting-immutable-prototype.js:5:5)
PassCross-origin: setting the prototype to an empty object via __proto__ should throw a "SecurityError" DOMException
Asserts run
Pass
assert_throws_dom("SecurityError", function "function() {       target.__proto__ = newValue;     }")
    at Test.<anonymous> ( /common/test-setting-immutable-prototype.js:26:7)
FailCross-origin: setting the prototype to an empty object via Reflect.setPrototypeOf should return falseBlocked a frame with origin "https://wpt.live" from accessing a cross-origin frame.
Error: Blocked a frame with origin "https://wpt.live" from accessing a cross-origin frame.
    at Reflect.setPrototypeOf (<anonymous>)
    at Test.<anonymous> (https://wpt.live/common/test-setting-immutable-prototype.js:31:26)
    at Test.step (https://wpt.live/resources/testharness.js:2638:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at self.testSettingImmutablePrototypeToNewValueOnly (https://wpt.live/common/test-setting-immutable-prototype.js:30:3)
    at self.testSettingImmutablePrototype (https://wpt.live/common/test-setting-immutable-prototype.js:39:3)
    at window.onload (https://wpt.live/html/browsers/the-windowproxy-exotic-object/windowproxy-prototype-setting-cross-origin.sub.html:24:3)
Asserts runNo asserts ran
PassCross-origin: the prototype must still be null
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /common/test-setting-immutable-prototype.js:44:5)
FailCross-origin: setting the prototype to null via Object.setPrototypeOf should not throwBlocked a frame with origin "https://wpt.live" from accessing a cross-origin frame.
Error: Blocked a frame with origin "https://wpt.live" from accessing a cross-origin frame.
    at Function.setPrototypeOf (<anonymous>)
    at Test.<anonymous> (https://wpt.live/common/test-setting-immutable-prototype.js:48:12)
    at Test.step (https://wpt.live/resources/testharness.js:2638:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at self.testSettingImmutablePrototype (https://wpt.live/common/test-setting-immutable-prototype.js:47:3)
    at window.onload (https://wpt.live/html/browsers/the-windowproxy-exotic-object/windowproxy-prototype-setting-cross-origin.sub.html:24:3)
Asserts runNo asserts ran
PassCross-origin: setting the prototype to null via __proto__ should throw a "SecurityError" since it ends up in CrossOriginGetOwnProperty
Asserts run
Pass
assert_throws_dom("SecurityError", function "function() {         target.__proto__ = newValue;       }")
    at Test.<anonymous> ( /common/test-setting-immutable-prototype.js:57:7)
FailCross-origin: setting the prototype to null via Reflect.setPrototypeOf should return trueBlocked a frame with origin "https://wpt.live" from accessing a cross-origin frame.
Error: Blocked a frame with origin "https://wpt.live" from accessing a cross-origin frame.
    at Reflect.setPrototypeOf (<anonymous>)
    at Test.<anonymous> (https://wpt.live/common/test-setting-immutable-prototype.js:65:25)
    at Test.step (https://wpt.live/resources/testharness.js:2638:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at self.testSettingImmutablePrototype (https://wpt.live/common/test-setting-immutable-prototype.js:64:3)
    at window.onload (https://wpt.live/html/browsers/the-windowproxy-exotic-object/windowproxy-prototype-setting-cross-origin.sub.html:24:3)
Asserts runNo asserts ran