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
feat: add event.senderFrame property returning the webFrameMain #26764
Conversation
062ab59
to
2ef55ad
Compare
2ef55ad
to
99e552d
Compare
80275f0
to
5da8a4d
Compare
5da8a4d
to
c0f074b
Compare
c0f074b
to
6eb5079
Compare
d45e7c3
to
6c0b2e2
Compare
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
6c0b2e2
to
0660412
Compare
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.
The getter is going to be very handy. Nice!
Object.defineProperty(event, 'senderFrame', { | ||
get: () => webFrameMain.fromId(processId, frameId) | ||
}); | ||
}; |
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.
This is great!
83f8c74
to
0cac7e2
Compare
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 as well
0cac7e2
to
5bd5f19
Compare
@nornagon I've noticed that, I had it originally dict.Set("processId", frame->GetProcess()->GetID());
dict.Set("frameId", frame->GetRoutingID()); and then changed it to match your PR to avoid conflict dict.Set("frameId", frame->GetRoutingID());
dict.Set("processId", frame->GetProcess()->GetID()); which broke the snapshot for tests |
aea563c
to
c75859b
Compare
@miniak the linked PR updates the tests to replace the process id with a placeholder in the snapshot. |
c75859b
to
c1d6a57
Compare
c1d6a57
to
4a814cd
Compare
Release Notes Persisted
|
I was unable to backport this PR to "12-x-y" cleanly; |
/trop run backport-to 12-x-y |
The backport process for this PR has been manually initiated - |
I was unable to backport this PR to "12-x-y" cleanly; |
Description of Change
Also add missing
event.processId
, which needs to be passed towebFrameMain.fromId()
.Checklist
npm test
passesRelease Notes
Notes: Added
event.senderFrame
property returning the originatingwebFrameMain
of the IPC message.