Closed Bug 736216 Opened 13 years ago Closed 5 years ago

Provide a way for Sync to query if a database exists yet

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(blocking-fennec1.0 -)

RESOLVED INCOMPLETE
Tracking Status
blocking-fennec1.0 --- -

People

(Reporter: wesj, Unassigned)

Details

Add a new content provider so that sync can query what's going on. It can provide info on whether a database exists yet, and whether Gecko is currently running and can set up the database (aka, "check back soon!" vs. "its gonna be a while"). I think maybe we can just have a special path for the forms/password/other things inheriting GeckoProvider for this. When we look up the table name, we can just short circuit these to return... something. Probably only on query or inserts to this fake "table".
blocking-fennec1.0: --- → ?
rnewman notes that is not quite correct. The DB should be created in the content provider's onCreate()
"This shouldn't be necessary; databases should be set up within onCreate. The only reason for having a "control" URI (as BrowserProvider does) is to support migration. (Which necessarily takes longer than we can wait.) If setup can be done within a minute or two (and if it can be done on first run, that must be the case), just block the CP operation and do it." -- rnewman
Control URI: Bug 725150 Note that that's not "does this database exist?" it's "should I hold off because something else is adding data to these that I want to wait for?". If a database doesn't exist, it's the CP's job to create it. If that involves loading some part of Gecko, then so be it...
mobile triage: (-) & do we even need this bug anymore? can we close it? mfinkle & blassey believe the silent start of fennec addresses the underlying issue.
blocking-fennec1.0: ? → -
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: 5 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.