зеркало из https://github.com/mozilla/gecko-dev.git
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.
This commit is contained in:
Родитель
aaa346467a
Коммит
c62bdbfd66
|
@ -1129,7 +1129,7 @@ PackagedAppService::GetResource(nsIChannel *aChannel,
|
|||
nsCOMPtr<nsILoadInfo> loadInfo = aChannel->GetLoadInfo();
|
||||
|
||||
nsCOMPtr<nsIURI> 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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче