Closed
Bug 413532
Opened 17 years ago
Closed 16 years ago
Add a <link> tag on search engine pages to install the search engine
Categories
(addons.mozilla.org Graveyard :: Search Plugins, defect)
addons.mozilla.org Graveyard
Search Plugins
Tracking
(Not tracked)
RESOLVED
FIXED
3.2
People
(Reporter: clouserw, Assigned: clouserw)
References
Details
Attachments
(2 files)
1.21 KB,
patch
|
wenzel
:
review+
|
Details | Diff | Splinter Review |
49.71 KB,
image/jpeg
|
Details |
This was originally from bug 404373#13 but I think it should be it's own bug: > Basil Hashem [:baz] 2008-01-18 19:38:37 PST (In reply to comment #13) > With the new design on AMO v3.2 search engines are now each getting a dedicated > page like any other addon. Please consider adding a <link rel> type tag into > the page header so that users can install those engines via the Firefox Search > bar. The behavior is that Firefox would highlight in blue if that engine is not > installed. > > See > http://developer.mozilla.org/en/docs/Creating_OpenSearch_plugins_for_Firefox#Autodiscovery_of_search_plugins. > Apparently, you are allowed to publish more than one search engine for > autodiscovery so we don't necessarily have to take out the current AMO Search > autodiscovery that's there right now. >
Updated•16 years ago
|
Target Milestone: --- → 3.2
Assignee | ||
Comment 1•16 years ago
|
||
Add a check for a search engine. Pretty sure this is all we need. We could easily move this logic into the controller if we wanted too.
Attachment #308953 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #308953 -
Flags: review? → review?(fwenzel)
Comment 2•16 years ago
|
||
When search engines appear on a list, like as search results or in a category listing, do we need to add the link tags too (one for each of them)?
Assignee | ||
Comment 3•16 years ago
|
||
I don't see much benefit to that, so I'd vote no.
Comment 4•16 years ago
|
||
Okay I like your patch but I think you should add the code to the controller instead because it makes an assumption about the $addon array that may not be true for each and every case where $addon is used as a view variable. So I think it'd be cleaner to have this happen in the controller instead. I seem to remember fligtar added a variable (or function?) that you can use to add arbitrary tags to the html header from the controller.
Assignee | ||
Comment 5•16 years ago
|
||
(In reply to comment #4) > I seem to remember fligtar added a variable (or function?) that you can use to > add arbitrary tags to the html header from the controller. > I looked for an $extra_headers variable but didn't see one. /me looks for a function
Comment 6•16 years ago
|
||
Comment 7•16 years ago
|
||
(In reply to comment #5) > I looked for an $extra_headers variable but didn't see one. /me looks for a > function Okay if you don't find anything, please add this possibility, it can come in handy elsewhere too. Make sure to make it an array, so it's easy to add stuff.
Comment 8•16 years ago
|
||
Comment on attachment 308953 [details] [diff] [review] add <link> Hm, it smells a little hacky but we looked at different ways of doing it and each of those was worse than this, so let's do it this way then.
Attachment #308953 -
Flags: review?(fwenzel) → review+
Assignee | ||
Comment 9•16 years ago
|
||
r11248
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•