Closed Bug 1637640 Opened 4 years ago Closed 4 years 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]
Blocks: 1636970
Blocks: 1591979
Blocks: 1535097
Depends on: 1637363
Depends on: 1641839
Depends on: 1636373
Depends on: 1644695

Depends on D79451

Depends on D79452

Blocks: 1599431
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: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
Component: CDP: Page → CDP
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: