1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:27:58 +01:00

Switch back to the fixup service for sourcing files.

This commit is contained in:
Kris Maglione
2008-10-11 19:19:43 +00:00
parent e5b21557c6
commit bad771cddc
3 changed files with 11 additions and 3 deletions

View File

@@ -107,6 +107,13 @@ liberator.util = { //{{{
liberator.echo("Yanked " + str, liberator.commandline.FORCE_SINGLELINE);
},
createURI: function (str)
{
const fixup = Components.classes["@mozilla.org/docshell/urifixup;1"]
.getService(Components.interfaces.nsIURIFixup);
return fixup.createFixupURI(str, fixup.FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP);
},
escapeHTML: function (str)
{
// XXX: the following code is _much_ slower than a simple .replace()