Commit b0f1e48f authored by Dmitry Rozhkov's avatar Dmitry Rozhkov

[embedhelper] Create correct SHistory entries with nsIIOService

parent a2a93f88
......@@ -369,9 +369,9 @@ EmbedHelper.prototype = {
}
aMessage.data.links.forEach(function(link) {
let uri = Cc["@mozilla.org/network/standard-url;1"].createInstance(Ci.nsIURI);
let ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
let uri = ioService.newURI(link, null, null);
let historyEntry = Cc["@mozilla.org/browser/session-history-entry;1"].createInstance(Ci.nsISHEntry);
uri.spec = link;
historyEntry.setURI(uri);
shist.addEntry(historyEntry, true);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment