Bug 1163866 - Set originalURI correctly for moz-page-thumb:// channels. r=adw
This commit is contained in:
@@ -79,7 +79,9 @@ Protocol.prototype = {
|
||||
let {url} = parseURI(aURI);
|
||||
let file = PageThumbsStorage.getFilePathForURL(url);
|
||||
let fileuri = Services.io.newFileURI(new FileUtils.File(file));
|
||||
return Services.io.newChannelFromURIWithLoadInfo(fileuri, aLoadInfo);
|
||||
let channel = Services.io.newChannelFromURIWithLoadInfo(fileuri, aLoadInfo);
|
||||
channel.originalURI = aURI;
|
||||
return channel;
|
||||
},
|
||||
|
||||
newChannel: function Proto_newChannel(aURI) {
|
||||
|
||||
Reference in New Issue
Block a user