fix: webRequest module should work with file:// protocol (#22903)
* fix: override file:// instead of intercepting * test: webRequest module should work with file:// * fix: service work with file:// url * fix: original_response_headers can be null * fix: only register file:// when necessary
This commit is contained in:
parent
bac1c7f532
commit
e6f2605ad0
6 changed files with 101 additions and 7 deletions
|
@ -22,7 +22,11 @@ class ProtocolRegistry {
|
|||
|
||||
static ProtocolRegistry* FromBrowserContext(content::BrowserContext*);
|
||||
|
||||
using URLLoaderFactoryType =
|
||||
content::ContentBrowserClient::URLLoaderFactoryType;
|
||||
|
||||
void RegisterURLLoaderFactories(
|
||||
URLLoaderFactoryType type,
|
||||
content::ContentBrowserClient::NonNetworkURLLoaderFactoryMap* factories);
|
||||
|
||||
const HandlersMap& intercept_handlers() const { return intercept_handlers_; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue