Skip to content

[api-minor] Support rich content in markup annotation #14182

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

Merged
merged 1 commit into from
Oct 31, 2021

Conversation

calixteman
Copy link
Contributor

@calixteman calixteman commented Oct 24, 2021

  • use the xfa parser but in the xhtml namespace.

Fix #2966
Fix #13915

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

In the existing annotation_layer.js code, we have a bunch of checks along these lines; should all of those perhaps have a parameters.data.richText-case added now?

Also, should an explicitly defined PopupAnnotation support rich-text; i.e. should we add richText: this.data.richText, at end of the parameters listed here?

const popup = new PopupElement({
container: this.container,
trigger: Array.from(parentElements),
color: this.data.color,
titleObj: this.data.titleObj,
modificationDate: this.data.modificationDate,
contentsObj: this.data.contentsObj,
});

@marco-c marco-c linked an issue Oct 25, 2021 that may be closed by this pull request
@calixteman calixteman linked an issue Oct 25, 2021 that may be closed by this pull request
@Snuffleupagus
Copy link
Collaborator

/botio-linux preview

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/884ff506b1bb41a/output.txt

Total script time: 4.26 mins

Published

@mozilla mozilla deleted a comment from pdfjsbot Oct 28, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 28, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 28, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 28, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 28, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 28, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 28, 2021
@mozilla mozilla deleted a comment from pdfjsbot Oct 28, 2021
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/521b5b05e8a6aeb/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 22.72 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 13
  different first/second rendering: 2

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/521b5b05e8a6aeb/output.txt

Total script time: 33.11 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 671
  different ref/snapshot: 15

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

@calixteman
Copy link
Contributor Author

/botio test

@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/5266b98068c3358/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/5266b98068c3358/output.txt

Total script time: 23.17 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 37
  different first/second rendering: 2

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

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

Total script time: 42.32 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 37
  different first/second rendering: 1

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

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

I was just about to land this, when it occurred to me that we can improve the API itself (for a non-viewer use-case); please see the inline comments.

  - use the xfa parser but in the xhtml namespace.
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 20.74 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 673
  different ref/snapshot: 21
  different first/second rendering: 1

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

@Snuffleupagus
Copy link
Collaborator

/botio-linux browsertest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/7d9222fea67cf81/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

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

Total script time: 42.42 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 39
  different first/second rendering: 2

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/7d9222fea67cf81/output.txt

Total script time: 20.03 mins

  • Regression tests: FAILED
  different ref/snapshot: 39
  different first/second rendering: 3

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

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

r=me, thanks for implementing this!

@Snuffleupagus Snuffleupagus merged commit 8c70258 into mozilla:master Oct 31, 2021
@Snuffleupagus
Copy link
Collaborator

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_makeref from @Snuffleupagus received. Current queue size: 1

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

@Snuffleupagus Snuffleupagus changed the title Support rich content in markup annotation [api-minor] Support rich content in markup annotation Oct 31, 2021
@timvandermeij timvandermeij removed their request for review October 31, 2021 13:44
@Snuffleupagus
Copy link
Collaborator

/botio-linux makeref

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @Snuffleupagus received. Current queue size: 1

Live output at: http://54.241.84.105:8877/5d09940815e5a9b/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 18.52 mins

  • Lint: Passed
  • Make references: FAILED

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/5d09940815e5a9b/output.txt

Total script time: 20.76 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

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

Total script time: 39.34 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

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.

Incorrect rendering of annotations Support for Rich Text annotations
4 participants