Closed Bug 1740601 Opened 4 years ago Closed 4 years ago

Initial implementation of `scripting.executeScript()`

Categories

(WebExtensions :: General, enhancement, P2)

enhancement

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: willdurand, Assigned: willdurand)

References

(Blocks 1 open bug)

Details

(Whiteboard: [mv3-m2])

Attachments

(1 file)

Let's start by shipping the json schema and a working MVP of the scripting.executeScript() API.

The implementation does not support the following features yet:

  • target.allFrames: because I expect some changes in the tabs API to
    be able to "link" a frameId to a result. That can be done in a
    further iteration
  • execution world (main vs isolated): because that can also be added
    later
  • files can accept more than one file but we only execute the first
    one for now...
Type: task → enhancement
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/69dee748c290 Initial implementation of `scripting.executeScript()`. r=robwu
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5476bbc1844c Initial implementation of `scripting.executeScript()`. r=robwu

The test failures were not related to this patch, although the added test file revealed the bug. I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1741600 for that actual bug and skipped the test in debug mode for now.

Flags: needinfo?(wdurand)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: