Skip to content

feat: webFrameMain.fromFrameToken#47850

Merged
samuelmaddock merged 4 commits intomainfrom
feat/wfm-fromframetoken
Jul 31, 2025
Merged

feat: webFrameMain.fromFrameToken#47850
samuelmaddock merged 4 commits intomainfrom
feat/wfm-fromframetoken

Conversation

@samuelmaddock
Copy link
Copy Markdown
Member

@samuelmaddock samuelmaddock commented Jul 21, 2025

Description of Change

Follow up to #47616

Adds webFrameMain.fromFrameToken(processId, frameToken) which should be the defacto method of looking up frames based on the current chromium architecture.

Checklist

Release Notes

Notes: Added webFrameMain.fromFrameToken(processId, frameToken) to get a WebFrameMain instance from its frame token.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jul 21, 2025
@samuelmaddock samuelmaddock marked this pull request as ready for review July 21, 2025 21:04
@samuelmaddock samuelmaddock added the semver/minor backwards-compatible functionality label Jul 21, 2025
Copy link
Copy Markdown
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

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

API LGTM

Copy link
Copy Markdown
Member

@itsananderson itsananderson left a comment

Choose a reason for hiding this comment

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

API LGTM


interface WebFrameBinding {
mainFrame: InternalWebFrame;
WebFrame: Electron.WebFrame;
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.

For my own understanding, why is this needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I accidentally included it in this PR, but it was meant for the follow up PR #47717

@samuelmaddock samuelmaddock merged commit 25e2459 into main Jul 31, 2025
104 of 106 checks passed
@samuelmaddock samuelmaddock deleted the feat/wfm-fromframetoken branch July 31, 2025 20:41
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Jul 31, 2025

Release Notes Persisted

Added webFrameMain.fromFrameToken(processId, frameToken) to get a WebFrameMain instance from its frame token.

@samuelmaddock
Copy link
Copy Markdown
Member Author

/trop run backport-to 38-x-y

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 2, 2025

The backport process for this PR has been manually initiated - sending your PR to 38-x-y!

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 2, 2025

I have automatically backported this PR to "38-x-y", please check out #47942

@trop trop bot added in-flight/38-x-y merged/38-x-y PR was merged to the "38-x-y" branch. and removed in-flight/38-x-y labels Aug 2, 2025
kigh-ota pushed a commit to kigh-ota/electron that referenced this pull request Sep 30, 2025
* feat: webFrameMain.fromFrameToken

* refactor: return null instead of undefined

* docs: mention renderer webFrame property

* chore: undo null->undefined in wfm.fromId api
this will be updated in another pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-review/approved ✅ merged/38-x-y PR was merged to the "38-x-y" branch. no-backport semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants