From c62bdbfd6620df0513f90528fc8a2d099617d61f Mon Sep 17 00:00:00 2001 From: Valentin Gosu Date: Wed, 25 Nov 2015 12:44:43 +0100 Subject: [PATCH] Bug 1226760 - ViewSource doesn't work for packaged app resources r=mcmanus * The packaged app service should use the URI of the channel, not the URI of the channel's principal. --- netwerk/protocol/http/PackagedAppService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/protocol/http/PackagedAppService.cpp b/netwerk/protocol/http/PackagedAppService.cpp index b184eed1ca9c..acf8ff40aeb7 100644 --- a/netwerk/protocol/http/PackagedAppService.cpp +++ b/netwerk/protocol/http/PackagedAppService.cpp @@ -1129,7 +1129,7 @@ PackagedAppService::GetResource(nsIChannel *aChannel, nsCOMPtr loadInfo = aChannel->GetLoadInfo(); nsCOMPtr uri; - rv = principal->GetURI(getter_AddRefs(uri)); + rv = aChannel->GetURI(getter_AddRefs(uri)); if (NS_WARN_IF(NS_FAILED(rv))) { LOG(("[%p] > Error calling GetURI rv=%X\n", this, rv)); return rv;