Closed Bug 272285 Opened 20 years ago Closed 17 years ago

search iterates repeatedly on very long page when string (not found) id pasted in search window

Categories

(Toolkit :: Find Toolbar, defect)

x86
Windows 98
defect
Not set
minor

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: michael, Unassigned)

References

()

Details

(Keywords: perf)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

When using the find function on a LONG page, if the string to find is pasted
into the find window and is not found there is a long wait. This appears to be
because the function parses the character string -- character by character as it
is pasted into the box, then searchs the page repeatedly for each character
concatenated to the string (internally), even though the string begin is not and
will not ever be found on the page. This is know because the first few
characters fail and repeat searchs with more trailing characters are futile.
This is particularly problematic when the page to be searched is very large.
i.e. several hundred thousand characters or more.

Reproducible: Always
Steps to Reproduce:
1. bring up a LARGE page
2. cntl-F
3. paste in a string that will not be found except for the first character or
two, wait patiently while firefox iterates.

Actual Results:  
You will get bored.

Expected Results:  
failed permanently on the first few characters, ignoring additions to and
already failed string (search).
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
bug still present in Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7

Reproduces exactly the same as before.

Select a long page, paste a long string in the search box. The search will
iterate for EACH character pasted even though it does not match on the first few
characters of the search text. On a long page this leads to excessive delay and
resource consumption.
Assignee: p_ch → nobody
Component: Search → Find Toolbar / FastFind
QA Contact: search → fast.find
Michael, is this still an issue with the latest Firefox builds?

If not, please close this bug as WORKSFORME.

Thanks.
Keywords: perf
Appears to work correctly in 2.0.0.5
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Changing resolution to WORKSFORME since it was not explicitly fixed.
Resolution: FIXED → WORKSFORME
Product: Firefox → Toolkit
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.