Open Bug 1636980 Opened 4 years ago Updated 2 years ago

Implement Target.setAutoAttach

Categories

(Remote Protocol :: CDP, task, P2)

task

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

(Blocks 3 open bugs)

Details

(Whiteboard: [puppeteer-beta2-mvp])

Used by Puppeteer, Playwright, and parts of Gutenberg. Might be important to have.

We will run Guteberg tests soon with all the upcoming improvements over the nexts, and will re-prioritize if necessary.

As given by Joel this is used all over the place in Playwright to attach a script via Page.addScriptToEvaluateOnNewDocument as soon as possible. Here a short description as it should behave:

Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets

To prevent race conditions on the page, we should get this implemented.

Blocks: 1549534
Priority: P3 → P2
Blocks: 1638743
Whiteboard: [puppeteer-beta-reserve] → [puppeteer-beta2-mvp]
Component: CDP: Page → CDP
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.