Bug 1214305 - Part 5: Use the secure upgraded channel URI in FetchEventRunnable::Init; r=jdm

This ensures that FetchEvent.request.url will have the correct value
for secure upgraded channels.
This commit is contained in:
Ehsan Akhgari 2015-11-02 11:27:00 -05:00
parent 032766d5b4
commit e5eb4f0db6

View File

@ -974,7 +974,7 @@ public:
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIURI> uri;
rv = channel->GetURI(getter_AddRefs(uri));
rv = mInterceptedChannel->GetSecureUpgradedChannelURI(getter_AddRefs(uri));
NS_ENSURE_SUCCESS(rv, rv);
rv = uri->GetSpec(mSpec);