Bug 4070 - Find in plain text won't find only occurrence if it overlaps selection
Summary: Find in plain text won't find only occurrence if it overlaps selection
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 412
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: John Sullivan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 10:16 PDT by John Sullivan
Modified: 2005-09-09 11:34 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Sullivan 2005-07-19 10:16:11 PDT
To reproduce:
1. Open a plain text document in Safari.
2. Find some text that only occurs once on the page
3. Create a selection that overlaps the text you noted in step 2, but does not entirely encompass it
4. Command-F to bring up Find UI, and search for the text you noted in step 2

This should find the only instance of the text, but fails to do so. This works correctly in HTML.
Comment 1 John Sullivan 2005-07-19 10:17:07 PDT
It seems that PDFs would have this same bug, though I tested just now and could not reproduce the 
problem in a PDF. We should understand why.
Comment 2 John Sullivan 2005-09-09 10:43:07 PDT
PDFs don't have this same bug because we search the entire PDF in the wrap case; this is the same 
behavior as HTML.
Comment 3 John Sullivan 2005-09-09 11:34:58 PDT
Checked in fix.