Bug 1163866 - Set originalURI correctly for moz-page-thumb:// channels. r=adw

This commit is contained in:
Seth Fowler
2015-05-12 18:45:49 -07:00
parent 09c42d43c4
commit 375f6d817b

View File

@@ -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) {