Skip to content

feat: webFrameMain.fromFrameToken - #47850

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

samuelmaddock merged 4 commits into
mainfrom
feat/wfm-fromframetoken

Conversation

@samuelmaddock

@samuelmaddock samuelmaddock commented Jul 21, 2025 •

Copy link
Copy Markdown
Member

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
Comment thread docs/api/web-frame-main.md Resolved
@samuelmaddock samuelmaddock mentioned this pull request Jul 22, 2025
1 of 10 tasks
Comment thread docs/api/web-frame-main.md Resolved

@codebytere codebytere 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

@itsananderson itsananderson 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


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
@samuelmaddock
samuelmaddock deleted the feat/wfm-fromframetoken branch July 31, 2025 20:41
@release-clerk

release-clerk Bot commented Jul 31, 2025

Copy link
Copy Markdown

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

trop Bot commented Aug 2, 2025

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Aug 2, 2025

Copy link
Copy Markdown
Contributor

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
@t57ser t57ser mentioned this pull request Sep 4, 2025
3 tasks done
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