tabs.executeScript should reject with error when injecting code into built-in pages (about:debugging)
Categories
(WebExtensions :: General, defect, P3)
Tracking
(firefox-esr68 affected, firefox76 wontfix, firefox77 wontfix, firefox78 wontfix, firefox79 fix-optional)
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | affected |
firefox76 | --- | wontfix |
firefox77 | --- | wontfix |
firefox78 | --- | wontfix |
firefox79 | --- | fix-optional |
People
(Reporter: ariel.hazard, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
759 bytes,
application/x-zip-compressed
|
Details |
When using executeScript() to inject code into one of the Firefox's built-in pages (about:addons, about:config) the Promise should be rejected with an error like in the older versions.
Steps to reproduce:
- Unzip attached file and load temporary add-on into Firefox version 76.0.
- Open the extension's debug console ('Inspect').
- Click the 'webext-test' action button while the active tab is still the 'about:debugging'.
Actual results:
The Promise returned from executeScript() is resolved with undefined script result.
Expected results:
The Promise should be rejected with an error about permissions like in previous Firefox versions.
Firefox v59.0.3 is returning the error 'Missing host permission for the tab'.
Comment 1•4 years ago
|
||
Hi aRIEL,
Thank you for submitting this bug report. I was able to reproduce the issue on Windows 10 64-bit and macOS 10.14 with the latest Nightly (78.0a1/20200521093657), Beta (77.0b9/20200521224544) and Release (76.0.1/20200507114007).
Also tested the 59.0.3 Firefox Quantum version (59.0.3/20180427210249) and indeed, the issue does not occur there.
From these, I managed to get a regression range on the issue, narrowing it down to https://bugzilla.mozilla.org/show_bug.cgi?id=1622104 (2020-05-22T14:50:11.023000: DEBUG : Found commit message: Bug 1622104 prevent addon content script compilation in parent process r=zombie), with this differential revision: https://phabricator.services.mozilla.com/D66672.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•