Open Bug 1100670 Opened 10 years ago Updated 10 years ago

Port |Bug 990799 - Update search plugins to use rel="searchform"| to SeaMonkey

Categories

(SeaMonkey :: Search, defect)

defect
Not set
normal

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

References

Details

Attachments

(1 file)

Bug 990799 added rel="searchform" to the search engine rather than as a separate entry, those changes should be reflected in SeaMonkey.
Attachment #8524172 - Flags: review?(neil)
Comment on attachment 8524172 [details] [diff] [review]
Move rel="searchform"

>-<Url type="text/html" method="GET" template="https://www.google.com/search">
>+<Url type="text/html"
>+     method="GET"
>+     template="https://www.google.com/search"
>+     rel="searchform">
>   <Param name="q" value="{searchTerms}"/>
>   <Param name="ie" value="utf-8"/>
>   <Param name="oe" value="utf-8"/>
>   <Param name="aq" value="t"/>
>   <!-- Dynamic parameters -->
>   <Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
>   <MozParam name="client" condition="defaultEngine" trueValue="seamonkey-a" falseValue="seamonkey"/>
> </Url>
>-<Url type="text/html"
>-     method="GET"
>-     template="https://www.google.com/"
>-     rel="searchform"/>
> </SearchPlugin>
Sorry, but I don't like the way that this changes the URLs that an "empty" search (e.g. Ctrl+Shift+S with no search bar) uses, e.g. it no longer goes to google.co.uk; is this expected?
Attachment #8524172 - Flags: review?(neil) → review-
> Sorry, but I don't like the way that this changes the URLs that an "empty"
> search (e.g. Ctrl+Shift+S with no search bar) uses, e.g. it no longer goes
> to google.co.uk; is this expected?
IanN wanted me to use rel=searchform for the duckduckgo searchengine so I dug around devmo (woefully out of date) and bugzilla.
What I *think* happens is that:
1. <searchForm> takes priority. If it doesn't exist
2. look for rel="searchform" and take the (complete) template as the searchform URL. If this doesn't exist:
3. Take the url from the template of the <Url type="text/html ...> and extract the prepath as the searchform.

So for e.g. eBay you need a separate <SearchForm>.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: