Closed
Bug 1203413
Opened 10 years ago
Closed 10 years ago
dxr should offer opensearch plugin
Categories
(Webtools Graveyard :: DXR, defect)
Webtools Graveyard
DXR
Tracking
(firefox43 affected)
RESOLVED
DUPLICATE
of bug 813521
| Tracking | Status | |
|---|---|---|
| firefox43 | --- | affected |
People
(Reporter: rhelmer, Unassigned)
Details
Websites can offer to install an opensearch plugin, which adds a website as a search provider in the Firefox search box: https://developer.mozilla.org/en-US/Add-ons/Creating_OpenSearch_plugins_for_Firefox
For instance (if you don't already have it installed) on any https://bugzilla.mozilla.org page you should see see a green "+" in the search bar, and if you click it there is an offer to "Add Bugzilla@Mozilla".
DXR should offer this too, to make it easier to search DXR from Firefox.
| Reporter | ||
Comment 1•10 years ago
|
||
Search suggestions would be really nice as well! However would require some work on the server-side so maybe better as a separate plug (just adding a plain search plugin would be simpler than doing this as well):
https://developer.mozilla.org/en-US/docs/Supporting_search_suggestions_in_search_plugins
| Reporter | ||
Comment 2•10 years ago
|
||
(In reply to Robert Helmer [:rhelmer] from comment #1)
> work on the server-side so maybe better as a separate plug (just adding a
separate *bug* that is.
| Reporter | ||
Comment 3•10 years ago
|
||
I think all you really need is this in your HTML output:
<link rel="search" type="application/opensearchdescription+xml" title="Mozilla DXR" href="dxr.xml">
dxr.xml should contain something along the lines of:
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Mozilla DXR</ShortName>
<Description>Search engine for Mozilla source code</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image height="16" width="16" type="image/x-icon">https://dxr.mozilla.org/static/icons/search.png</Image>
<Url type="text/html" method="get" template="https://dxr.mozilla.org/mozilla-central/search?q={searchTerms}"/>
</OpenSearchDescription>
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•5 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•