Bug 1591892 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

In order to make it easier for developers to figure out if `postMessage()` will throw, we should expose that information through `self.crossOriginIsolated`, as defined by https://github.com/whatwg/html/pull/4734.

I'll work on adding some tests.
In order to make it easier for developers to figure out if `postMessage()` will throw, we should expose that information through `self.crossOriginIsolated`, as defined by https://github.com/whatwg/html/pull/4734.

I'll work on adding some tests.

I think we should have this when COOP and COEP are enabled and it should only return true if dom.postMessage.sharedArrayBuffer.withCOOP_COEP is also enabled and the COOP and COEP headers are set appropriately.

Back to Bug 1591892 Comment 0