Emit executionContextCreated for all contexts that exist when Runtime gets enabled
Categories
(Remote Protocol :: CDP, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: impossibus, Unassigned)
References
Details
(Whiteboard: [puppeteer-beta2-mvp])
https://chromedevtools.github.io/devtools-protocol/tot/Runtime#method-enable: "When the reporting gets enabled the event will be sent immediately for each existing execution context." implying that contexts get created regardless of whether Runtime is enabled or not; "enabled" just means notifications are being sent.
So in Runtime.enabled we should iterate over contexts
and emit an executionContextCreated event for all the contexts that already exist.
This is especially relevant to methods like Page.createIsolatedWorld and Page.addScriptToEvaluateOnNewDocument, since they create new execution contexts in addition to what Runtime does.
Reporter | ||
Comment 1•5 years ago
|
||
Related to this, I think this also implies that we need to move the turning on/off of the context observer for context-created
and context-destroyed
out of Runtime. Contexts should be destroyed/created regardless of whether the Runtime domain is instantiated or not.
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Comment hidden (obsolete) |
This is blocked by bug 1623482 and cannot be mentored at the moment.
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•2 years ago
|
We are not going to implement this. One should use WebDriver BiDi these days.
Description
•