mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 20:34:01 +00:00
Fix to use the resource url as the original url if an original wasn't supplied.
This commit is contained in:
parent
f9858d1ee6
commit
c71b5e670b
@ -310,7 +310,7 @@ nsResourceProtocolHandler::NewChannel(const char* verb, nsIURI* uri,
|
||||
|
||||
nsIChannel* channel;
|
||||
rv = serv->NewChannel(verb, filePath, uri, aLoadGroup, notificationCallbacks,
|
||||
loadAttributes, originalURI, &channel);
|
||||
loadAttributes, originalURI ? originalURI : uri, &channel);
|
||||
nsCRT::free(filePath);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user