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

Reset the IPDFLinkService.externalLinkEnabled property on document closing #13617

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Jun 23, 2021

Given that this property is only used with password protected documents, and is consequently document-specific rather than viewer-specific, ensure that IPDFLinkService.externalLinkEnabled is actually being reset by PDFViewerApplication.close.

To make things less confusing/inconsistent, remove the undocumented externalLinkEnabled property from the PDFLinkService constructor and force it to always be manually set when needed.

…closing

Given that this property is only used with password protected documents, and is consequently document-specific rather than viewer-specific, ensure that `IPDFLinkService.externalLinkEnabled` is actually being reset by `PDFViewerApplication.close`.

To make things less confusing/inconsistent, remove the *undocumented* `externalLinkEnabled` property from the `PDFLinkService` constructor and force it to always be manually set when needed.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/26e26746b80a60f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/26e26746b80a60f/output.txt

Total script time: 4.53 mins

Published

@timvandermeij timvandermeij merged commit c115be2 into mozilla:master Jun 23, 2021
@timvandermeij
Copy link
Contributor

Looks good; thanks!

@Snuffleupagus Snuffleupagus deleted the reset-externalLinkEnabled branch June 24, 2021 06:26
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