Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add 'dom-ready' event to WebFrameMain #30801

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Sep 1, 2021

Backport of #29290

See that PR for details.

Notes:

  • Added 'dom-ready' event to WebFrameMain which emits when the frame's document is ready.
  • Added 'frame-created' event to WebContents which emits when a frame is created in the page.

fix: test failing possibly caused by lazy loaded iframes?

refactor: move frame-dom-ready event into WebFrameMain

test: new WebFrameMain dom-ready event

refactor: return bool

refactor: add gin_helper::AccessorValue for gin accessor conversion

refactor: call methods directly from electron:WebContents

Writing static method boilerplate isn't fun

feat: add WebFrameMain 'destroyed' event

Update shell/common/gin_converters/frame_converter.cc

Co-authored-by: Jeremy Rose <nornagon@nornagon.net>

refactor: use persistent handle for rfh obj template

docs: when the WebFrameMain 'destroyed' event can occur

refactor: use dcheck and 'As' instead of 'Cast'

chore: add type checking to internal fields

refactor: add conditional for internal field count

refactor: removed 'destroyed event and isDestroyed()

This may be revisited at a later time.

test: frame-created event
|old_host| may be nullptr if the previous RFH was shutdown.
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Sep 1, 2021
@trop trop bot mentioned this pull request Sep 1, 2021
5 tasks
@trop trop bot added 15-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Sep 1, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Sep 1, 2021
Copy link
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by @electron/wg-releases

@codebytere codebytere merged commit a9e1413 into 15-x-y Sep 2, 2021
@codebytere codebytere deleted the trop/15-x-y-bp-feat-add-dom-ready-event-to-webframemain-1630534889429 branch September 2, 2021 08:13
@release-clerk
Copy link

release-clerk bot commented Sep 2, 2021

Release Notes Persisted

  • Added 'dom-ready' event to WebFrameMain which emits when the frame's document is ready.
  • Added 'frame-created' event to WebContents which emits when a frame is created in the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
15-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants