You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2020. It is now read-only.
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!)