-
Notifications
You must be signed in to change notification settings - Fork 10k
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
timvandermeij
merged 3 commits into
mozilla:master
from
Snuffleupagus:matchesCount-FirefoxCom-forward
Sep 16, 2018
Merged
Enable forwarding, in FirefoxCom
, of the matchesCount to the browser findbar (bug 1062025)
#10071
timvandermeij
merged 3 commits into
mozilla:master
from
Snuffleupagus:matchesCount-FirefoxCom-forward
Sep 16, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Snuffleupagus
force-pushed
the
matchesCount-FirefoxCom-forward
branch
2 times, most recently
from
September 14, 2018 07:13
31053b4
to
5ade875
Compare
Looks good to me, but let's indeed wait until this is merged upstream. |
…r findbar (bug 1062025) This depends on https://bugzilla.mozilla.org/show_bug.cgi?id=1062025 landing in `mozilla-central` first, since https://searchfox.org/mozilla-central/rev/37663bb87004167184de6f2afa6b05875eb0528e/browser/extensions/pdfjs/content/PdfStreamConverter.jsm#719,740 would otherwise throw for the unknown event name.
…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
force-pushed
the
matchesCount-FirefoxCom-forward
branch
from
September 16, 2018 06:55
5ade875
to
06b9455
Compare
Snuffleupagus
changed the title
[WIP] Enable forwarding, in
Enable forwarding, in Sep 16, 2018
FirefoxCom
, of the matchesCount to the browser findbar (bug 1062025)FirefoxCom
, of the matchesCount to the browser findbar (bug 1062025)
/botio-windows preview |
From: Bot.io (Windows)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/c36633a8443efde/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/c36633a8443efde/output.txt Total script time: 4.42 mins Published |
timvandermeij
approved these changes
Sep 16, 2018
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This depends on https://bugzilla.mozilla.org/show_bug.cgi?id=1062025 landing in
mozilla-central
first, since https://searchfox.org/mozilla-central/rev/37663bb87004167184de6f2afa6b05875eb0528e/browser/extensions/pdfjs/content/PdfStreamConverter.jsm#719,740 would otherwise throw for the unknown event name.