Commit Graph
2909 Commits
Author SHA1 Message Date
Carsten "Tomcat" Book 3cbd63ba3a Merge mozilla-central to mozilla-inbound 2016-06-01 15:10:05 +02:00
Alastor Wu d661c9b9ee Bug 1240423 - part1 : implement the remote media-control on Fennec. r=ahunt
MozReview-Commit-ID: GjkSCy5ecbQ
2016-06-01 10:26:01 +08:00
Sebastian Kaspari bbd4f38654 Bug 1207739 - SearchEngineBar: Fix calculation to determine number of search engines to display. r=ahunt
If we cannot display all search engines then we want to show a smaller number so that the last one is
cut-off (we only display half of it). The previous version did not calculate the next smallest half
correctly: Instead of displaying 3.5 engines if we have space for 3.7 engines, we only displayed 2.5.

MozReview-Commit-ID: KfopL9td3ba
2016-06-06 16:28:27 +02:00
Sebastian Kaspari ae5d684967 Bug 1278255 - MediaControlService: Set correct action title. r=ahunt
MozReview-Commit-ID: 5QT7zFQIMTF
2016-06-06 16:55:26 +02:00
Andrzej Hunt c165d7fa13 Bug 1264783 - Use Hardware layers for tabs curve (except on pre-lollipop) r=sebastian
On Android N, the tab button flickers when drawing animations such as the loading progress bar,
or even the tab count increment, over the tabs button. Using hardware layers appears to fix
this. For consistency we could use this across most devices, except those running 4.4 or earlier.
There the button background (light gray) is drawn black with hardware layers, so we should stick
with the default on such devices.

MozReview-Commit-ID: H5VWEkrRbVf
2016-06-03 15:12:54 -07:00
Carsten "Tomcat" Book 9e09b1ce30 Backed out changeset f685593ac3cc (bug 1265708) for android bustage 2016-06-04 09:26:43 +02:00
Carsten "Tomcat" Book 1aed448a6b Backed out changeset 974090a524da (bug 1265708) 2016-06-04 09:24:16 +02:00
Carsten "Tomcat" Book 3533351cc6 Backed out changeset 047961bdb4ad (bug 1265708) 2016-06-04 09:24:15 +02:00
Carsten "Tomcat" Book 2f2c6b3f7e Backed out changeset e994f70de049 (bug 1265708) 2016-06-04 09:24:14 +02:00
Carsten "Tomcat" Book 708bdf881a Backed out changeset 67c37ed1a25f (bug 1265708) 2016-06-04 09:24:11 +02:00
Andrzej Hunt 6398453529 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 0c4cd8ad5f 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 103920f3a5 Bug 1265708 - Pre: make getForURLs arguments more generic r=sebastian
MozReview-Commit-ID: IkPiLVB5mop
2016-06-02 14:25:05 -07:00
Andrzej Hunt 5093b06b6a Bug 1265708 - Pre: Implement StringUtils.stripRef r=sebastian
MozReview-Commit-ID: AO25iiUMXLE
2016-06-03 14:04:39 -07:00
Andrzej Hunt e7a6896b35 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
Krishna 521cf91baf Bug 1276577 - Using Switchboard.isInExperiment() r=sebastian
MozReview-Commit-ID: F4X1KbLXfqM
2016-05-31 01:16:14 +08:00
Michael Comella 974a14282f Bug 1275669 - Do not enable adjust if we are in automation. r=grisha
MozReview-Commit-ID: 9i10xv6nZem
2016-06-02 13:21:40 -07:00
Jonathan Almeida (:jonalmeida) 343b507be3 Bug 1274901 - NullPointerException thrown in Tabs.java should be checked r=mcomella
MozReview-Commit-ID: 2hMZn75BpeT
2016-05-24 15:08:52 -07:00
Andrzej Hunt 2929e5501d Bug 1277854 - Post: add comment explaining local loading r=sebastian
MozReview-Commit-ID: J8eJrzkExeX
2016-06-03 10:51:18 -07:00
Andrzej Hunt 5f147fa139 Bug 1277854 - Back out bug 1276050 to ensure we load only local favicons when requested r=sebastian
(Backed out changeset 9575e608cabe)

loadUncachedFavicon allows loading favicons from the internet, whereas
getSizedFaviconForPageFromLocal restricts itself to the favicon cache.
(LoadFaviconTask's last parameter is (boolean) onlyFromLocal, which is
set to true in getSizedFaviconForPageFromLocal.

We could probably replace this with an Enum to make the parameter's purpose
more obvious.

MozReview-Commit-ID: C9uwcG0h0N
2016-06-03 10:40:49 -07:00
Andrzej Hunt 2fcfebc0a9 Bug 1276977 - remove unused variable and call r=liuche
Apparently this code can crash despite the nullcheck, let's completely
remove it since we don't use the results.

MozReview-Commit-ID: CzHn8kABLYd
2016-06-02 14:54:32 -07:00
Andrzej Hunt 19b578479d Bug 1245692 - Force height for CalendarView on pre-lollipop r=sebastian
By default CalendarView doesn't receive sufficient height on pre-lollipop
devices, in fact the entire dialog won't even appear unless we manually
assign height. This is slightly hacky, but necessary to ensure correct
layouting. (We previously assigned both height and width to the CalendarView,
however that results in all kinds of odd behaviour - this change is necessary
only to have acceptable behaviour on older devices.)

MozReview-Commit-ID: H7wzHsrOJy4
2016-06-03 08:48:05 -07:00
Andrzej Hunt e68f73921d Bug 1245692 - Make CalendarView use full width of dialog r=sebastian
Squashing CalendarView makes it look bad and hard to use - by allowing
it to expand to the dialog width we get a usable CalendarView.

Note that this breaks on Android 4.x. On these devices CalendarView is
implemented using a ListView, which for some reason isn't given
any space during layouting - this results in the actual days in the month
being hidden (we do however see the weekday titles / month title).

MozReview-Commit-ID: wHNx1xG3JK
2016-05-27 10:29:04 -07:00
Andrzej Hunt 98955279bb Bug 1245692 - Always use CalendarView for date selection r=sebastian
Our current decision criteria is arbitrary: there's no good reason not
to use a CalendarView here. Moreover our previous criteria would result
in small tablets showing different views depending on orientation (Nexus 7:
CalendarView in landscape, pickers in portrait mode).

MozReview-Commit-ID: 8H0HTmCnzfP
2016-06-03 09:03:49 -07:00
Kit Cambridge 67d93f9b81 Bug 1265593 - Forward app server keys to Autopush on Android. r=nalexander
MozReview-Commit-ID: 3J4mM1k0pcY
2016-03-22 12:09:31 -07:00
Alastor Wu b2543fcbfc Bug 1257738 - part2 : modify logic of requesting audio focus in Android.
MozReview-Commit-ID: AG095CIgnA5
2016-06-01 10:21:58 +08:00
Michael Comella 7798863889 Bug 1275880 - Correct action mode styling. r=liuche
MozReview-Commit-ID: H7up9G5vlcg
2016-05-27 12:49:55 -07:00
Michael Comella 9c870d2306 Bug 1275880 - Give preferences action bar the correct config & delete unused. r=liuche
MozReview-Commit-ID: DavXaecwtux
2016-05-26 10:28:33 -07:00
Carsten "Tomcat" Book 3fb7f88dec Backed out changeset ca182106b9e6 (bug 1264815) for bustage 2016-05-31 07:05:17 +02:00
Carsten "Tomcat" Book 20891e607d Backed out changeset 20d0b05e708b (bug 1264815) 2016-05-31 07:05:01 +02:00
SUN Haitao b5ed19b68a Bug 1264815 - Add a 'showPersistentAlertNotification' method to GeckoAppShell. r=wchen 2016-04-17 21:18:20 +08:00
SUN Haitao fdbf33dbc0 Bug 1264815 - Add a 'data' parameter to GeckoThread.createServices; r=jchen 2016-04-16 14:19:37 +08:00
Carsten "Tomcat" Book 3a9cae6c4f Merge mozilla-central to fx-team 2016-05-30 15:31:42 +02:00
Jan Henning 494b5706a1 Bug 905223 - Part 2 - Move session data parsing into a background thread. r=jchen
Parsing the session store JSON data to restore the last session's tabs is both
- computationally relatively expensive
- involving disk I/O

therefore, we shouldn't be doing it on the main thread.

To make sure the session data is actually ready, subsequent code running from a different thread that needs to access it (loading the startup tab, the Recent Tabs panel reading the "Tabs from last time") checks that session store data processing has actually finished and waits if necessary.

MozReview-Commit-ID: EYf1fdglIrA
2016-04-23 22:36:46 +02:00
Jan Henning 253608c323 Bug 905223 - Part 1 - Factor out external URL calculation. r=margaret
For session data parsing, we need to know whether we were invoked with an external URL or not. Since we want to move session data parsing forward to an earlier point in time, but also continue needing that external URL info during initialize() as well, we'll factor out those calculations into their own functions which can then be called from both places.

MozReview-Commit-ID: HFlT8uxC9yz
2016-04-23 20:08:58 +02:00
Jan Henning 436963861f Bug 905223 - Part 0 - Add target API annotations to get rid of errors in Android Studio. r=margaret
Android Studio doesn't recognise our version guards and is consequentially always showing two errors in GeckoApp, which makes it more difficult to spot when you've introduced an actual error.

MozReview-Commit-ID: LpNIwHOhEWE
2016-04-23 22:29:03 +02:00
Carsten "Tomcat" Book b05930f50e merge mozilla-inbound to mozilla-central a=merge 2016-05-25 15:04:00 +02:00
Andrzej Hunt 79db798cc7 Bug 1246159 - Add histogram probe for disk space used by reader view cache r=mcomella
MozReview-Commit-ID: 4r1yvWZ4lid
2016-05-12 13:37:58 -07:00
Andrzej Hunt d850dfc59d Bug 1246159 - Pre: implement SavedReaderViewHelper.getBytesUsed r=mcomella
MozReview-Commit-ID: EJ81q6f515q
2016-05-24 15:01:17 -07:00
Andrzej Hunt 8e6be2b490 Bug 1246159 - Pre: import cleanup r=me
MozReview-Commit-ID: 9PxTKEV2pH5
2016-05-23 08:11:42 -07:00
Andrzej Hunt e0399ffef8 Bug 1267467 - Strip about:reader when storing URIs in history r=margaret
MozReview-Commit-ID: JbUBMVNFdU9
2016-05-10 15:33:33 -07:00
James Willcox ece09bf0c8 Bug 1270522 - Guard against a null view in GeckoLayerClient.sendResizeEventIfNecessary(). r=rbarker 2016-05-23 06:41:00 -04:00
Andrzej Hunt ff688517d1 Bug 1270880 - Make first reader-view prompt independent of first reader-view-bookmark prompt r=sebastian
MozReview-Commit-ID: 34MmPdoZCzL
2016-05-10 10:50:06 -07:00
Andrzej Hunt 46856709bb Bug 1270880 - Show bookmarking helper UI first time reader view is used r=sebastian
Note: this is currently an experiment, which was previousl de-facto disabled.

MozReview-Commit-ID: 3BfyMD6E3b3
2016-05-10 10:36:47 -07:00
Andrzej Hunt 7a0b502195 Bug 1270880 - Check switchboard when showing experiment, not in onCreate r=sebastian
Switchboard might not have any data during onCreate, instead we should query
switchboard when actually deciding whether to show the prompt.

MozReview-Commit-ID: DdulFoWHiF9
2016-05-10 10:58:22 -07:00
Andrzej Hunt 872e26ba13 Bug 1270880 - Pre: import cleanup r=me
MozReview-Commit-ID: 5dcnr3WZ3Me
2016-05-10 10:37:02 -07:00
Michael Comella b397184823 Bug 1269924 - Move telemetry upload to NetworkUtils.isConnected. r=grisha
The concept of "background data" (as it exists in the Android options menu)
doesn't exist in the Android APIs - I think it should be covered under
isConnected. Thus, I removed our `isBackgroundDataEnabled` method.

One other network consideration, however: we may want to consider stopping
uploads on roaming.

In the previous implementation, we did not queue the ping for upload if
the network was not connected (in order to conserve disk space). However,
this doesn't allow us to see all of the days the user interacted with
the device (e.g. for engagement) so in this implementation, we always
queue the ping and stop in the UploadService if we're not connected.

MozReview-Commit-ID: 1mjnHq3l7Jj
2016-05-19 11:54:54 -07:00
Carsten "Tomcat" Book 95e60db9e1 Merge mozilla-central to fx-team 2016-05-24 15:15:55 +02:00
Carsten "Tomcat" Book ea6b128335 merge mozilla-inbound to mozilla-central a=merge 2016-05-24 14:52:23 +02:00
Michael Comella 0d1c722474 Bug 1274727 - Use toString method for search engine identifiers. r=bnicholson
These values are what are actually used UI telemetry (perhaps because the enums were added after the strings?). They're also a little less obnoxious than the enum names.

MozReview-Commit-ID: K5i2Hr4DR4J
2016-05-23 15:26:26 -07:00