Closed Bug 1755978 Opened 2 years ago Closed 2 years ago

Add support for `runAt` in `scripting.RegisteredContentScript`

Categories

(WebExtensions :: General, enhancement, P2)

enhancement
Points:
1

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: willdurand, Assigned: willdurand)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

It's about adding support for runAt and writing tests.

Summary: Add support for `css` in `scripting.RegisteredContentScript` → Add support for `runAt` in `scripting.RegisteredContentScript`

Note: the implementation should ensure that this runAt property only applies to js; CSS should unconditionally be applied at document_start, based on the documentation for css @ https://developer.chrome.com/docs/extensions/reference/scripting/#property-RegisteredContentScript-css

The list of CSS files to be injected into matching pages. These are injected in the order they appear in this array, before any DOM is constructed or displayed for the page.

(In reply to Rob Wu [:robwu] from comment #1)

Note: the implementation should ensure that this runAt property only applies to js; CSS should unconditionally be applied at document_start, based on the documentation for css @ https://developer.chrome.com/docs/extensions/reference/scripting/#property-RegisteredContentScript-css

The list of CSS files to be injected into matching pages. These are injected in the order they appear in this array, before any DOM is constructed or displayed for the page.

FWIW, I am thinking about implementing support for runAt before we support css.

Attachment #9265328 - Attachment description: WIP: Bug 1755978 - Add support for `runAt` in `scripting.RegisteredContentScript`. r?robwu! → Bug 1755978 - Add support for `runAt` in `scripting.RegisteredContentScript`. r?robwu!
Pushed by wdurand@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dff91c40b277
Add support for `runAt` in `scripting.RegisteredContentScript`. r=robwu
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: