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

Simplify the "fileattachmentannotation"-event handling a little bit #14884

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

This patch can be tested, in the viewer, using the annotation-fileattachment.pdf document from the test-suite.

Note how the FileSpec-implementation already uses stringToPDFString during the filename lookup, see

this._filename = stringToPDFString(filename)

Hence there's no reason to repeat that again in the FileAttachmentAnnotationElement-constructor, and we can thus simplify the "fileattachmentannotation"-event handling a little bit.

*This patch can be tested, in the viewer, using the `annotation-fileattachment.pdf` document from the test-suite.*

Note how the `FileSpec`-implementation already uses `stringToPDFString` during the filename lookup, see https://github.com/mozilla/pdf.js/blob/cfac6fa511945ae5b75d3c27a9356527862a7bf6/src/core/file_spec.js#L70
Hence there's no reason to repeat that again in the `FileAttachmentAnnotationElement`-constructor, and we can thus simplify the "fileattachmentannotation"-event handling a little bit.
@Snuffleupagus Snuffleupagus force-pushed the fileattachmentannotation-event branch from 0d15b8b to 7f40ef4 Compare May 6, 2022 18:55
@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@pdfjsbot
Copy link

pdfjsbot commented May 6, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/1405e641075a0fc/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 6, 2022

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/a1c2f0cd921ba5c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 6, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/1405e641075a0fc/output.txt

Total script time: 4.37 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented May 6, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/a1c2f0cd921ba5c/output.txt

Total script time: 7.88 mins

  • Integration Tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2022

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2022

From: Bot.io (Linux m4)


Success

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

Total script time: 2.69 mins

Published

@timvandermeij timvandermeij merged commit 0a34b3b into mozilla:master May 7, 2022
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the fileattachmentannotation-event branch May 7, 2022 10:07
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.

None yet

3 participants