Closed Bug 1637640 Opened 1 year ago Closed 11 months ago

Enable page load events for frames

Categories

(Remote Protocol :: CDP, task, P1)

task

Tracking

(firefox79 fixed)

RESOLVED FIXED
Firefox 79
Tracking Status
firefox79 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Blocks 5 open bugs)

Details

(Whiteboard: [puppeteer-beta-reserve])

Attachments

(3 files)

Right now we disable any page load event for frames:

https://searchfox.org/mozilla-central/rev/0688ffdef223dac527c2fcdb25560118c4e4df51/remote/domains/content/Page.jsm#259-262

As result we emit view lesser events than Chrome, and this seems to cause various problems in Puppeteer because event handlers like for Page.frameNavigated rely on the correct frame id and parent frame id:

https://searchfox.org/mozilla-central/rev/0688ffdef223dac527c2fcdb25560118c4e4df51/remote/test/puppeteer/lib/FrameManager.js#233

Which means frames aren't correctly setup internally.

Given that the Page domain also makes use of the context observer, it has to be built upon the patches on bug 1593226.

Whiteboard: [puppeteer-beta-mvp] → [puppeteer-beta-reserve]
Depends on: 1637363
Depends on: 1641839
Depends on: 1636373
Depends on: 1644695
Duplicate of this bug: 1535097
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/59cd08b79678
[remote] Enable page load events for frames. r=remote-protocol-reviewers,maja_zf
https://hg.mozilla.org/integration/autoland/rev/3fb7f441b1c1
[remote] Update Puppeteer expectation data. r=remote-protocol-reviewers,maja_zf
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
Duplicate of this bug: 1635800
Component: CDP: Page → CDP
You need to log in before you can comment on or make changes to this bug.