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

A few small viewer-related fixes #15788

Merged
merged 2 commits into from
Dec 8, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

  • Stop trying to disable searching in PresentationMode

    This change was made in PR Creates/refactors PDFPageView class #5552, however I cannot tell why we needed to disable searching in PresentationMode. Furthermore, with the changes in PR [api-minor] XFA - Support text search in XFA documents. #13908 which effectively moved where this code is invoked, searching has now (accidentally) been working in PresentationMode in e.g. the Firefox PDF Viewer for well over a year.

    So, let's just enable searching unconditionally in PresentationMode to simplify the code.

  • Change AnnotationEditorLayerBuilder.render to not access "private" API functionality

    The PDFPageProxy._pageIndex property is a "private" one that shouldn't be accessed, since it could theoretically break tomorrow if we re-factor the relevant API code.

    Also, try to clean-up and improve consistency in a couple of JSDoc comments.

@Snuffleupagus Snuffleupagus changed the title Web small fixes A few small viewer-related fixes Dec 7, 2022
@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

This change was made in PR 5552, however I cannot tell why we needed to disable searching in PresentationMode. Furthermore, with the changes in PR 13908 which effectively moved where this code is invoked, searching has now (accidentally) been working in PresentationMode in e.g. the Firefox PDF Viewer for well over a year.

So, let's just enable searching unconditionally in PresentationMode to simplify the code.
@mozilla mozilla deleted a comment from pdfjsbot Dec 8, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 8, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 8, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 8, 2022
…API functionality

The `PDFPageProxy._pageIndex` property is a "private" one that shouldn't be accessed, since it could theoretically break tomorrow if we re-factor the relevant API code.

Also, try to clean-up and improve consistency in a couple of JSDoc comments.
@mozilla mozilla deleted a comment from pdfjsbot Dec 8, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 8, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 8, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 8, 2022
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Dec 8, 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/1bee30b9889a200/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 8, 2022

From: Bot.io (Linux m4)


Success

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

Total script time: 1.26 mins

Published

@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@pdfjsbot
Copy link

pdfjsbot commented Dec 8, 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/35a6d95245a407e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 8, 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/ed8dafd2443f330/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 8, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/35a6d95245a407e/output.txt

Total script time: 4.25 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Dec 8, 2022

From: Bot.io (Windows)


Failed

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

Total script time: 11.67 mins

  • Integration Tests: FAILED

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.

@Snuffleupagus Snuffleupagus merged commit ba2fec9 into mozilla:master Dec 8, 2022
@Snuffleupagus Snuffleupagus deleted the web-small-fixes branch December 8, 2022 17:05
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