This repository was archived by the owner on Dec 12, 2020. It is now read-only.
This repository was archived by the owner on Dec 12, 2020. It is now read-only.
Expose isolation state to the page? #24
Closed
Description
Now that we're no longer based on origin policy, a page can't tell whether isolation succeeded by using self.originPolicyIds
. They have to instead check for side effects, e.g. whether setting document.domain
succeeds or whether sending a WebAssembly.Module
works.
Should we expose an indicator on the page, e.g. a self.originIsolated
boolean, to make this easier?
The main use case here would be to let pages track when origin isolation fails, and send this back to the server as telemetry. Examples of how such failures could occur:
- If you messed up your header syntax.
- If you configure your server in a way that does not uniformly send
Origin-Isolation
headers for all pages on the origin, then loading a page without the header will prevent future loads in that browsing context group from gaining isolation.
Both of these failures should trigger console warnings, but that doesn't help with the telemetry use case.
Perhaps an alternate approach to the problem would be to add reporting API support, hmm. (Or we could do both!)
Metadata
Metadata
Assignees
Labels
No labels