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

Display the index of the currently active search result in the matches counter of the findbar (issue 6993, bug 1062025) #10052

Merged
merged 1 commit into from
Sep 9, 2018

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Sep 8, 2018

For the PDFFindBar implementation, similar to the native Firefox findbar, the matches count displayed is now limited to a (hopefully) reasonable value; compare with https://searchfox.org/mozilla-central/rev/37663bb87004167184de6f2afa6b05875eb0528e/modules/libpref/init/all.js#1031

Please note: In order to enable this feature in the MOZCENTRAL version, a follow-up patch will be required once this has landed in mozilla-central.

Fixes #6993.

@Snuffleupagus Snuffleupagus force-pushed the matchesCount branch 2 times, most recently from 7537d48 to 4c3acf2 Compare September 8, 2018 14:10
@Snuffleupagus Snuffleupagus changed the title [WIP] Display the index of the currently active search result in the matches counter of the findbar (issue 6993, bug 1062025) Display the index of the currently active search result in the matches counter of the findbar (issue 6993, bug 1062025) Sep 8, 2018
@pdfjsbot
Copy link

pdfjsbot commented Sep 8, 2018

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/4fdf1abe9c91916/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 8, 2018

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/4fdf1abe9c91916/output.txt

Total script time: 7.39 mins

Published

…s counter of the findbar (issue 6993, bug 1062025)

For the `PDFFindBar` implementation, similar to the native Firefox findbar, the matches count displayed is now limited to a (hopefully) reasonable value.

*Please note:* In order to enable this feature in the `MOZCENTRAL` version, a follow-up patch will be required once this has landed in `mozilla-central`.
@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2018

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/eac56f1be815792/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2018

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/eac56f1be815792/output.txt

Total script time: 7.59 mins

Published

@@ -209,6 +209,10 @@ PDFViewerApplication.externalServices = {
FirefoxCom.request('updateFindControlState', data);
},

updateFindMatchesCount(data) {
// FirefoxCom.request('updateFindMatchesCount', data);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is purposely commented out, for now, since https://searchfox.org/mozilla-central/rev/37663bb87004167184de6f2afa6b05875eb0528e/browser/extensions/pdfjs/content/PdfStreamConverter.jsm#719,740 will throw without the mozilla-central follow-up patch.

@timvandermeij timvandermeij merged commit 38baaea into mozilla:master Sep 9, 2018
@timvandermeij
Copy link
Contributor

Works really well. Thank you!

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