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

Only bundle the src/display/node_utils.js file in GENERIC-builds #14870

Merged
merged 2 commits into from
May 4, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

  • Only bundle the src/display/node_utils.js file in GENERIC-builds

    This first of all simplifies the file, since we no longer need dummy-classes and can instead directly define the actual classes.
    Furthermore, and more importantly, this means that we no longer need to bundle this code in e.g. MOZCENTRAL-builds which reduces the size of built pdf.js file slightly.

  • Simplify a couple of isNodeJS-dependent getDocument default values

    Given that the isNodeJS-constant will, after PR 14858, always be false in non-GENERIC builds we can simplify a couple of getDocument-parameter default values slightly.
    The old format, with inline PDFJSDev-checks, wasn't exactly a wonder of readability; which was my fault.

This first of all simplifies the file, since we no longer need dummy-classes and can instead *directly* define the actual classes.
Furthermore, and more importantly, this means that we no longer need to bundle this code in e.g. MOZCENTRAL-builds which reduces the size of *built* `pdf.js` file slightly.
Given that the `isNodeJS`-constant will, after PR 14858, *always* be `false` in non-GENERIC builds we can simplify a couple of `getDocument`-parameter default values slightly.
The old format, with inline `PDFJSDev`-checks, wasn't exactly a wonder of readability; which was my fault.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux browsertest

@mozilla mozilla deleted a comment from pdfjsbot May 3, 2022
@mozilla mozilla deleted a comment from pdfjsbot May 3, 2022
@mozilla mozilla deleted a comment from pdfjsbot May 3, 2022
@mozilla mozilla deleted a comment from pdfjsbot May 3, 2022
@mozilla mozilla deleted a comment from pdfjsbot May 3, 2022
@mozilla mozilla deleted a comment from pdfjsbot May 3, 2022
@pdfjsbot
Copy link

pdfjsbot commented May 3, 2022

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2022

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/cee370ed515d2b7/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2022

From: Bot.io (Linux m4)


Failed

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

Total script time: 26.28 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2022

From: Bot.io (Windows)


Success

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

Total script time: 26.73 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: Passed

@timvandermeij timvandermeij merged commit 899e4d5 into mozilla:master May 4, 2022
@timvandermeij
Copy link
Contributor

Much better; thanks!

@Snuffleupagus Snuffleupagus deleted the isNodeJS-cleanup branch May 5, 2022 08:18
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.

3 participants