Skip to content

Commit ff47c28

Browse files
web integration: Add note about cross-origin same-agent functions (#126)
Co-authored-by: Andreu Botella <abotella@igalia.com>
1 parent b67a9ae commit ff47c28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WEB-INTEGRATION.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,12 @@ will be reset such that document load and tasks that directly flow from it
753753
empty AsyncContext snapshot, which will be an empty mapping (i.e. every
754754
`AsyncContext.Variable` will be set to its initial value).
755755

756+
## Cross-origin iframes
757+
758+
Cross-origin API calls do not propagate the context from one origin to the other, as if they were happening in different agents/threads. This is also true for APIs that synchronously run cross-origin code, such as calling `.focus()` on a cross-origin iframe's window: the context is explicitly reset to the top-level one.
759+
760+
See [whatwg/html#3506](https://github.com/whatwg/html/issues/3506) for related discussion about `focus()`'s behavior on cross-origin iframes.
761+
756762
## Module evaluation
757763

758764
When you import a JS module multiple times, it will only be fetched and

0 commit comments

Comments
 (0)