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

Stop bundling PDFViewerApplication.{unbindEvents, unbindWindowEvents} in MOZCENTRAL builds #14885

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

These methods are completely unused in the Firefox PDF Viewer, and were only added to supplement the PDFViewerApplication.{bindEvents, bindWindowEvents}-methods since third-party implementations may apparently need to remove event listeners (see PR #8525).
However, in the MOZCENTRAL build that's just dead code and this patch reduces the size of the built web/viewer.js-file by ~3.5 kB.

…}` in MOZCENTRAL builds

These methods are completely unused in the Firefox PDF Viewer, and were only added to supplement the `PDFViewerApplication.{bindEvents, bindWindowEvents}`-methods since third-party implementations may apparently need to remove event listeners (see PR 8525).
However, in the MOZCENTRAL build that's just dead code and this patch reduces the size of the *built* `web/viewer.js`-file by `~3.5` kB.
@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@pdfjsbot
Copy link

pdfjsbot commented May 7, 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/bad05117371a5a7/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 7, 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/1a166421ff76778/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2022

From: Bot.io (Windows)


Failed

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

Total script time: 3.88 mins

  • Integration Tests: FAILED

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/1a166421ff76778/output.txt

Total script time: 4.42 mins

  • Integration Tests: Passed

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/60015e0b07f3e23/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/60015e0b07f3e23/output.txt

Total script time: 2.66 mins

Published

@timvandermeij timvandermeij merged commit 7111a17 into mozilla:master May 8, 2022
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the mozcentral-rm-unbindEvents branch May 8, 2022 12:00
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