From 632c846ae0747c280daaaf6f7fc7bb39e0f94a56 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 12 Jul 2012 13:11:58 +0100 Subject: [PATCH] Check for being on a file URI before trying to use Firefox's XUL file saving --- core/modules/savers/firefox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/savers/firefox.js b/core/modules/savers/firefox.js index f4b401faa..d43c3e680 100644 --- a/core/modules/savers/firefox.js +++ b/core/modules/savers/firefox.js @@ -53,7 +53,7 @@ FirefoxSaver.prototype.info = { Static method that returns true if this saver is capable of working */ exports.canSave = function() { - return !!window.Components; + return window.location.protocol === "file:" && !!window.Components; }; /*