Skip to content

Commit ba72eae

Browse files
authored
Explicitly note recommendations for local-scheme frames.
Closes w3c#2.
1 parent 466a189 commit ba72eae

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

index.bs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,19 @@ whose projects require risky settings.
581581
This document recommends setting those less-secure header values explicitly, as that makes it more
582582
likely that we'll be able to shift the web's defaults in the future.
583583

584+
Isolating Local-Scheme Frames {#local-scheme-frames}
585+
----------------------------------------------------
586+
587+
Note that frames loaded from local schemes will generally inherit policies applied to the document
588+
which created them, and may end up in-process with that document if the stars align unfortunately.
589+
Developers are encouraged to explicitly shift these documents to opaque origins, either by using
590+
`data:` URLs directly, or by applying a <{iframe/sandbox}> attribute to frames created using
591+
`<iframe srcdoc="...">`. `blob:` URLs, and so on.
592+
593+
Likewise, user agents are encouraged to take <{iframe/sandbox}> attributes into account when
594+
allocating processes for framed documents, and to align the process boundary with the origin
595+
boundary whenever possible.
596+
584597

585598
Acknowledgements {#acks}
586599
========================

0 commit comments

Comments
 (0)