Skip to content

Don't provide the enableXfa parameter to the BaseViewer constructor, and avoid the fallback bar with enableXfa = true set (PR 13069 follow-up) #13125

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
Mar 21, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Mar 20, 2021

Given that the enableXfa parameter must to be passed to the API/Worker, and thus included in the getDocument call, it's not necessary to include it when initializing the PDFViewer-instance used in the default viewer. (Also, in AppOptions, the parameter is clearly marked with OptionKind.API.)

Furthermore, we probably don't want to display the fallback bar (in Firefox) for XFA documents when enableXfa = true is set.

@Snuffleupagus

This comment has been minimized.

@Snuffleupagus Snuffleupagus marked this pull request as draft March 20, 2021 22:16
@Snuffleupagus Snuffleupagus force-pushed the BaseViewer-enableXfa branch 2 times, most recently from ca2492a to b34ea06 Compare March 21, 2021 09:47
@Snuffleupagus Snuffleupagus changed the title Actually handle the enableXfa parameter in the BaseViewer (PR 13069 follow-up) Don't provide the enableXfa parameter to the BaseViewer constructor, and avoid the fallback bar with enableXfa = true set (PR 13069 follow-up) Mar 21, 2021
…or, and avoid the fallback bar with `enableXfa = true` set (PR 13069 follow-up)

Given that the `enableXfa` parameter must to be passed to the API/Worker, and thus included in the `getDocument` call, it's not necessary to include it when initializing the `PDFViewer`-instance used in the default viewer. (Also, in `AppOptions`, the parameter is clearly marked with `OptionKind.API`.)

Furthermore, we probably don't want to display the fallback bar (in Firefox) for XFA documents when `enableXfa = true` is set.
@Snuffleupagus Snuffleupagus marked this pull request as ready for review March 21, 2021 09:54
@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/02127a4ac55cccb/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/02127a4ac55cccb/output.txt

Total script time: 4.27 mins

Published

@timvandermeij timvandermeij merged commit d426ffd into mozilla:master Mar 21, 2021
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the BaseViewer-enableXfa branch March 21, 2021 15:38
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