Closed Bug 883002 Opened 11 years ago Closed 11 years ago

Add a mozbrowseropensearch event to mozbrowser iframes to allow discovery of OpenSearch providers

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kairo, Assigned: fabrice)

References

Details

(Keywords: dev-doc-complete, feature, uiwanted, Whiteboard: [UCID: Browser12, FT:Browser, KOI:P2])

Attachments

(1 file, 1 obsolete file)

We should support OpenSearch providers in the B2G browser. This may be on the browser or system level, not 100% sure.

See discussion in bug 808732 comment #22 and following.

This probably is the right way to do things like users changing search engines (bug 808732) and supporting multiple search engines (bug 879235).
We will need some additional support from the mozbrowser API here.
No longer blocks: 808732
Keywords: feature, uiwanted
Summary: Support OpenSearch providers → Allow user to add multiple search providers
I think OpenSearch should still be mentioned in the summary here as it is *the* open, cross-browser standard already in existence for that.
Summary: Allow user to add multiple search providers → Allow user to add multiple search providers (via OpenSearch)
A Pivotal Tracker story has been created for this Bug: http://www.pivotaltracker.com/story/show/53546479
Attached patch patch (obsolete) — Splinter Review
This patch adds a 'mozbrowseropensearch' event that sends back the title and href of the search engine.

Try build at: https://tbpl.mozilla.org/?tree=Try&rev=a1e7aa8a3bb4
Assignee: nobody → fabrice
Attached patch patch v2Splinter Review
Updated patch, with tests now passing.
Attachment #777843 - Attachment is obsolete: true
Attachment #778354 - Flags: review?(justin.lebar+bug)
Comment on attachment 778354 [details] [diff] [review]
patch v2

Looks good to me.

>diff --git a/dom/browser-element/mochitest/browserElement_Opensearch.js b/dom/browser-element/mochitest/browserElement_Opensearch.js

FYI this is a pretty old style of test; nowadays we have more clever ways of
doing things (using alert and promises, among other things).  It doesn't matter
for this copypasta, but if you were going to write a test from scratch, I'd say
to avoid this style.
Attachment #778354 - Flags: review?(justin.lebar+bug) → review+
https://hg.mozilla.org/projects/birch/rev/5dfb22ea0888
Component: Gaia::Browser → General
https://hg.mozilla.org/mozilla-central/rev/5dfb22ea0888
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Renaming to more accurately reflect the platform (not user facing) feature that was added in this patch.
Summary: Allow user to add multiple search providers (via OpenSearch) → Add a mozbrowseropensearch event to mozbrowser iframes to allow discovery of OpenSearch providers
Blocks: 897445
Ben Francis deleted the linked story in Pivotal Tracker
Keywords: dev-doc-needed
Whiteboard: [UCID: Browser12, FT:Browser, KOI:P2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: