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

Enable forwarding, in FirefoxCom, of the matchesCount to the browser findbar (bug 1062025) #10071

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus force-pushed the matchesCount-FirefoxCom-forward branch 2 times, most recently from 31053b4 to 5ade875 Compare September 14, 2018 07:13
@timvandermeij
Copy link
Contributor

Looks good to me, but let's indeed wait until this is merged upstream.

…turn broken data (PR 10052 follow-up)

This prevents the findbar from intermittently displaying `0 of {number} matches`, which *could* theoretically happen for large and/or slow loading documents.
… the matcheCount strings, to prevent errors for PDF files embedded in iframe/object tags

The built-in PDF Viewer (in Firefox) cannot use the browser findbar when PDF files are embedded in e.g. iframe/object tags, and the PDF.js findbar (i.e. `PDFFindBar`) will thus be used instead in those cases.
This is slightly problematic, since the `MOZCENTRAL` version of the viewer uses a special, slimmed down, version of the `l10n.js` file that doesn't (currently) support plural forms. To prevent the matchesCounter from breaking completely in this edge-case, temporarily hard-code the plural form to use the default `[other]` version of the locale strings.
@Snuffleupagus Snuffleupagus changed the title [WIP] Enable forwarding, in FirefoxCom, of the matchesCount to the browser findbar (bug 1062025) Enable forwarding, in FirefoxCom, of the matchesCount to the browser findbar (bug 1062025) Sep 16, 2018
@timvandermeij
Copy link
Contributor

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/c36633a8443efde/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/c36633a8443efde/output.txt

Total script time: 4.42 mins

Published

@timvandermeij timvandermeij merged commit a85ee36 into mozilla:master Sep 16, 2018
@timvandermeij
Copy link
Contributor

Thank you!

@Snuffleupagus Snuffleupagus deleted the matchesCount-FirefoxCom-forward branch September 16, 2018 16:07
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