I’m developing an extension background script that listens for changes to a particular url open in a tab.
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
console.log("Title detected as " + tab.title + " changeInfo.status = " + changeInfo.status);
if(tab.active) {
console.log("Tab is active!");
...
The problem I’m having is that most of the time, the following error is thrown in the debugger console and none of the output logged above shows up:
https://<<site_URL>> : Unable to run script because scripts are blocked internally. (unknown)
Although, the rest of the time when the tab is updated (ex. title changed) it works perfectly. I have these permissions in my manifest.json:
"permissions": [
"tabs",
"activeTab",
"webNavigation",
"<<site_URL_in_error_above>>/*",
],
The error message is not descriptive at all as to what the actual problem is, and I’ve been hard pressed to find any more information. Is there anywhere else I can look to get more details on this error? Or anyone have any ideas as to what I might be missing?
EDIT: I’m using Firefox ESR 52.5.2 (64-bit)