OpenSearch support doesn't honour 'pageOffset' and 'indexOffset' attributes of description

NEW
Unassigned

Status

()

P5
minor
Rank:
59
13 years ago
3 years ago

People

(Reporter: evan, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fxsearch], URL)

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1b2) Gecko/20060601 BonEcho/2.0b2 (Ubuntu-edgy)
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1b2) Gecko/20060601 BonEcho/2.0b2 (Ubuntu-edgy)

For OpenSearch, it's possible to define a search engine whose first search result is numbered "0", and first page of search results is numbered "0", too. This is done using the "indexOffset" and "pageOffset" parameters on the Url element of the OpenSearchDescription document. The default for each is "1".

Even when the attribute is set in the OpenSearch description, Firefox requests the first search results with startIndex = 1.

Reproducible: Always

Steps to Reproduce:
1. Create an OpenSearch description with indexOffset = 0.
2. Add the description to Firefox.
3. Do a search.

Actual Results:  
The startIndex parameter is set to 1.

Expected Results:  
The startIndex parameter should be unset or set to 0.

Leaving out the startIndex parameter template from the OpenSearch description gives normal functionality. Since Firefox doesn't do paged or indexed searches, it's a moot point, but IWBNI the software would follow the standard.

Updated

13 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Yeah, we don't support indexOffset or pageOffset, because when I was implementing the OpenSearch support that parameter wasn't yet finalized.
Assignee: nobody → gavin.sharp
OS: Linux → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → Firefox 3 alpha1
Version: unspecified → Trunk
Status: NEW → ASSIGNED
Target Milestone: Firefox 3 alpha1 → ---
Assignee: gavin.sharp → nobody
Status: ASSIGNED → NEW
Priority: P3 → --

Comment 2

11 years ago
In the renewal MDC, Search engine( http://developer.mozilla.org/@gui/opensearch/description ) have indexOffset attribute set to "0".
Then if use this search engine, Search results don't show 1st hit page always.
Duplicate of this bug: 461105
Created attachment 378799 [details] [diff] [review]
WIP

had this lying around in a tree...
Priority: -- → P5
Whiteboard: [fxsearch]

Updated

3 years ago
Rank: 59
You need to log in before you can comment on or make changes to this bug.