Open Bug 1639529 Opened 4 years ago Updated 3 months ago

tabs.executeScript should reject with error when injecting code into built-in pages (about:debugging)

Categories

(WebExtensions :: General, defect, P3)

76 Branch
Desktop
Windows
defect

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
Attached file webext-test.zip

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:

  1. Unzip attached file and load temporary add-on into Firefox version 76.0.
  2. Open the extension's debug console ('Inspect').
  3. 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'.

Summary: tabs.executeScript should rejected with error when injecting code into built-in pages (about:debugging) → tabs.executeScript should reject with error when injecting code into built-in pages (about:debugging)

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.

Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=f6bb224e706a8b4064607d23ff7d44b024ab29e0&tochange=63cc64fbbace98d56bd114931aed7ac0bc576617

Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Ever confirmed: true
Severity: -- → S3
Priority: -- → P3
Regressed by: 1622104
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: