Bug 1175944 - Packaged app's (app://) JS files are not loaded and do not trigger "onfetch" handler. r=jdm
authorFernando Jimenez <ferjmoreno@gmail.com>
Fri, 03 Jul 2015 18:41:01 +0200
changeset 251330 09e9d33f1186714f1328e439a156be4cc49d0951
parent 251329 eb0d49600bd43bce20c7432b36936a58dd3ed5a7
child 251331 be765d7ba0ef7bbb12f99f099ff318040eafd7fc
push id61828
push userferjmoreno@gmail.com
push dateFri, 03 Jul 2015 16:41:14 +0000
treeherdermozilla-inbound@09e9d33f1186 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdm
bugs1175944
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1175944 - Packaged app's (app://) JS files are not loaded and do not trigger "onfetch" handler. r=jdm
modules/libjar/nsJARChannel.cpp
--- a/modules/libjar/nsJARChannel.cpp
+++ b/modules/libjar/nsJARChannel.cpp
@@ -915,16 +915,18 @@ nsJARChannel::OverrideWithSynthesizedRes
                                    int64_t(-1), int64_t(-1), 0, 0, true);
     if (NS_WARN_IF(NS_FAILED(rv))) {
       aSynthesizedInput->Close();
       return;
     }
 
     SetContentType(aContentType);
 
+    mIsUnsafe = false;
+
     FinishAsyncOpen();
 
     rv = mSynthesizedResponsePump->AsyncRead(this, nullptr);
     NS_ENSURE_SUCCESS_VOID(rv);
 }
 
 NS_IMETHODIMP
 nsJARChannel::AsyncOpen(nsIStreamListener *listener, nsISupports *ctx)