diff --git a/common/content/util.js b/common/content/util.js index 65420f9b..c2638cda 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -689,13 +689,15 @@ const Util = Module("util", { urls = [str]; return urls.map(function (url) { - try { - // Try to find a matching file. - let file = io.File(url); - if (file.exists() && file.isReadable()) - return services.get("io").newFileURI(file).spec; + if (url.substr(0, 5) != "file:") { + try { + // Try to find a matching file. + let file = io.File(url); + if (file.exists() && file.isReadable()) + return services.get("io").newFileURI(file).spec; + } + catch (e) {} } - catch (e) {} // strip each 'URL' - makes things simpler later on url = url.replace(/^\s+|\s+$/, "");