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

Attempt to simplify the fileattachmentannotation event dispatching #10119

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

This attempts to reduced the level of indirection, and the amount of code, when dispatching fileattachmentannotation events, by removing the PDFLinkService.onFileAttachmentAnnotation method and just accessing PDFLinkService.eventBus directly in the FileAttachmentAnnotationElement constructor.
Given that other properties, such as externalLinkTarget/externalLinkRel, are already being accessed directly this pattern seems fine here as well.

This attempts to reduced the level of indirection, and the amount of code, when dispatching `fileattachmentannotation` events, by removing the `PDFLinkService.onFileAttachmentAnnotation` method and just accessing `PDFLinkService.eventBus` directly in the `FileAttachmentAnnotationElement` constructor.
Given that other properties, such as `externalLinkTarget`/`externalLinkRel`, are already being accessed directly this pattern seems fine here as well.
@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Oct 1, 2018

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/7d761ef8032b030/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 1, 2018

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/f977e1b19efc36b/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 1, 2018

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/7d761ef8032b030/output.txt

Total script time: 19.73 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Oct 1, 2018

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/f977e1b19efc36b/output.txt

Total script time: 24.15 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

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

@Snuffleupagus
Copy link
Collaborator Author

Hopefully just a Windows intermittent...

/botio-windows test

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2018

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/03ec27a7a072146/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2018

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/03ec27a7a072146/output.txt

Total script time: 23.96 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2018

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/565911aedcbce8b/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2018

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/565911aedcbce8b/output.txt

Total script time: 2.93 mins

Published

@timvandermeij timvandermeij merged commit 1383245 into mozilla:master Oct 2, 2018
@timvandermeij
Copy link
Contributor

Much simpler; thanks!

@Snuffleupagus Snuffleupagus deleted the rm-onFileAttachmentAnnotation branch October 3, 2018 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants