Cover about:blank and about:srcdoc frames in CORB Extension Test.
This CL expands the following 2 test cases from the CrossOriginReadBlockingExtensionTest test suite: 1) FromForegroundPage_NoSniffXml This CL adds coverage of a fetch performed from an about:srcdoc frame that belongs to an extension origin. 2) FromDeclarativeContentScript_NoSniffXml This CL adds coverage of a fetch performed from a content script injected into an about:blank page. In both cases above, the fetch is performed before the browser commits the frame. The new tests help ensure that in this scenario the extension scripts are still subject to relaxed CORB rules - because of the timing the relaxed CORB rules do not depend on URLLoaderFactoryManager::ReadyToCommitNavigation, but rather on having the renderer inherit the right URLLoaderFactory for the subframe. Bug: 846346 Change-Id: I45a4eba6d1351f2bf722f31fbcb7f201cd990d34 Reviewed-on: https://chromium-review.googlesource.com/c/1259291 Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#596711}
Showing
Please register or sign in to comment