From 97ae38c584be362ba2609f8e70ac4a25ff3e16a2 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Tue, 27 Jan 2015 13:31:17 +0100 Subject: [PATCH] Firefox: remove evalInSandbox Probably we won't eval plain text code, which makes it unnecessary, also this way the validator on AMO won't complain about it. --- platform/firefox/vapi-background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 3920757..9fec753 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -610,11 +610,11 @@ vAPI.tabs.injectScript = function(tabId, details, callback) { return; } - if ( details.file ) { - details.file = vAPI.getURL(details.file); + if ( typeof details.file !== 'string' ) { + return; } - + details.file = vAPI.getURL(details.file); tab.linkedBrowser.messageManager.sendAsyncMessage( location.host + ':broadcast', JSON.stringify({