Commit Graph
14 Commits
Author SHA1 Message Date
Richard Newman e03ea96bcf Bug 1123688 - Set BrowserDB factory in application startup, not only for GeckoApp subclasses. r=bnicholson
The issue: only by launching GeckoApp (or a subclass) did we specify what kind of DB we wanted. If we don't specify, we get a StubBrowserDB.

The search activity is not a GeckoApp, but it does implicitly access a profile.

The same is true for Sync: a background Sync would eventually cause the CP to touch GeckoProfile to get the profile directory.

Both of these avenues will poison the GeckoProfile cache, storing a profile with a database member that's a StubBrowserDB.

If you subsequently launched the browser you'd get that GeckoProfile instance from the profile cache. StubBrowserDB deliberately returns null for some queries -- such as getTopSites. That causes us to throw here.

The solution I chose: have *GeckoApplication* specify which kind of DB to use, and then have WebappImpl (the only subclass for which we want different behavior) override it.

GeckoView consumers remain unaffected, because they have their own Application class, and so the usual GeckoProfile fallback applies.
2015-01-22 20:23:38 -08:00
Richard Newman 62fa7b6eee Bug 1077590 - Part 1: make all per-profile DB access go through a profile. r=wesj
* * *
Bug 1077590 - Review comments.
2015-01-11 20:45:09 -08:00
Mark Finkle 98f8a492a4 Bug 937253 - Make pinned tabs work for Homescreen shortcuts r=bnicholson 2015-01-07 23:53:28 -05:00
Richard Newman 9d0c3c4a96 Bug 1090385 - More robust handling of external intents. r=snorp 2014-10-28 14:28:31 -07:00
Chris Kitching 5a6ad29b3e Bug 1081597: Refactor some branches. r=rnewman
* * *
Bug 1081597: Refactor some branches. r=rnewman
2014-10-12 01:41:42 +01:00
Chris Kitching 16733ab9af Bug 1064644: Remove inner-access comments. r=rnewman 2014-09-08 18:11:51 -07:00
Chris Kitching 7e45bcd2dc Bug 1051706: Reduce use of proxy methods and generated getters in 'other' code. r=rnewman 2014-07-28 17:32:59 -07:00
Chris Kitching 6c49e51198 Bug 1041836: Delete redundant initialisers. (generated) r=rnewman 2014-07-25 20:14:47 -07:00
Richard Newman 6a92b2a80a Bug 1021443 - java.lang.IllegalStateException: Already registered Webapps:Postinstall under a different type. r=jchen 2014-06-05 19:38:01 -07:00
Clemens Wilding f2ee4ae94d Bug 920855 - Replace java.net.URL with java.net.URI wherever possible. r=rnewman 2014-04-16 08:42:15 -07:00
Myk Melez c808a1ff0a Bug 968129 - load initial tab in WebappImpl:loadStartupTab; r=mfinkle 2014-04-01 23:32:42 -07:00
Myk Melez 02c150a3d3 Bug 982559 - use intent data to start app from legacy shorcut; r=wesj 2014-03-28 11:27:46 -07:00
Myk Melez 656d2e8958 Bug 982557 - migrate old prefs and set apkPackageName after updating app via APK; r=mfinkle 2014-03-22 14:26:43 -07:00
Martyn Haigh 32b676b4dd bug 958358 - make webapp capitalisation consistent; r=wesj 2014-02-11 23:41:05 -08:00