Closed Bug 1282759 Opened 8 years ago Closed 6 years ago

Support whole word search for find in page

Categories

(Firefox :: PDF Viewer, defect, P3)

50 Branch
defect

Tracking

()

VERIFIED FIXED
Firefox 64
Tracking Status
firefox62 --- wontfix
firefox63 --- wontfix
firefox64 --- verified

People

(Reporter: mikedeboer, Assigned: Snuffleupagus)

References

Details

(Whiteboard: [pdfjs-c-feature])

Attachments

(1 file)

Since bug 269442, the find toolbar support a new mode, called 'Whole Words', which only matches strings surrounded by word-breaking characters, like spaces or punctuation marks in latin-derived languages.

As you might know, this is the default matching mode for the find toolbars in Webkit/ Blink based browsers.

The implementation uses the term 'entireword', not 'wholeword' as you might think. This is due to historical reasons that are not very interesting for this bug ;-)
Flags: qe-verify+
Flags: firefox-backlog+
Priority: -- → P3
Whiteboard: [pdfjs-c-feature]
Attached patch entireWord.patchSplinter Review
Assignee: nobody → jonas.jenwald
Attachment #9007160 - Flags: review?(bdahl)
Keywords: leave-open
Depends on: 1489996
Keywords: leave-open
Attachment #9007160 - Flags: review?(bdahl) → review+
Keywords: checkin-needed
Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e6d4af6ebdd5
Include the `entireWord` mode when forwarding find events to the PDF.js viewer. r=bdahl
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/e6d4af6ebdd5
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Hi Mike and Jonas,
Can one of you provide some steps to reproduce for this issue?
Thanks!
Flags: needinfo?(mdeboer)
Flags: needinfo?(jonas.jenwald)
Ah, I think Jonas should be the one to get you an STR here - if he's available, otherwise Brendan could. My guess here:
Open up a PDF document containing text, open up the find-in-page bar, toggle the 'While Words' option button and start trying to find whole words in the document.
The ER should be that only whole words can be found, not partial matches.
Flags: needinfo?(mdeboer) → needinfo?(bdahl)
I have reproduced the issue in Nightly v64.0a1 from 2018-09-05 and I have verified it in Nightly v64.0a1 from 2018-10-19.
I have also verified if it occurs in firefox63 and firefox62 and set the tags accordingly but considering that the target was set as Firefox 64, I have set the general status of this bug as VERIFIED.

The steps taken to verify the issue are the following:
1. Open the browser and reach: http://etd.lib.byu.edu/PDFCreation/EditingTextinPDFDocuments.pdf
2. Tap: "CTRL+F" to use the search in page feature;
3. Click the "Whole words" button from the find in page bar to activate this option.
4. Search for the word "you" and make sure that the word "your" is not highlighted as a result.
Affected: The word "your" is also highlighted as a result.
Fixed: The word "your" is not highlighted as a result.

Thank you.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Flags: needinfo?(bdahl)
Flags: needinfo?(jonas.jenwald)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: