1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 19:14:12 +01:00

Only explicitly demangle subscript URIs rather than doing it automatically in newURI. Closes issue #185.

This commit is contained in:
Kris Maglione
2011-02-02 09:26:56 -05:00
parent 8507b4f232
commit 5576a5f5e6
6 changed files with 15 additions and 10 deletions

View File

@@ -173,7 +173,7 @@ var IO = Module("io", {
catch (e) {
if (e.fileName)
try {
e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, "");
e.fileName = util.fixURI(e.fileName);
if (e.fileName == uri.spec)
e.fileName = filename;
e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>;
@@ -328,7 +328,7 @@ var IO = Module("io", {
*/
isJarURL: function isJarURL(url) {
try {
let uri = util.newURI(url);
let uri = util.newURI(util.fixURI(url));
let channel = services.io.newChannelFromURI(uri);
channel.cancel(Cr.NS_BINDING_ABORTED);
if (channel instanceof Ci.nsIJARChannel)