[M126-LTS][Extensions][ServiceWorker] Skip worker for isolated world module fetch
Before this change, an isolated world (e.g. extension content script, but also others) could dynamically import a script from an accessible resource (for extensions this is possible with web accessible resources and a matching site). When this occurs a web service worker could intercept that request and respond with arbitrary content. After this change, isolated world module requests skip triggering the worker fetch handler. This includes extension content scripts, but also includes any other scripts that execute in the isolated world context. (cherry picked from commit 2c501634) Bug: 371011220 Change-Id: I37eda47324b6933a93d2a44792a06ff91399981f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5917013 Auto-Submit: Justin Lulejian <jlulejian@chromium.org> Commit-Queue: Justin Lulejian <jlulejian@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1365918} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5962436 Commit-Queue: Dan Clark <daniec@microsoft.com> Auto-Submit: Roger Felipe Zanoni da Silva (xWF) <rzanoni@google.com> Reviewed-by:Dan Clark <daniec@microsoft.com> Reviewed-by:
Justin Lulejian <jlulejian@chromium.org> Reviewed-by:
Mohamed Omar <mohamedaomar@google.com> Owners-Override: Mohamed Omar <mohamedaomar@google.com> Cr-Commit-Position: refs/branch-heads/6478@{#1991} Cr-Branched-From: e6143acc-refs/heads/main@{#1300313}
Please register or sign in to comment