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

XFA - Move the fake HTML representation of XFA from the worker to the main thread #13437

Merged
merged 2 commits into from
May 31, 2021

Conversation

calixteman
Copy link
Contributor

  • the only goal of this patch is to be able to get synchronously the fake html when printing from firefox:
    • in order to print we need to inject some html in beforeprint callback but we cannot block in waiting for all the pages.
  • from a memory point of view: it doesn't change anything since the fake HTML is deleted in the worker;
  • this way we don't break any assumptions.

src/core/document.js Outdated Show resolved Hide resolved
src/display/api.js Outdated Show resolved Hide resolved
src/display/api.js Outdated Show resolved Hide resolved
src/display/api.js Outdated Show resolved Hide resolved
@calixteman calixteman force-pushed the xfa_mv_root branch 2 times, most recently from e221d04 to 6a9fb60 Compare May 25, 2021 14:58
…le to print (or save) a document. Some pages can be unloaded (because pdf.js is lazy) and this storage will help to save their data in order to resuse them when printing or just when displaying a page again.
… main thread

  - the only goal of this patch is to be able to get synchronously the fake html when printing from firefox:
    - in order to print we need to inject some html in beforeprint callback but we cannot block in waiting for all the pages.
  - from a memory point of view: it doesn't change anything since the fake HTML is deleted in the worker;
  - this way we don't break any assumptions.
@brendandahl
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/cb09baadb4fcc9f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @brendandahl received. Current queue size: 1

Live output at: http://3.101.106.178:8877/be0d2623f09450f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/cb09baadb4fcc9f/output.txt

Total script time: 26.04 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/be0d2623f09450f/output.txt

Total script time: 29.82 mins

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

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

@calixteman calixteman merged commit 8c53bf8 into mozilla:master May 31, 2021
@calixteman calixteman deleted the xfa_mv_root branch May 31, 2021 08:14
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.

5 participants