Commit Graph
2909 Commits
Author SHA1 Message Date
Jan Henning 867fc10322 Bug 1251362 - Part 7 - Update closed tabs count in the History panel main view. r=liuche
We need to update the recent tabs count displayed by the smart folder as necessary. To do this, we copy the approach used for updating the synced devices count.

MozReview-Commit-ID: BFwv5bY1DWk
2016-05-14 20:35:07 +02:00
Jan Henning d0211f9800 Bug 1251362 - Part 6 - Update empty panel state when recent tabs count changes. r=liuche
The recent tabs count might change while the Recent Tabs folder is open, e.g. immediately after startup, once we receive the first "ClosedTabs:Data" message from the session store. Therefore, we need to hide/unhide the empty view as necessary, which is normally handled by the Combined History panel's updateEmptyView() function. Since we aren't using a cursor, we can't hinge calling that on the CursorLoader's onLoadFinished() callback, so instead, we include our own callback to the Combined History panel, modelled after the DeviceUpdateHandler used for updating the count of synced devices.

MozReview-Commit-ID: GLHM9LoWk2h
2016-05-15 01:41:45 +02:00
Jan Henning ecaf8b19d9 Bug 1251362 - Part 5 - Actually show recently closed tabs when opening the smart folder. r=liuche
This fills the new smart folder we've previously added with life and displays the recently closed tabs as we receive them from the session store. If we can find a sessionstore.bak file (previously the "Tabs from last time"), we also add those tabs to the bottom of the list.

Most of the code for communicating with the session store and reading sessionstore.bak is adapted from the original Recent Tabs panel, however unlike the previous implementation, I've opted for a cursor-less approach of storing and retrieving the recent tabs data, since the recent tabs data isn't actually powered by a database anyway. Instead, the RecentTabsAdapter maintains two arrays for storing "Recently closed tabs" (as received through messages from the Gecko session store) and "Tabs from last time" (as read from sessionstore.bak during panel initialisation).

Also, as per the other Combined History panel adapters and because we're now using a RecyclerView instead of a ListView, list item types are now determined on demand through getItemTypeForPosition() instead of precalculating them during a data update and directly storing together with the tab data items in a cursor.

MozReview-Commit-ID: IpoUr9f0JBP
2016-06-02 18:08:23 +02:00
Jan Henning 781189817a Bug 1251362 - Part 4 - Add a Recent Tabs folder to the Combined History panel. r=liuche
This folder can be opened and closed to get back to the history view, however it doesn't contain any actual content (closed tabs) yet. Its empty view is based on the original empty view of the Recent Tabs panel.

For displaying the recently closed tabs count within the smart folder similarly to how we display the number of synced devices, two new strings need to be added.

MozReview-Commit-ID: IAL0yDrc2Ld
2016-05-13 23:52:24 +02:00
Jan Henning cc8d88a346 Bug 1251362 - Part 2 - Import OnPanelLevelChangeListener.PanelLevel. r=liuche
OnPanelLevelChangeListener.PanelLevel.CHILD_SYNC really is a mouthful.

MozReview-Commit-ID: 3uEHQjUlTxf
2016-05-15 01:24:13 +02:00
Justin D'Arcangelo a36a3680c8 Bug 1272102 - FlyWeb Android UI delta patch - last push was not final version of patch. r=sebastian 2016-06-09 12:06:20 -04:00
Michael Comella f0ed2c4494 Bug 1079874 - Define device configuration in inflated resources. r=sebastian
See the added code comments for motivations.

Note that this is a speculative patch - I was unable to reproduce the crash and
thus do not know if it fixes it, however, I did test that the appropriate
toolbar configuration is created on vanilla Android for phone & tablet.

MozReview-Commit-ID: 2v1Ix8X68LH
2016-06-01 14:49:29 -07:00
Sebastian Kaspari cf59bd0845 Bug 1270068 - TopSitesGridAdapter: Implement getItemId() so that Android can recycle views appropriately. r=grisha
MozReview-Commit-ID: 5mwPOTcIRRs
2016-06-07 14:34:36 +02:00
Carsten "Tomcat" Book 5e6211061e merge mozilla-inbound to mozilla-central a=merge 2016-06-07 15:23:03 +02:00
[email protected] ced5477ae2 Bug 1263726 - Settings title remains as "Language" after switching locale and returning to "General Settings". r=grisha
MozReview-Commit-ID: L4hPzJ7kRc5
2016-06-06 16:59:09 -07:00
Wes Kocher 9c18ced713 Merge m-c to inbound, a=merge 2016-06-06 17:14:49 -07:00
Carsten "Tomcat" Book 95538c193e Merge mozilla-central to fx-team 2016-06-06 12:03:36 +02:00
Carsten "Tomcat" Book 04e53ce4f5 merge mozilla-inbound to mozilla-central a=merge 2016-06-06 11:55:56 +02:00
Andrzej Hunt ab507660fa Bug 1265708 - Post: query topsites metadata by URL without ref too r=sebastian
MozReview-Commit-ID: KzbKJjRm4Za
2016-06-03 14:05:42 -07:00
Andrzej Hunt 453a088830 Bug 1265708 - Strip ref from URL when adding homescreen icons r=sebastian
We add URL metadata based on the base URL, we should retrieve it this way too.

MozReview-Commit-ID: ICP54V5vRgv
2016-06-03 14:05:29 -07:00
Andrzej Hunt 6a43623538 Bug 1265708 - Pre: make getForURLs arguments more generic r=sebastian
MozReview-Commit-ID: IkPiLVB5mop
2016-06-02 14:25:05 -07:00
Andrzej Hunt 35f8e704ef Bug 1265708 - Pre: Implement StringUtils.stripRef r=sebastian
MozReview-Commit-ID: AO25iiUMXLE
2016-06-05 17:37:12 -07:00
Andrzej Hunt f57c002267 Bug 1265708 - Pre: remove unused variable r=sebastian
We already pass the URL inside the JSON object.

MozReview-Commit-ID: J4RjxLAzdI
2016-06-02 13:51:52 -07:00
Jim Chen 4b43fa8c34 Bug 1277064 - Use ConcurrentHashMap for profile cache; r=snorp
Use ConcurrentHashMap for the profile cache so that accessing the cache
won't cause inadvertent deadlocks.
2016-06-03 12:01:17 -04:00
Carsten "Tomcat" Book 3d11ccd8c4 merge mozilla-inbound to mozilla-central a=merge 2016-06-03 12:00:06 +02:00
Michael Comella 4bbd70b22a Bug 1277214 - Move MOZ_DISABLE_* to single MOZ_IN_AUTOMATION env var. r=grisha
We hit an issue where adding a new env var, MOZ_DISABLE_TELEMETRY, added env10
and caused crashes. I suspect the issue is that there are is now a double-digit
number of env vars (bug 1277390). Here, we do the quick fix by removing
MOZ_DISABLE_TELEMETRY & repurposing MOZ_DISABLE_SWITCHBOARD to be generic.

While we're at it, we simplify the code by making the setDisabled methods a
strict getter without checking for how many times they're called.

MozReview-Commit-ID: 19DDbVYRZ2
2016-06-01 16:46:44 -07:00
Michael Comella cc036a4379 Bug 1277214 - Stop reading env vars when the key no longer exists. r=grisha
In the previous implementation, we'd stop reading when the value would return
null, however, this breaks with SafeIntents where null is returned if a value
throws a runtime exception - i.e. we might stop reading at env2 if it throws
even though env3+ exist.

MozReview-Commit-ID: 7iZgUAjBSmB
2016-06-01 16:29:26 -07:00
Michael Comella 01286d63ef Bug 1277214 - Use SafeIntent in getEnvVarMap. r=grisha
MozReview-Commit-ID: 5eXjgCsd6Rl
2016-06-01 15:34:34 -07:00
Michael Comella 32967ac99d Bug 1277214 - Move remaining SafeIntentUtils functions to IntentUtils. r=grisha
I feel this better follows the util class pattern: IntentUtils acts on Intents
as StringUtils would act on Strings.

MozReview-Commit-ID: 7n2B9q1KlSy
2016-06-01 15:32:41 -07:00
Michael Comella d9505084d4 Bug 1277214 - Move SafeIntent to its own class. r=grisha
This gets used often enough that it's annoying to do full class name imports.

MozReview-Commit-ID: 7Yhp1NCgwQw
2016-06-01 15:27:41 -07:00
Michael Comella 7a1dc96e96 Bug 1277214 - Add javadoc to explain SafeIntent. r=grisha
MozReview-Commit-ID: LqQm6yAKbr5
2016-06-01 15:21:36 -07:00
Carsten "Tomcat" Book c1eab00352 merge mozilla-inbound to mozilla-central a=merge 2016-06-02 11:56:07 +02:00
Michael Comella 978da7068c Bug 1273689 - review - remove inner class & move methods to containing class; use BrowserAppDelegateWithReference. r=me
It's all a little cleaner.
2016-06-01 17:46:19 -07:00
Michael Comella 970a907a63 Bug 1273689 - Rename CorePingDelegate. r=sebastian
We are doing more than just uploading in the delegate now.

I didn't fix this in the previous commits because version control makes this
non-trivial.

MozReview-Commit-ID: IjXsQC19k2S
2016-05-31 15:39:58 -07:00
Michael Comella b3e0e5bb82 Bug 1273689 - Upload in onStop for first run. r=sebastian
MozReview-Commit-ID: 4UReiDeNCg4
2016-05-31 15:32:41 -07:00
Michael Comella 1c76935a01 Bug 1273689 - Move session measurement calls to CorePingDelegate. r=sebastian
MozReview-Commit-ID: EPLUd5Uq0Pc
2016-05-31 14:16:04 -07:00
Michael Comella 6aae01e6dd Bug 1273689 - Factor out getSharedPreferences call. r=sebastian
The same preferences will be used by the new code & the old code.

MozReview-Commit-ID: BXuSQjhhXQq
2016-05-31 14:07:26 -07:00
Michael Comella 1a5cbe30ae Bug 1273689 - Elaborate on why we upload when we do. r=sebastian
MozReview-Commit-ID: DIxkY3F3Z6S
2016-05-31 15:32:04 -07:00
Michael Comella 909169ed3b Bug 1273689 - Move core ping upload to BrowserAppDelegate. r=sebastian
This lets us put the two paths of upload code all in the same place.

MozReview-Commit-ID: BUsdyEAcdDO
2016-05-31 13:57:44 -07:00
Andrzej Hunt d217b914c3 Bug 1276050 - Remove duplicate code from Favicons r=sebastian
loadUncachedFavicon does exactly the same thing.

MozReview-Commit-ID: 58Yi28JZfv4
2016-05-23 13:27:26 -07:00
Grigory Kruglov 7fc2fbaf5e Bug 1274029 - Part 4: Update aggregates during history import from android browser r=sebastian
MozReview-Commit-ID: EaR15lbuDQm
2016-06-01 12:38:51 -07:00
Grigory Kruglov 60acbb9000 Bug 1274029 - Part 3: Update aggregates during syncing r=sebastian
MozReview-Commit-ID: 9WyBE0Lk3Tp
2016-06-01 15:02:46 -07:00
Grigory Kruglov 11ca3213d1 Bug 1274029 - Part 2: Update aggregates during local browsing r=sebastian
MozReview-Commit-ID: 9Z9uFKxbRZm
2016-05-27 23:50:29 -07:00
Grigory Kruglov d3e13ebbe2 Bug 1274029 - Part 1: Database migration; initial aggregates calculation r=sebastian
MozReview-Commit-ID: 7nR2pwGV7nE
2016-06-01 12:40:19 -07:00
Grigory Kruglov d877d3a7b8 Bug 1274029 - Pre 2: Correct old comments about combined view r=grisha
MozReview-Commit-ID: IiePFWmkPKZ
2016-06-01 12:25:36 -07:00
Sebastian Kaspari 10bba0403c Bug 1276910 - Do not show "Add to home screen" prompt in private browsing. r=margaret
MozReview-Commit-ID: DFoMnyx4Gde
2016-06-01 10:02:51 +02:00
Carsten "Tomcat" Book 6bdfa2f993 merge mozilla-inbound to mozilla-central a=merge 2016-06-01 15:07:48 +02:00
Michael Comella b89d35c15c Bug 1277071 - Move PREF_SEQ_COUNT to CorePingBuilder. r=jonalmeida
MozReview-Commit-ID: 44R0ahE094N
2016-05-31 16:33:08 -07:00
Michael Comella 99dad28b68 Bug 1270191 - Correct my previous patches to more faithfully reproduce the refactored code. r=liuche
The previous code checked:

if (env.startsWith("MOZ_DISABLE_SWITCHBOARD=")) {
    if (!env.endsWith("=")) {

So it would not pass with the empty String but my previous revision permitted
the empty string.

Practically speaking, I don't think it matters because this is only used in
remoteautomation.py where the value is 1, but better safe than sorry.

MozReview-Commit-ID: DLtmvWlQYs7
2016-05-31 17:25:17 -07:00
Michael Comella b9e03216b1 Bug 1270191 - Disable telemetry upload during tests. r=grisha
MozReview-Commit-ID: GoQQRfGRvd4
2016-05-31 17:04:40 -07:00
Michael Comella 7ef729e431 Bug 1270191 - Move Experiments to env var solution. r=grisha
MozReview-Commit-ID: 5Rpdyg7zpNG
2016-05-31 17:04:25 -07:00
Michael Comella 2aaf96cb5e Bug 1270191 - Add IntentUtils.getEnvVarMap. r=grisha
MozReview-Commit-ID: 7ojczu4rOnD
2016-05-31 16:48:03 -07:00
Chenxia Liu ac9fb8da09 Bug 1276374 - Remove firstrun Content Notifications slide. r=ahunt
MozReview-Commit-ID: CIkvOZrqHwT
2016-05-31 15:35:29 -07:00
Chenxia Liu 58ce846c2f Bug 1275782 - Disable "search-term" experiment. r=ahunt
MozReview-Commit-ID: FQY76x04Ilo
2016-05-31 15:49:51 -07:00
Kannan Vijayan 8ce9202ed6 Bug 1272101 - Changes in preparation for FlyWeb landing. Add nsINetworkInfoService and implementation for various platforms. r=hurley 2016-06-01 16:16:40 -04:00