Closed Bug 1048901 Opened 10 years ago Closed 3 years ago

Ensure that BrowserProvider functions correctly prior to initial profile construction

Categories

(Firefox for Android Graveyard :: Data Providers, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: rnewman, Unassigned)

References

Details

BrowserDB is intended to be used from Fennec, not from arbitrary other code -- that's what BrowserProvider is for.

But BrowserProvider doesn't have the power to completely init a profile. That requires distribution processing, creating directories, writing to profiles.ini, etc.

I'm pretty sure we already checked that the behavior was acceptable to Sync (probably failure if the profile doesn't exist), but we should see what happens with the Share activity:

* It might, being an activity, trigger post-install referrer intent handling, and accidentally launch the browser.

* It might do so and just init the profile (perhaps only for distribution users), which would be great.

* It might drop the post-install referrer intent on the ground, which would not be cool.

* We might be able to recognize this situation and open Firefox, then redeliver the share intent.

* We might elect to fix this, either by initing the profile from the share overlay service, or by allowing BrowserProvider to create parts of the profile.


Step 1 is to figure out what happens if you share right after a clean install.

This is not a hard blocker to Bug 1044794; definitely for Nightly, I don't mind if we just drop shares on the floor if you've never opened the browser.
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.