Skip to content

feat: WebContents.focusedFrame#45667

Merged
jkleinsc merged 1 commit into
mainfrom
feat/focused-frame
Mar 4, 2025
Merged

feat: WebContents.focusedFrame#45667
jkleinsc merged 1 commit into
mainfrom
feat/focused-frame

Conversation

@samuelmaddock

@samuelmaddock samuelmaddock commented Feb 18, 2025

Copy link
Copy Markdown
Member

Description of Change

Adds a binding for WebContents::GetFocusedFrame.

There doesn't appear to be any event which indicates when the focused frame changes unfortunately. It's set in WebContentsImpl::SetFocusedFrame.

These changes also change the type of WebContents.opener to have null to reflect its accurate state.

Checklist

Release Notes

Notes:

  • Added WebContents.focusedFrame to get the focused frame.
  • Fixed WebContents.opener to specify potential null type.

@erickzhao erickzhao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

API LGTM

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Feb 25, 2025

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

API LGTM

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for adding tests!

@jkleinsc jkleinsc merged commit 8c11764 into main Mar 4, 2025
@jkleinsc jkleinsc deleted the feat/focused-frame branch March 4, 2025 16:39
@release-clerk

release-clerk Bot commented Mar 4, 2025

Copy link
Copy Markdown

Release Notes Persisted

  • Added WebContents.focusedFrame to get the focused frame.
  • Fixed WebContents.opener to specify potential null type.
@nikwen nikwen mentioned this pull request Apr 8, 2025
3 tasks
@panther7

panther7 commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

Hi, could be backport to v35?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants