Closed Bug 568952 Opened 14 years ago Closed 14 years ago

Fennec should be able to become a default browser on Android

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: alexp, Assigned: alexp)

References

Details

Attachments

(1 file)

We have to handle the corresponding intents.
Assignee: nobody → alexp
Status: NEW → ASSIGNED
Attached patch FixSplinter Review
Added <intent-filter> entries to AndroidManifest.xml
Depends on the bug 568927 as the Back button must be handled properly to return from Fennec to the app, which opened a browser.
Depends on: 568927
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Er -- what's the point of pushing just the manifest change?  That means that the system will indeed offer to launch Fennec, but once it's launched, it won't actually open the link that the user clicked on because there's nothing that actually handles those intents in our app code...

We need to handle android.intent.action.VIEW and android.intent.action.WEB_SEARCH for this to actually work, no?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
From what I understand we already handle the URL correctly and this was the only change required to make things work.
(In reply to comment #4)
> We need to handle android.intent.action.VIEW and
> android.intent.action.WEB_SEARCH for this to actually work, no?

Everything already works with just the manifest change - both clicking on the
links and search. We do pass the argument to Gecko and the URL gets opened
properly.
I just tested and verified this patch on an N1. Works as expected.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Attachment #448096 - Flags: review+
Yep, verified on build:

Mozilla/5.0 (Android; U; Linux armv71; en-US; rv:1.9.3a4pre) Gecko/20100601 Namoroka/3.7a4pre Fennec/2.0a1pre
Status: RESOLVED → VERIFIED
Flags: in-litmus?
litmus testcase https://litmus.mozilla.org/show_test.cgi?id=12635 created to regression test this bug.
Flags: in-litmus? → in-litmus+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: