Skip to content
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

Re-factor the MessageHandler-class event handler function #18888

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Oct 12, 2024

  • Change the "message" event handler function to a private method.

  • Remove the "message" event listener with an AbortSignal.

  • Extend the LoopbackPort-class with AbortSignal support.

Smaller diff with https://github.com/mozilla/pdf.js/pull/18888/files?w=1

@Snuffleupagus Snuffleupagus deleted the MessageHandler-AbortSignal branch October 12, 2024 15:30
@Snuffleupagus Snuffleupagus restored the MessageHandler-AbortSignal branch October 13, 2024 09:10
@Snuffleupagus Snuffleupagus reopened this Oct 13, 2024
@Snuffleupagus Snuffleupagus marked this pull request as draft October 13, 2024 09:10
@Snuffleupagus Snuffleupagus marked this pull request as ready for review October 13, 2024 15:38
 - Change the "message" event handler function to a private method.

 - Remove the "message" event listener with an `AbortSignal`.

 - Extend the `LoopbackPort`-class with `AbortSignal` support.
@mozilla mozilla deleted a comment from moz-tools-bot Oct 16, 2024
@mozilla mozilla deleted a comment from moz-tools-bot Oct 16, 2024
@mozilla mozilla deleted a comment from moz-tools-bot Oct 16, 2024
@mozilla mozilla deleted a comment from moz-tools-bot Oct 16, 2024
@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/caffd6e4756ebab/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/8227d4eef18b891/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/caffd6e4756ebab/output.txt

Total script time: 31.45 mins

  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 19

Image differences available at: http://54.241.84.105:8877/caffd6e4756ebab/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/8227d4eef18b891/output.txt

Total script time: 53.39 mins

  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 3

Image differences available at: http://54.193.163.58:8877/8227d4eef18b891/reftest-analyzer.html#web=eq.log

Copy link
Contributor

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was reading through the changes in src/display/api.js to add support for signals, and they look correct

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@Snuffleupagus Snuffleupagus merged commit c88d3a3 into mozilla:master Oct 18, 2024
8 checks passed
@Snuffleupagus Snuffleupagus deleted the MessageHandler-AbortSignal branch October 18, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants