Closed Bug 1806413 Opened 2 years ago Closed 1 year ago

Schedule pre-loaded scripts for execution

Categories

(Remote Protocol :: WebDriver BiDi, task, P1)

task
Points:
8

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: whimboo, Assigned: Sasha)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [webdriver:m6])

Attachments

(1 file)

Before we can add basic support for pre-loaded scripts our BiDi implementation needs the ability to schedule custom scripts for evaluation while the page is loading.

How the execution needs to happen will be added by the following PR for the html spec:
https://github.com/whatwg/html/pull/8300

The document parser can be blocked by calling document.blockParsing, which would allow us to evaluate all the registered scripts. Requirement here is that this needs to happen as early as the document has been created. Therefore we need to observe "document-element-inserted".

An example can be found at:

https://searchfox.org/mozilla-central/rev/9b8ebf06145feeccf34dc126cf45b07e86556392/dom/base/test/unit/test_blockParsing.js#65-78

Points: --- → 8
Blocks: 1806415
Type: enhancement → task
Blocks: 1806420
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Assignee: aborovova → nobody
Status: ASSIGNED → NEW
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
See Also: → 1601695
Blocks: 1814842
Pushed by aborovova@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/992f37d790a4
[bidi] Add scheduling of preloaded scripts for execution. r=webdriver-reviewers,whimboo,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: