+
Skip to content

Conversation

samuelmaddock
Copy link
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
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
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
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
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

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
Member Author

/trop run backport-to 38-x-y

@trop
Copy link
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
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载