Closed Bug 146194 Opened 23 years ago Closed 20 years ago

sidebar search's next button does not reset count with a new search

Categories

(SeaMonkey :: Search, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: seth, Assigned: robert.strong.bugs)

References

Details

Attachments

(1 file, 1 obsolete file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510 BuildID: 2002051009 Searching a website (like google) with the search sidebar, yields results. The sidebar has a next button that shows the next results. Say you push it until the results shown are numbers 61-80. Now you do another search from the sidebar, and it shows results 1-20. If you push next it SHOULD show you numbers 21-40, however it shows you numbers 81-100. The count should be reset with each new search. Reproducible: Always Steps to Reproduce: 1.Search using google in the search sidebar for "boogers" 2.Press next 3.Search using google in the search sidebar for "boogers are nice to eat" 4.Press next Actual Results: The page shown is google results from 41-50 Expected Results: It should have shown pages 21-50, according to the google.src Sherlock2 specification Note that there is a bug in the google.src specification as well in that the increment for next and previous are both 20, while google only searches 10 at a time.
can you still reproduce this with a recent mozilla version like 1.1beta?
Confirming. And the bug you are mentioning at the end of your report is bug 149631. Marking it dependent of it.
Status: UNCONFIRMED → NEW
Depends on: 149631
Ever confirmed: true
Sorry, forgot to mention that I'm confirming with the latest nightly, build ID 2002111321
Attached patch patch rev 1 (obsolete) — Splinter Review
The attached patch solves this bug by setting the global var gPageNumber to 0 when a search is performed. This also fixes the problem where gPageNumber is off by one when changing the direction of the search results by using the Next / Previous buttons.
Comment on attachment 174467 [details] [diff] [review] patch rev 1 Not sure who to ask to r and sr and chose caillon for r after looking at Bug 149631.
Attachment #174467 - Flags: review?(caillon)
Attachment #174467 - Attachment is obsolete: true
Attached patch patchSplinter Review
After reading several other search bugs it is apparent that the fix for the previous next issue should be done elsewhere so this patch now only contains the fix for this bug.
Attachment #174493 - Flags: review?(caillon)
Attachment #174493 - Flags: review?(caillon) → review+
Comment on attachment 174493 [details] [diff] [review] patch I'm guessing who should review the patch and a checkin would be appreciated. Thanks
Attachment #174493 - Flags: superreview?(alecf)
Comment on attachment 174493 [details] [diff] [review] patch sr=alecf
Attachment #174493 - Flags: superreview?(alecf) → superreview+
Assignee: samir_bugzilla → moz_bugzilla
Checking in xpfe/components/search/resources/search-panel.js; /cvsroot/mozilla/xpfe/components/search/resources/search-panel.js,v <-- search-panel.js new revision: 1.86; previous revision: 1.85 done
Status: NEW → ASSIGNED
checked using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050220 from the tinderbox and the bug is fixed.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
OS: Linux → All
Resolution: --- → FIXED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: