Closed Bug 1751962 Opened 3 years ago Closed 3 years ago

scripting.executeScript should not execute in all frames by default

Categories

(WebExtensions :: General, defect, P2)

defect

Tracking

(firefox-esr91 unaffected, firefox96 unaffected, firefox97 unaffected, firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox96 --- unaffected
firefox97 --- unaffected
firefox98 --- fixed

People

(Reporter: robwu, Assigned: willdurand)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [addons-jira])

Attachments

(1 file)

Assignee: nobody → wdurand
Status: NEW → ASSIGNED
Whiteboard: [addons-jira]

The script does not actually run in all frames because the implementation requires frameId to be set, allFrames true, or only injects in the top frame: https://searchfox.org/mozilla-central/rev/7fb9750a14e99267a77328559c2fd022e360d99b/toolkit/components/extensions/WebExtensionPolicy.cpp#696-705.

I attached a patch to fix the logic issue in parent/ext-scripting.js anyway and added test coverage.

Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0bca754139d7 `scripting.executeScript()` should not execute in all frames by default. r=robwu
Severity: -- → N/A
Priority: -- → P2

Set release status flags based on info from the regressing bug 1736574

Has Regression Range: --- → yes
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: