SharedWorker: Use worker URL to compute NetworkIsolationKey.
Previous, when fetching the URL itself, that URL was used to compute the NetworkIsolationKey, but for subresources, the initiator's origin was used to set the NetworkIsolationKey. This was incorrect, and results in SameSite cookies being leaked across NIKs, since they're sent with SameSite fetches make by the shared worker. Since cross-site SharedWorker aren't supported, this only affected SharedWorker created by extensions. Bug: 1067744 Change-Id: I3119b605c7918339a2094eab31dad27c2e1267fe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2138211 Commit-Queue: Matt Menke <mmenke@chromium.org> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#757890}
Showing
Please register or sign in to comment