Bug 1171651 - Disable the interception of app:// URIs in service workers on release builds. r=baku

This commit is contained in:
Fernando Jimenez 2015-07-03 18:41:01 +02:00
parent 8405b45930
commit 691c7a6873
2 changed files with 5 additions and 0 deletions

View File

@ -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]

View File

@ -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();
}