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

[api-minor] Ensure that various URL-related options are applied in the xfaLayer too #14092

Merged
merged 2 commits into from
Oct 2, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

Note how both the annotationLayer and the document outline will apply various URL-related options when creating the link-elements.
For consistency the xfaLayer-rendering should obviously use the same options, to ensure that the existing options are indeed applied to all URLs regardless of where they originate.

@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2021
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2021
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2021
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2021
@Snuffleupagus Snuffleupagus changed the title Ensure that various URL-related options are applied in the xfaLayer too [api-minor] Ensure that various URL-related options are applied in the xfaLayer too Sep 30, 2021
@Snuffleupagus Snuffleupagus force-pushed the xfa-addLinkAttributes branch 3 times, most recently from 51e7a76 to d2950ce Compare September 30, 2021 12:03
@Snuffleupagus
Copy link
Collaborator Author

/botio xfatest

@Snuffleupagus Snuffleupagus force-pushed the xfa-addLinkAttributes branch 2 times, most recently from 6fd4ea4 to 5147294 Compare October 1, 2021 08:15
@mozilla mozilla deleted a comment from pdfjsbot Oct 1, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 1, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 1, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 1, 2021
@Snuffleupagus
Copy link
Collaborator Author

/botio xfatest

@pdfjsbot
Copy link

pdfjsbot commented Oct 1, 2021

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 1, 2021

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 1, 2021

From: Bot.io (Linux m4)


Failed

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

Total script time: 9.35 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 1, 2021

From: Bot.io (Windows)


Failed

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

Total script time: 16.08 mins

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

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

@Snuffleupagus
Copy link
Collaborator Author

Flagging multiple reviewers, since there's basically two parts to this:

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks a lot.

… too

Note how both the annotationLayer and the document outline will apply various URL-related options when creating the link-elements.
For consistency the `xfaLayer`-rendering should obviously use the same options, to ensure that the existing options are indeed applied to all URLs regardless of where they originate.
@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2021

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/20e118bab1edd6d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2021

From: Bot.io (Linux m4)


Failed

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

Total script time: 9.41 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2021

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/20e118bab1edd6d/output.txt

Total script time: 16.27 mins

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

Image differences available at: http://54.193.163.58:8877/20e118bab1edd6d/reftest-analyzer.html#web=eq.log

web/base_viewer.js Outdated Show resolved Hide resolved
… the API, to the `PDFLinkService` implementations

This patch helps reduce some duplication, given that we now have a few essentially identical `addLinkAttributes` call-sites in the code-base.
To prevent runtime errors in the Annotation/XFA-layer code, we'll warn if a custom/incomplete `PDFLinkService` is being used (limited to GENERIC builds).
@timvandermeij timvandermeij merged commit 7beb67a into mozilla:master Oct 2, 2021
@timvandermeij
Copy link
Contributor

Thanks!

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.

4 participants