firefox addon tabs.executeScript error on specific pages No window matching {“matchesHost”:[“<all_urls>”]}
问题 I have a firefox webextension ported from chrome extension. The executeScript call fails on this site. https://addons.mozilla.org/en-US/firefox/ I tested with multiple pages on this site and all are giving the same error The bare-minimum code to reproduce this is popup.js document.addEventListener("DOMContentLoaded", function () { chrome.tabs.query({"active": true}, function(tabs) { chrome.tabs.executeScript(tabs[0].id, {"code": "console.log('Script executed in ' + document.location.href);"},