"insertCSS" fails if used in tabs.onUpdated listener

RESOLVED INVALID

Status

()

Toolkit
WebExtensions: General
RESOLVED INVALID
7 months ago
7 months ago

People

(Reporter: Manuel Reimer, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 months ago
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
Last Resolved: 7 months ago
Resolution: --- → INVALID
(Reporter)

Comment 2

7 months ago
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?
You need to log in before you can comment on or make changes to this bug.