1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 00:55:48 +01:00

Don't use window.makeURI in bookmarks.js.

This commit is contained in:
Kris Maglione
2011-01-07 17:36:53 -05:00
parent a0c1089e08
commit 9e8e370f34

View File

@@ -311,7 +311,7 @@ var Bookmarks = Module("bookmarks", {
[, shortcutURL, charset] = matches;
else {
try {
charset = services.history.getCharsetForURI(window.makeURI(shortcutURL));
charset = services.history.getCharsetForURI(util.newURI(shortcutURL));
}
catch (e) {}
}
@@ -620,7 +620,7 @@ var Bookmarks = Module("bookmarks", {
context.generate = function () {
let [begin, end] = item.url.split("%s");
return history.get({ uri: window.makeURI(begin), uriIsPrefix: true }).map(function (item) {
return history.get({ uri: util.newURI(begin), uriIsPrefix: true }).map(function (item) {
let rest = item.url.length - end.length;
let query = item.url.substring(begin.length, rest);
if (item.url.substr(rest) == end && query.indexOf("&") == -1)