Bug 918004 - B2G: Can't see remote stylesheets in Style Editor. r=ehsan

This commit is contained in:
Paul Rouget 2013-09-24 09:24:36 -04:00
parent 0c173f0822
commit 543dcbf937

View File

@ -622,13 +622,10 @@ StyleSheetActor.prototype = {
}
};
if (channel instanceof Ci.nsIPrivateBrowsingChannel) {
let loadContext = this.window
.QueryInterface(Ci.nsIInterfaceRequestor)
channel.loadGroup = this.window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsILoadContext);
channel.setPrivate(loadContext.usePrivateBrowsing);
}
.QueryInterface(Ci.nsIDocumentLoader)
.loadGroup;
channel.loadFlags = channel.LOAD_FROM_CACHE;
channel.asyncOpen(streamListener, null);
},