mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 08:27:59 +01:00
s/makeURI/window.makeURI/; s/'/"/
This commit is contained in:
@@ -569,12 +569,9 @@ function Buffer() //{{{
|
|||||||
let file = io.getFile(filename);
|
let file = io.getFile(filename);
|
||||||
|
|
||||||
if (file.exists() && !args.bang)
|
if (file.exists() && !args.bang)
|
||||||
{
|
return void liberator.echoerr("E13: File exists (add ! to override)");
|
||||||
liberator.echoerr("E13: File exists (add ! to override)");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
chosenData = { file: file, uri: makeURI(doc.location.href, doc.characterSet) };
|
chosenData = { file: file, uri: window.makeURI(doc.location.href, doc.characterSet) };
|
||||||
}
|
}
|
||||||
|
|
||||||
// if browser.download.useDownloadDir = false then the "Save As"
|
// if browser.download.useDownloadDir = false then the "Save As"
|
||||||
|
|||||||
@@ -62,7 +62,12 @@ function Bookmarks() //{{{
|
|||||||
const faviconService = Cc["@mozilla.org/browser/favicon-service;1"].getService(Ci.nsIFaviconService);
|
const faviconService = Cc["@mozilla.org/browser/favicon-service;1"].getService(Ci.nsIFaviconService);
|
||||||
|
|
||||||
// XXX for strange firefox bug :(
|
// XXX for strange firefox bug :(
|
||||||
taggingService.getTagsForURI(makeURI('http://mysterious.bug'), {});
|
// Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIObserverService.addObserver]"
|
||||||
|
// nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"
|
||||||
|
// location: "JS frame :: file://~firefox/components/nsTaggingService.js :: anonymous :: line 89"
|
||||||
|
// data: no]
|
||||||
|
// Source file: file://~firefox/components/nsTaggingService.js
|
||||||
|
taggingService.getTagsForURI(window.makeURI("http://mysterious.bug"), {});
|
||||||
|
|
||||||
const Bookmark = new Struct("url", "title", "icon", "keyword", "tags", "id");
|
const Bookmark = new Struct("url", "title", "icon", "keyword", "tags", "id");
|
||||||
const Keyword = new Struct("keyword", "title", "icon", "url");
|
const Keyword = new Struct("keyword", "title", "icon", "url");
|
||||||
|
|||||||
Reference in New Issue
Block a user