1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-01 18:10:17 +12:00

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.
This commit is contained in:
Deathamns 2015-01-27 13:31:17 +01:00 committed by gorhill
parent a61e73d212
commit 97ae38c584

View file

@ -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({