Closed Bug 1366539 Opened 7 years ago Closed 7 years ago

"insertCSS" fails if used in tabs.onUpdated listener

Categories

(WebExtensions :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: Manuel.Spam, Unassigned)

Details

If I try to use "insertCSS" from within a "onUpdated" listener, then the call fails.
If I do so, I get the following errors on browser console:

Error: No window matching {"all_frames":true,"matchesHost":[]}

Source is "(unknown)". Maybe some dynamically created javascript?

Idea was to get the CSS to survive browsing in the tab or reloading the page.
This means that you don't have host permissions from the page you're trying to inject into.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Thank you. This did the trick. Is there already a bug which handles "better error messages for WebExtensions", where I can put myself on the CC list?
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.