-
Notifications
You must be signed in to change notification settings - Fork 16.5k
feat: webFrameMain.fromFrameToken #47850
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
Conversation
this will be updated in another pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
There was a problem hiding this 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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Release Notes Persisted
|
/trop run backport-to 38-x-y |
The backport process for this PR has been manually initiated - sending your PR to |
I have automatically backported this PR to "38-x-y", please check out #47942 |
* 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
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
npm test
passesRelease Notes
Notes: Added
webFrameMain.fromFrameToken(processId, frameToken)
to get aWebFrameMain
instance from its frame token.