Commit Graph
2909 Commits
Author SHA1 Message Date
Carsten "Tomcat" Book 85d12c6f4d Backed out changeset ccc2926a42d6 (bug 1366674) for breaking android builds 2017-06-23 13:19:12 +02:00
Nevin Chen 245a842208 Bug 1366674 - Add Splash Screen. r=maliu
MozReview-Commit-ID: EjRS6w8IOX3
2017-06-13 17:57:35 +08:00
Sebastian Hengst 71eb9bfeb4 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DPQl41S3ZkU
2017-06-17 22:26:03 +02:00
Dylan Roeh 4b9c36a13e Bug 1360068 - Overhaul WebAppActivity to use GeckoView rather than GeckoApp. r=jchen,daleharvey 2017-06-16 14:50:49 -05:00
Grigory Kruglov c65fd3d7ca Bug 1373873 - Post: remove unused code r=nechen
MozReview-Commit-ID: DTXmFMB0GGM
2017-06-16 21:56:27 -04:00
Grigory Kruglov d5fcd117c5 Bug 1373873 - Guard against a nullable cursor r=nechen
MozReview-Commit-ID: HlherFzKfNW
2017-06-16 21:56:11 -04:00
Michael Kaply 0780074c69 Bug 1373818 - Allow Adjust campaign ID to behave as OTA distribution. r=rnewman
MozReview-Commit-ID: 8MEQ84PuH7i
2017-06-16 16:17:14 -05:00
Dylan Roeh 01c0df4204 Bug 1356346 - Overhaul CustomTabsActivity.java to use GeckoView rather than GeckoApp. r=jchen, walkingice 2017-04-25 11:48:05 -05:00
Dylan Roeh 3c40b42348 Bug 1365599 - Make Tabs use the window event dispatcher rather than global in some instances. r=jchen 2017-06-16 13:40:48 -05:00
friedger e4242f8232 Bug 1369673 - remove flag localeSwitchingIsEnabled from GeckoPreferences r=nalexander
remove the flag from GeckoPreferences as it is always true

MozReview-Commit-ID: J5bJwnaRFDa
2017-06-14 13:50:49 +02:00
Julian_Chu c27736e328 Bug 1347037 - use SecurityModeUtil in ToolbarDisplayLayout r=sebastian
Let CustomTabs and Fennec UI use same logic to detect site-identity.

MozReview-Commit-ID: J6ENPfJM0SB
2017-06-06 19:05:11 +08:00
Julian_Chu 3fe2040546 Bug 1347037 - improve SecurityModeUtil and add test cases r=sebastian
* Rename enum Mode to IconType, and added some types
* to map IconType to drawable-image-level
* add unit test

function `resolve` now returns IconType. IconType is abstraction and
independent from Drawable. It defines possible values of resolving
SiteIdentity.

We use a map to get correspond Drawable image level, then no need to
worry about Drawable-changing and algorithm.

Although unit test haven't cover all possible cases. But it passed
original implementation of `ToolbarDisplayLayout.updateSiteIdentity`.
It means `SecurityModelUtil.resolve` will not have obviously
regression....theoretically.

MozReview-Commit-ID: 3E0JMeBlg8D
2017-06-06 18:43:36 +08:00
friedger 3a57c3c2aa Bug 1217675 - Eliminate Honeycomb compatibility from Fennec code r=nalexander
Remove all references to Build.SDK_INT comparing 14 and lower

MozReview-Commit-ID: JdAjYvQ6mfX
2017-06-10 08:57:55 +02:00
Carsten "Tomcat" Book 00c9cab166 Backed out changeset 3e06253547af (bug 1329152) on developers request / bug 1371561 2017-06-12 08:58:10 +02:00
Carsten "Tomcat" Book 5303f5d147 Backed out changeset 3c03b94342b9 (bug 1329152) 2017-06-12 08:57:45 +02:00
Grigory Kruglov c3b6a3661c Bug 1371402 - Disable processing of background telemetry if it's disabled in the preferences r=nalexander
MozReview-Commit-ID: ANGu2MhQto0
2017-06-08 18:16:18 -04:00
Grigory Kruglov 3acbf8c4de Bug 1369844 - Add switchboard experiment for background telemetry processing r=nalexander
Intended use is a "kill-switch" for processing/upload of background telemetry.

MozReview-Commit-ID: CXhQtkxljAy
2017-06-08 16:46:53 -04:00
maliu a47c9a5638 Bug 1369281 - Simplify Locale setting string without variant/script which is from Locale.toString(), r=nechen
MozReview-Commit-ID: CKdYTkHn9Z9
2017-06-08 18:17:27 +08:00
Nevin Chen 4f33c3f87d Bug 1369685 - Add 'region' to switchboard. r=sebastian
MozReview-Commit-ID: EWlx3bkpTwj
2017-06-02 18:08:20 +08:00
Julian_Chu ac1697ee98 Bug 1369681 - CustomTab hide content to prevent flash r=JanH,sebastian
In some cases, user might see flash in first launch of CustomTabs.
This issue could be fixed once we have GeckoView based implementation.
Before it comes, we just hide content for a while as a workaround.

This workaround is in SingleTabActivity since we also want to benefit
WebApps.

MozReview-Commit-ID: HenLSOqROA2
2017-06-02 17:30:23 +08:00
Grigory Kruglov 0afca7f5d0 Bug 1370221 - Don't try to serialize ExtendedJSONObject r=nalexander
MozReview-Commit-ID: 3Q4rD2Ljfc
2017-06-06 14:15:31 -04:00
Grigory Kruglov 5e569b482c Bug 1370668 - Do not assume that uid and deviceID will be present in the sync telemetry bundle r=nalexander
It's possible that a sync fails very early, for example while talking to the token server. In that case,
we wouldn't have uid/deviceID available in the sync telemetry bundle.

MozReview-Commit-ID: 7OB1Er37qo8
2017-06-06 18:00:41 -04:00
Eugen Sawin 082e2224bd Bug 1369689 - [1.0] Make page load time logs depend on web progress events instead of throbber activity. r=snorp 2017-06-06 12:56:15 +02:00
Sebastian Hengst a82a6c091f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IdRgoZ9hiXq
2017-06-03 20:15:27 +02:00
Jim Chen 19937ab159 Bug 1369107 - 4. Remove GeckoAppShell.ContextGetter; r=snorp
Remove ContextGetter and all implementations now that it's no longer
being used.

MozReview-Commit-ID: G5jWFsQPfWw
2017-06-02 16:13:42 -04:00
Jim Chen a6d0008c10 Bug 1369107 - 3. Don't use GeckoAppShell.getContext for plugin code; r=snorp
Use getApplicationContext or GeckoApp.getPluginContext instead of
getContext so we can get rid of ContextGetter.

MozReview-Commit-ID: B8tTPeZ5gvt
2017-06-02 16:13:41 -04:00
Jim Chen f8e6426536 Bug 1369107 - 1. Remove usages of GeckoAppShell.getContext(); r=droeh
Replace usages of GeckoAppShell.getContext() with
getApplicationContext() if possible, or the current Activity if the
usage expects an Activity context.

MozReview-Commit-ID: 9GOWszgEsQu
2017-06-02 16:13:41 -04:00
Jim Chen 8820665a21 Bug 1367081 - Make PromptService usable from GeckoView custom tabs; r=droeh
Make PromptService and Prompt.jsm not depend as much on BrowserApp and
the main Fennec window, so it can be used from a GeckoView-based custom
tabs Activity. This approach is used because it involves a lot less work
than trying to implement a PromptDelegate for Fennec.

MozReview-Commit-ID: AEH0HgAOx2S
2017-06-01 15:07:16 -04:00
Jim Chen 54241093dc Bug 1368377 - Use app context for GlobalHistory; r=me
Use getApplicationContext instead of the obsolete getContext in
GlobalHistory.checkVisited.

MozReview-Commit-ID: EbaFecEzNkh
2017-06-01 15:07:16 -04:00
Dylan Roeh 11f96ed230 Bug 1369393 - Backout GV-based custom tabs, PWAs, and Tabs.java changes. r=me 2017-06-01 09:28:31 -05:00
Grigory Kruglov e8cad77de8 Bug 1369892 - Silence findbugs dodgy casting warning r=nalexander
Strangely enough, this patch seems to appease findbugs.

While dodgy indeed, I think this casting is acceptable in this case since we control
both sides of the equation (sender & receiver of telemetry), but can't easily do away
with casting.

MozReview-Commit-ID: FBTkRqKPtxt
2017-06-02 18:15:32 -04:00
Grigory Kruglov d37d7e6d2f Bug 1308337 - Part 8: Receive sync telemetry, construct and upload sync pings r=nalexander
This patch includes some "pre" work, which should have been a separate patch (my apologies!):
- telemetry ping is (needlessly) coupled with information about where it should
  be uploaded. It wasn't a problem before, since core pings are "upload right away",
  and are never bundled together during an upload. However, for sync ping, we need to
  bundle a bunch of "syncs" and "events" (down the road) into one single "sync ping", and as such
  we need a separate representation for a "ping that is not meant to be uploaded directly".
- instead of dealing with the coupling directly, a simpler approach is taken:
- a "ping" is split into two types of pings: local and outgoing
- outgoing ping is what the old "ping" was - a data bundle that is ready to be uploaded
- local ping is not meant to be uploaded directly, but is intended to be a part of an
  outgoing ping, along with other local pings
- the main difference between local and outgoing pings is the URL: local pings don't have
  it while outgoing pings do have it.

As background telemetry is received via LocalBroadcastManager, it is processed as follows:
- telemetry data is processed into "local pings" which are stored on disk
- as enough telemetry is gathered, or we hit one of "let's upload now" conditions, the
  persisted local pings are gathered into an "outgoing ping" via a SyncPingBundleBuilder,
  which is persisted on disk.
- upload of the bundled "sync ping" is attempted
- as individual "local pings" are processed into outgoing "Sync ping" bundles, they are removed
  from disk

Hooks for the upcoming event telemetry data are in place to make that follow-up work easier.

MozReview-Commit-ID: 6uXi6pjXiSv
2017-06-01 17:16:09 -04:00
Ryan VanderMeulen 3665b7f0f2 Merge inbound to m-c. a=merge 2017-05-31 20:25:52 -04:00
Dylan Roeh db93a66019 Bug 1360068 - Overhaul WebAppActivity to use GeckoView rather than GeckoApp. r=jchen,daleharvey 2017-05-31 16:59:50 -05:00
Andrzej Hunt 6662312dff Bug 1366352 - Post: check anchor is set before trying to show GeckoPopupMenu r=nechen
This means we'll at least see a sensible exception, instead of an NPE when
no anchor is set. That makes it easier to debug cases where no anchor was
set (see e.g. the main commit from this bug).

MozReview-Commit-ID: CzsZaHvnZ6y
2017-05-19 12:17:25 -07:00
Andrzej Hunt a04d48c630 Bug 1366352 - Ensure anchor is always set before trying to show tabs tray menu r=nechen
MozReview-Commit-ID: 18KLMDlJUQe
2017-05-19 12:16:12 -07:00
Michael Kaply 747639085b Bug 1361755 - Allow distributions to specify a homepage option in prefs. r=sebastian
MozReview-Commit-ID: CNvhkzDyynZ
2017-05-31 11:39:41 -05:00
Sebastian Hengst 7e6b701d97 Backed out changeset 970698e1bb62 (bug 1361755) for Android bustage at /mobile/android/base/resources/layout/preference_set_homepage.xml:20 (unbound prefix). r=backout 2017-05-31 16:02:50 +02:00
Michael Kaply 0487cbfc3a Bug 1361755 - Allow distributions to specify a homepage option in prefs. r=sebastian
MozReview-Commit-ID: KjdZvHNG6VR
2017-05-03 15:47:09 -05:00
Dylan Roeh f44862d3ca Bug 1356346 - Overhaul CustomTabsActivity.java to use GeckoView rather than GeckoApp. r=jchen, walkingice 2017-04-25 11:48:05 -05:00
Dylan Roeh 2c114d0964 Bug 1365599 - Make Tabs use the window event dispatcher rather than global in some instances. r=jchen 2017-05-31 16:58:54 -05:00
Julian_Chu 6131d964d2 Bug 1329152 - turn on CustomTabs via SwitchBoard r=sebastian
We are going to enable Custom Tabs by default. Now it is still
controlled by SwitchBoard in case of any accident.

MozReview-Commit-ID: JREAhkYzVSu
2017-04-21 15:05:19 +08:00
Julian_Chu dd94877d51 Bug 1329152 - Enable custom tabs by default r=sebastian
Remove related options, just use CustomTabs directly.

MozReview-Commit-ID: DdcMHnsfAU1
2017-04-10 17:32:16 +08:00
Jing-wei Wu dd6462f9df Bug 1329138 - Part 3: Add telemetry probe while editing a bookmark. r=nechen
MozReview-Commit-ID: FeXO32ScjcT
2017-05-31 14:03:01 +08:00
Jing-wei Wu 7a0eaafcea Bug 1329138 - Part 2: Add telemetry probe while creating a bookmark folder. r=nechen
MozReview-Commit-ID: GCJ0qOpohCf
2017-05-24 10:33:00 +08:00
Jing-wei Wu bcfa1a0929 Bug 1329138 - Part 1: Add telemetry probe while removing a bookmark folder. r=nechen
MozReview-Commit-ID: 5NYMp3uBdNw
2017-05-24 10:14:07 +08:00
Matthew Wein 24ad7b3729 Bug 1351111 - Add support for updating existing browser actions r=sebastian
MozReview-Commit-ID: 7fuDRmR75WD
2017-05-25 17:11:56 -04:00
Grigory Kruglov 4eb08b9e49 Bug 1356386 - Support for FxA sign-in deep links r=nechen
Adds support for opening FxA deep links, a la firefox://fxa-signin

Whitelisted set of query parameters::
- signin - expected to be the "magic token"
- entrypoint - for internal tracking purposes
- utm_* - all query parameters with utm_ prefix are allowed

Deep links are opened as: about:accounts?signin=<token>&entrypoint=<entrypoint>&utm_one=<utm1>....

MozReview-Commit-ID: LfGi1ChPvUr
2017-05-30 00:16:21 -04:00
Jan Henning fd349c8e74 Bug 1367851 - Use ComponentCallbacks to listen for low memory notifications. r=ahunt
At the moment, we forward these from GeckoActivity, which means that they won't work if no GeckoActivity-based activity is active (can happen within our settings for example).

As of API14, we can now register an app-wide ComponentCallbacks(2) class, allowing us to easily receive low memory notifications no matter which activity is currently alive.

MozReview-Commit-ID: 5GjSjsTKxAD
2017-05-25 21:22:24 +02:00
Jan Henning 285b775770 Bug 1357778 - Exclude non browsing tabs in the TabStripView, too. r=walkingice
We're already doing this in the tab strip, but this presumably didn't cover the initialisation via TabStripView.refreshTabs().

MozReview-Commit-ID: Abdk1mD5HyZ
2017-05-26 20:15:27 +02:00