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
The logic for deferred fetching (the `fetchLater` function), as
defined in the fetch spec, specifies a "quota" which is shared
with between a document and its direct same-origin descendants.
For this logic to work in a secure way, the quota needs to be:
- reserved when a frame-initiated navigation starts. This way,
the container document can only reserve quota based on URLs
it knows it navigates to.
- freed if the document ends up being same origin with its
container, upon document creation.
This ensures quota is handled correctly in the case of
redirects.
This PR adds those two calls:
- Call "reserve" on navigation, based on `sourceDocument`.
- Call "potentially free" on document creation.
Builds on whatwg/fetch#1647, where
the quota logic itself is defined.
0 commit comments