Closed Bug 1563526 Opened 5 years ago Closed 1 year ago

Implement Page.reload’s scriptToEvaluateOnLoad parameter

Categories

(Remote Protocol :: CDP, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ato, Unassigned)

References

(Depends on 1 open bug, )

Details

Bug 1544445 introduced the the Page.reload method
and bug 1549708 adds support for its ignoreCache parameter.
This bug covers the final argument, scriptToEvaluateOnLoad.

Described in the CDP API:

scriptToEvaluateOnLoad (optional, string)
If set, the script will be injected into all frames of the inspected page after reload.
Argument will be ignored if reloading dataURL origin.

Blocks: 1549480
Depends on: 1544445
Priority: -- → P3

I didn’t look too closely, but there may be some inspiration to take from
https://searchfox.org/mozilla-central/source/devtools/server/actors/addon/webextension-inspected-window.js#137

We don't even support executing scripts on normal loads. So bug 1601695 should be fixed first.

Depends on: 1601695
Component: CDP: Page → CDP
Severity: normal → S3

Bootstrap script implementation works already with WebDriver BiDi. We are not going to get this added to CDP.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.