diff --git a/content/io.js b/content/io.js index 91f9424f..3db6db1d 100644 --- a/content/io.js +++ b/content/io.js @@ -758,7 +758,8 @@ lookup: } liberator.echomsg("sourcing \"" + filename + "\"", 2); - let uri = PlacesUIUtils.createFixedURI(file.path).spec + + let str = ioManager.readFile(file); // handle pure javascript files specially if (/\.js$/.test(filename)) @@ -767,7 +768,7 @@ lookup: .getService(Components.interfaces.mozIJSSubScriptLoader); try { - loader.loadSubScript(uri, liberator) + loader.loadSubScript("file://" + file.path, liberator) } catch (e) { @@ -777,11 +778,10 @@ lookup: } else if (/\.css$/.test(filename)) { - liberator.storage.styles.registerSheet(uri, !silent, true); + liberator.storage.styles.registerSheet("file://" + file.path, !silent, true); } else { - let str = ioManager.readFile(file); let heredoc = ""; let heredocEnd = null; // the string which ends the heredoc let lines = str.split("\n"); diff --git a/content/muttator.xul b/content/muttator.xul index 2e4f8759..a2cf031d 100644 --- a/content/muttator.xul +++ b/content/muttator.xul @@ -28,7 +28,7 @@ the provisions above, a recipient may use your version of this file under the terms of any one of the MPL, the GPL or the LGPL. }}} ***** END LICENSE BLOCK ***** --> - +