feat: monkey-patch MessagePort onproperties#34610
feat: monkey-patch MessagePort onproperties#34610JiaLiPassion wants to merge 1 commit intoangular:masterfrom
Conversation
d899dde to
93b28b5
Compare
93b28b5 to
0328652
Compare
0328652 to
731f43a
Compare
mhevery
left a comment
There was a problem hiding this comment.
Approved with some nits.
Also the tests are failing, usually we try to get CI green before doing code review.
cc92096 to
bd60b2b
Compare
bd60b2b to
6ebe268
Compare
…ssageerror) (angular#34610)" This reverts commit 1882451. Reason: breaks some g3 targets.
|
@AndrewKushnir , could you tell me more information about the failure in g3, because this PR should have no impact for the current code, this PR just build a new |
|
Hi @JiaLiPassion, If I understand correctly, all files in the So the newly added Should it be in the Thank you. |
|
@AndrewKushnir , oh, yes, I see the code snippet also exclude |
|
Hi @JiaLiPassion, thanks for the update. Could you please rebase this PR, so that we re-run CI again and I'll try to run presubmit (excluding the file) in g3 again. Thank you. |
6ebe268 to
e4b1e6c
Compare
1ad52ac to
5f7ee75
Compare
|
@AndrewKushnir , sure, I have rebased this PR, please review, thanks! |
5f7ee75 to
3eb2f40
Compare
Monkey patch `MessagePort.prototype.onmessage` and `MessagePort.prototype.onmessageerror` to make these properties's value(callback function) run in the zone when these value are set.
3eb2f40 to
55eb182
Compare
|
@JiaLiPassion thanks for the update. FYI, in order to run tests for ZoneJS changes that are in the merge queue, I've combined 4 ZoneJS PRs into one: #36043. Note: the #36043 PR is for testing purposes only and the changes will land in the corresponding PRs once g3 testing is completed. Thank you. |
|
@AndrewKushnir, got it, thank you! |
|
FYI, changes in this PR were tested against g3 as a part of #36043, using Global TAP run, which was successful. Thank you. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |


Close #34581
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #34581
What is the new behavior?
monkey-patch MessagePort.onmessage/onmessageerror properties.
Does this PR introduce a breaking change?