puppeteer / puppeteer

JavaScript API for Chrome and Firefox
https://pptr.dev
Apache License 2.0
88.25k stars 9.06k forks source link

[Feature]: Support network events, bindings, preload scripts, interception and dialogs for OOPIFs #10017

Open OrKoN opened 1 year ago

OrKoN commented 1 year ago

Feature description

Multiple bugs have been filed that report that request events/interception don't work for OOPIFs: https://github.com/puppeteer/puppeteer/issues/9699 https://github.com/puppeteer/puppeteer/issues/9567

This is due to the fact that OOPIF support was added at a later point and the network event/interception code only works with same-process iframes: https://github.com/puppeteer/puppeteer/blob/main/packages/puppeteer-core/src/common/FrameManager.ts#L166

Historically, the old headless mode always worked with OOPIFs disabled as it is easier for automation. Now that the new headless mode and headful mode are also more used, we need to make request interception/events work for multiple targets.

OrKoN commented 1 year ago

cc @jrandolf @Lightning00Blade

OrKoN commented 1 year ago

Probably the same root cause, no support for OOPIFs https://github.com/puppeteer/puppeteer/issues/10216

OrKoN commented 1 year ago

Same root cause https://github.com/puppeteer/puppeteer/issues/10783