mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1171651 - Disable the interception of app:// URIs in service workers on release builds. r=baku
This commit is contained in:
parent
8405b45930
commit
691c7a6873
@ -148,6 +148,7 @@ support-files =
|
||||
notify_loaded.js
|
||||
|
||||
[test_app_protocol.html]
|
||||
skip-if = !debug
|
||||
[test_bug1151916.html]
|
||||
[test_claim.html]
|
||||
[test_claim_fetch.html]
|
||||
|
@ -945,6 +945,9 @@ nsJARChannel::AsyncOpen(nsIStreamListener *listener, nsISupports *ctx)
|
||||
mListenerContext = ctx;
|
||||
mIsPending = true;
|
||||
|
||||
// Bug 1171651 - Disable the interception of app:// URIs in service workers
|
||||
// on release builds
|
||||
#ifndef RELEASE_BUILD
|
||||
// Check if this channel should intercept the network request and prepare
|
||||
// for a possible synthesized response instead.
|
||||
if (ShouldIntercept()) {
|
||||
@ -967,6 +970,7 @@ nsJARChannel::AsyncOpen(nsIStreamListener *listener, nsISupports *ctx)
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
return ContinueAsyncOpen();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user