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 ;-)
Created attachment 9007160 [details] [diff] [review] entireWord.patch
Assignee: nobody → jonas.jenwald
Attachment #9007160 - Flags: review?(bdahl)
See Also: → https://github.com/mozilla/pdf.js/pull/10028
Depends on: 1489996
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/e6d4af6ebdd5 Include the `entireWord` mode when forwarding find events to the PDF.js viewer. r=bdahl
Status: NEW → RESOLVED
Last Resolved: 2 months ago
status-firefox64: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Hi Mike and Jonas, Can one of you provide some steps to reproduce for this issue? Thanks!
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
status-firefox62: --- → affected
status-firefox63: --- → affected
status-firefox64: fixed → verified
status-firefox62: affected → wontfix
status-firefox63: affected → wontfix
You need to log in before you can comment on or make changes to this bug.