Closed weizman closed 5 months ago
@weizman really cool idea here!
Akamai has a few products that could use something like this:
If there was support for something like this added to the browser I'm sure we'd consider using it to harden our existing "patching" techniques.
As a former PerimeterX employee, I relate to literally 100% of what you wrote š Let's do it @nicjansma! Could you please add this to the "usecases" issue on the explainer repo? After having some, I'll introduce all into the md document of the official explainer, could be really helpful šš»
With my Shopify hat on, we are supportive of this effort and could make use of something of this nature in our various code sandboxes.
Switching hats to my (virtual) WICG co-chair one, this seems enough support for us to move the repo to the WICG org. Let's discuss details offline.
Awesome news @yoavweiss!
The repo now lives at https://github.com/WICG/Realms-Initialization-Control Happy incubating!!
Introduction
The proposal for Realms Initialization Control (referred to as RIC) allows developers to securely tap into the creation moment of same origin realms within their web application in order to tame and control them.
Motivation
iframe
s,tab
s, etc) within its execution environment.Goals
about:blank
.The browser is already capable of enforcing rules on new realms before they become reachable, and it is where the same origin concern should also be addressed.
Proposal
Initialization of same origin realms in an application should be under that application's control.
This proposal describes an opt-in capability to set a script to be loaded first, everytime a same origin realm with synchronous access to the main execution environment of the application is created.
The location of the script can be relative or absolute. Secure connection is required. The proposed method for setting the script is a Content Security Policy directive as follows:
Resources
Explainer
Read the complete Explainer.
Feedback
I welcome feedback in this thread, but encourage you to file bugs against the Explainer.