New test for CORB vs *declarative* content scripts.
This CL makes sure that tests for cross-origin fetches from content scripts cover both 1) programmatic content scripts (i.e. ones triggered by chrome.tabs.executeScript) and 2) declarative content scripts (i.e. ones listed under "content_scripts" entry in an extension manifest). The extra test coverage is desirable to ensure that the future work to provide a separate URLLoaderFactory for content scripts gives correct results both for programmatic and declarative content scripts. For example - providing the URLLoaderFactory in ExtensionMsg_ExecuteCode would be wrong because it would not cover declarative content scripts. Bug: 846346 Change-Id: Ibe3f32fd69d502e0a0874fde7636629e5b6693fa Reviewed-on: https://chromium-review.googlesource.com/1208816Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#589212}
Showing
Please register or sign in to comment