Commit Graph
291 Commits
Author SHA1 Message Date
Julian_Chu d75223fcf0 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
Jan Henning 45ee103da8 Bug 1396604 followup - Remove reference to former FeedAlarmReceiver to fix lint failure. r=JanH
MozReview-Commit-ID: 5ObaKAeVYdS
2017-09-07 20:16:08 +02:00
Sebastian Kaspari eda242c262 Bug 1396604 - Remove content notifications code. r=JanH,nechen
MozReview-Commit-ID: 5H45Vjnzt5Z
2017-09-04 16:51:07 +02:00
Nick Alexander 35f9c5bef1 Bug 1352602 - Part 1: Don't AC_DEFINE ANDROID_TARGET_SDK, MOZ_ANDROID_{MIN,MAX}_SDK_VERSION. r=chmanchester
This is just a small piece in the larger project of minimizing the set
of global AC_DEFINEs.  None of these are relevant to C/C++ code;
they're mobile/android specific, so we should get them out of
mozilla-config.h.

In addition, this replaces hard-coded values with values from the
build system throughout mobile/android.

MozReview-Commit-ID: 9IJlsm38LFK
2017-06-21 11:16:08 -07:00
Carsten "Tomcat" Book 00c9cab166 Backed out changeset 3e06253547af (bug 1329152) on developers request / bug 1371561 2017-06-12 08:58:10 +02: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
Jim Chen f53913740a Bug 1365582 - Stop MediaControlService on task removal; r=ahunt
Stop the media control service when our task is removed, so that the
service doesn't block Android from killing our process.

MozReview-Commit-ID: 5FfXghJ7XTF
2017-05-22 17:27:13 -04:00
cnevinc 8ec54facda Bug 1351585 - Part 2. Add build flag and change our existing build system to inject leanplum implementation r=nalexander
MozReview-Commit-ID: uN7imeGYcj
2017-05-13 14:08:57 -07:00
James Willcox d13597bac0 Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-15 09:37:43 -05:00
Iris Hsiao 3cea13a680 Backed out 11 changesets (bug 1322650) for media test failures on android. a=backout
Backed out changeset 31bd912fba54 (bug 1322650)
Backed out changeset 4d486c7469eb (bug 1322650)
Backed out changeset 4cf8f4d5064c (bug 1322650)
Backed out changeset 3cb108f7492f (bug 1322650)
Backed out changeset bd53533c108e (bug 1322650)
Backed out changeset 3522917d8f10 (bug 1322650)
Backed out changeset 2c2c1e33eccc (bug 1322650)
Backed out changeset 2f19977cd6ab (bug 1322650)
Backed out changeset 4519296a323e (bug 1322650)
Backed out changeset e56e5e1c8786 (bug 1322650)
Backed out changeset 96fe52231b57 (bug 1322650)
2017-05-12 10:21:14 +08:00
James Willcox b1a00e377d Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-11 15:42:42 -05:00
Sebastian Hengst 8eec5421c9 Backed out changeset b50714bd8d10 (bug 1322650) for failing chrome's test_video_discovery.html and mda's test_Eviction_mp4.html, both on Android. r=backout 2017-05-05 18:55:11 +02:00
James Willcox 273f654199 Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-05 08:56:27 -05:00
Nevin Chen fb1decd53f Bug 1356517 - Add deep links to handle events. r=Grisha
MozReview-Commit-ID: 4OQTrbEdVtQ
2017-04-25 18:01:34 +08:00
Nick Alexander d91e47fd45 Bug 1254355 - Follow-up: Use #ifdef, not #if, for MOZ_CRASHREPORTER. r=gps
On a CLOSED TREE

Style varies across the tree, and this matters as we transition to
Python and moz.build.  AppConstants.jsm already uses #ifdef, so this
is consistent with that.

MozReview-Commit-ID: Bal37lqlvjq
2017-04-18 17:26:15 -07:00
Jan Henning 1665d2eedb Bug 1352108 - Add missing attributes to custom tab activity declaration. r=sebastian
Not handling the appropriate configuration changes means that e.g. each rotation destroys and recreates the CustomTabActivity, which'll introduce a slight delay until we eventually repaint the web content.

As for the soft input mode, if we don't specify adjustResize, then the IME might actually simply overlap our window and obscure the end of content if the user has already scrolled down as far as possible.

MozReview-Commit-ID: BzBmIoGbhca
2017-04-24 21:05:39 +02:00
Michael Kaply d67735c25b Bug 1352009 - Bump max_aspect_ratio per Android guidelines. r=sebastian
MozReview-Commit-ID: 6rLnXEyNTed
2017-04-24 09:55:10 -05:00
Sebastian Hengst 898cdf24d2 Backed out changeset 41d155de1019 (bug 1254355) on suspicion of breaking Android L10n nightlies. r=backout a=backout
MozReview-Commit-ID: 4VnZVlHUYUA
2017-04-23 10:41:09 +02:00
Nick Alexander 5d4580e28d Bug 1254355 - Pre: Use #ifdef, not #if, for MOZ_CRASHREPORTER. r=gps
Style varies across the tree, and this matters as we transition to
Python and moz.build.  AppConstants.jsm already uses #ifdef, so this
is consistent with that.

MozReview-Commit-ID: Bal37lqlvjq
2017-04-18 17:26:15 -07:00
James Willcox 2c9da68a4d Bug 1322029 - Disallow installing Fennec to external storage r=jchen
MozReview-Commit-ID: Kv0iShdPgFT
2017-04-06 15:30:28 -05:00
Dale Harvey d541b55459 Bug 1347605 - Ensure standalone pwa's are singletons 2017-03-29 18:44:30 +01:00
Makoto Kato 07de4ba969 Bug 1350169 - Part 1. Remove Android backend for Alarm API. r=snorp
After landing bug 1300884 and B2G is dead, Web Alarm API is removed.  So we should remove Android backend for Alarm API. This implementation was for B2GDroid.

MozReview-Commit-ID: ItmjOQrVSgs
2017-03-24 10:35:38 +09:00
Dale Harvey 09dba93fdd Bug 1336355 - Open webapps in new activity. r=sebastian 2017-03-15 15:39:01 +00:00
Julian_Chu 42337453a1 Bug 1315937 - add theme to CustomTabsActivity r=sebastian
CustomTabsActivity is usually be used by 3rd-party apps. Its look and
feel is usually different from GeckoApp. To give separated themes to
ensure any change to CustomTabs won't effect GeckoApp.

MozReview-Commit-ID: 7aBnnPXv3nQ
2017-03-01 11:43:35 +08:00
Michael Kaply 9266f8d9b6 Bug 1345014 - Add max_aspect to support 16.74:9 screens. r=snorp
MozReview-Commit-ID: 9b7BveqBOX1
2017-03-08 15:49:50 -06:00
maliu eb3d60e9dd Bug 1319302 - RTL support for Firefox for Android, r=sebastian
MozReview-Commit-ID: bKzW07YBDy
2016-11-11 16:10:21 +08:00
Randall Barker 70db18e7b7 Bug 1314466 - part 6, Add new files to build r=nalexander 2016-11-14 16:45:23 -08:00
KuoE0 907edbb616 Bug 1285870 - Show custom presentation on Chromecast. r=sebastian,snorp
MozReview-Commit-ID: 3DlbZMDFySA
2016-10-03 17:12:57 +08:00
Eugen Sawin bdb2787ec6 Bug 1298090 - [1.6] Extract and cache native libraries on APK update. r=glandium,snorp 2016-10-10 22:59:27 +02:00
Jim Chen 0044906898 Bug 1305498 - Refactor notification code to be more concise; r=sebastian
Bug 1305498 - 1. Remove NotificationClient task queue; r=sebastian

Not sure why we needed a task queue for NotificationClient actions. The
actions all go through IPC and are non-blocking, so it's perfectly fine
to perform them off of whatever thread we're on.

Bug 1305498 - 2. Integrate NotificationHandler et al into NotificationCllient; r=sebastian

There's no reason to have NotificationHandler, AppNotificationClient,
and ServiceNotificationClient all separate from the base
NotificationClient class. This patch adds the functionality of
those three classes to NotificationClient.

The notifications hash map is changed from a ConcurrentHashMap to a
regular HashMap with synchronization because I think the use case here
doesn't warrant the added performance and overhead of ConcurrentHashMap.

NotificationService is changed to match the new NotificationClient. Now
the only job for NotificationService is to set a notification as
foreground, rather than to manage all notifications like before.

NotificationHandler, AppNotificationClient, and
ServiceNotificationClient will be removed in a later patch.

Bug 1305498 - 3. Set NotificationListener in GeckoApplication; r=sebastian

Set NotificationListener once in GeckoApplication.onCreate, instead of
spreading it out in GeckoApp, BrowserApp, and GeckoService. This is
possible because there's no longer a distinction between
AppNotificationClient and ServiceNotificationClient in the new,
consolidated NotificationClient.

Bug 1305498 - 4. Remove obsolete notification classes; r=sebastian

Remove AppNotificationClient, ServiceNotificationClient, and
NotificationHandler, now that they've all been replaced by the new,
consolidated NotificationClient.

Bug 1305498 - 5. Use NotificationReceiver for web notification callbacks; r=sebastian

Previously, web notification callbacks went to GeckoApp directly, but
that presented some problems such as not being able to implement the
on-close callback, because we don't want to launch GeckoApp when the
notification is closed by swiping. This patch makes us use
NotificationReceiver for callbacks, and let NotificationReceiver launch
GeckoApp if necessary.

Bug 1305498 - 6. Don't keep notification cookie in native code; r=sebastian

Keep the notification cookie a single location (in the notification
intent itself), and simplify the native notification handling code.

Bug 1305498 - 7. Use NotificationReceiver for persistent notifications; r=sebastian

Currently, persistent notification callbacks go through a different code
path, but it'd be more consistent and correct to let persistent
notification callbacks go through NotificationReceiver as well.

This takes care of some housekeeping work that was missing for
persistent notifications, such as deleting the mNotifications entry when
the notification is closed.
2016-10-05 21:52:32 -04:00
Sebastian Kaspari dabec0cf1a Bug 1289140 - LauncherActivity: Exclude from recents and filter flags. r=ahunt
MozReview-Commit-ID: 2brjUGbl7hx
2016-09-09 10:13:14 +02:00
James Cheng 87dba1163d Bug 1302336 - Rename ICodecManager into IMediaManager. r=jolin
MozReview-Commit-ID: JGIW3BfAwCI
2016-09-14 11:07:45 +08:00
John Lin 974ee56a62 Bug 1257777 - Part 3: Implement remote codec, manager service, and parcelables. r=jchen
MozReview-Commit-ID: L0bc0wUaQKQ
2016-08-05 15:18:52 +08:00
Broderick Stadden 587ef6788c Bug 1279301 - Move notification classes to notification folder. r=jonalmeida
Moved notification classes to notification folder.  Refactored uses which added
imports to some Gecko classes as well as the Notification classes.  Added getter
to GeckoAppShell for access to static NotificationClient. Changed paths in
AndroidManifest.xml.in to reflect changes.

MozReview-Commit-ID: 2CUJa0YsV1V
2016-07-27 13:57:22 -10:00
Sebastian Kaspari 4782f4617a Bug 1286203 - Introduce proxy for partner bookmarks and load icons. r=ahunt,grisha
This patch does multiple things:
* Introduce a proxy content provider for the partner bookmarks provider: This allows
  us to hide the id transformation in the proxy and will later be used to filter
  "deleted" bookmarks from the actual content provider (bug 1286794).
* Modifies LoadFaviconTask to support loading icons from a content provider.
* Introduces a new flag to not download icons from guessed default favicon URLs.

MozReview-Commit-ID: C59ahPcZosn
2016-07-14 11:58:14 +02:00
Jonathan Almeida (:jonalmeida) d1323d4947 Bug 1075476 - Removing download notification restarts Firefox r=sebastian
MozReview-Commit-ID: 35pn1nntcsV
2016-05-25 14:18:10 -07:00
Sebastian Kaspari 425b940022 Bug 1276696 - Put custom tabs support behind a build flag. r=mcomella
MozReview-Commit-ID: 44wtCsZWZv2
2016-05-30 16:48:45 +02:00
Sebastian Kaspari a2e0a6ff19 Bug 1276696 - Add dummy service for custom tabs. r=mcomella
Currently this service does not implement any of the callbacks. However it is
necessary to be detected as an app supporting custom tabs.

MozReview-Commit-ID: Hz99Gp9aQCX
2016-05-25 19:31:10 +02:00
Sebastian Kaspari 1890d3070d Bug 1276696 - Add CustomTabsActivity based on GeckoApp. r=mcomella
This activity doesn't do much yet and just has a layout including a GeckoView.
Some basic behavior from GeckoApp is working though: Context menus, floating
text selection, snackbars.

MozReview-Commit-ID: C6SJeYz609h
2016-05-25 19:58:17 +02:00
Sebastian Kaspari 358bea3497 Bug 1276696 - Introduce new LauncherActivity that will handle all incoming Intents. r=mcomella
We will need to dispatch Intent objects to different destinations (Browser, Custom Tab and eventually
progressive web apps).

The logic of TabQueueDispatcher is folded into this new activity.

MozReview-Commit-ID: 3P4eIvtAKEW
2016-05-15 14:25:12 +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 3d1e67dc37 Bug 1268455 - Restore <activity-alias> to avoid disappearing home screen shortcuts. r=margaret
This patch restores our previous <activity-alias> with all intent filters. Changing the alias
will cause that existing home screen shortcuts disappear.

I tested this patch with:
* Upgrading old state (2016-02-06) to current state: Icon disappears (expected)
* Upgrading old state to fixed state (this patch): Icon remains

As this patch changes the activity-alias again, releasing this patch will lead to the home
screen shortcut disappearing once more for all released version with the current state:
* Upgrading current state to fixed state: Icon disappears (expected)

MozReview-Commit-ID: 1crKmkp4G1L
2016-05-03 11:16:20 +02:00
Andrzej Hunt 2a65d502a5 Bug 1246238 - Pre: Implement SimpleHelperUI r=sebastian
This provides a basic helper UI that can be customised with images/text.
We need a very similar helper for both reader-view offline bookmarking related
helpers (Bug 1236328 and Bug 1247689), hence it's useful to have a common
class implementing most of the required functionality.

Most of the new helper is borrowed from the existing HomeScreenPrompt. I will
extract the common functionality in a followup Bug.

MozReview-Commit-ID: Byc5VnVFffj
2016-04-23 10:56:17 +02:00
Sebastian Kaspari b1f931dffd Bug 1260451 - AndroidManifest: Handle configuration changes for smallestScreenSize and screenLayout. r=snorp
MozReview-Commit-ID: 1X4sQDotnSG
2016-04-14 10:26:36 +02:00
Michael Comella 2e3ed62110 Bug 1238785 - Add FileCleanupService. r=ahunt
This is intentionally kept minimal to ensure simplicity.

MozReview-Commit-ID: IJRxrTbWN2P
2016-04-12 17:10:35 -07:00
Sebastian Kaspari 77681f70d5 Bug 1232706 - Promote "Add to home screen" for frequently visited websites. r=margaret
MozReview-Commit-ID: 2OW7GKxuQmr
2016-04-06 09:41:34 +02:00
Andrzej Hunt 8f47e01949 Bug 1234319 - Post: purge ReadingListAccessor and ReadingListProvider r=mcomella
MozReview-Commit-ID: 1JcJKqBzP48
2016-03-24 13:16:34 -07:00
Sebastian Kaspari 85b0527df8 Bug 1241810 - Run setup on app start and when the device boots. r=mcomella
MozReview-Commit-ID: 4k5KqnjLg3L
2016-02-24 15:34:24 -08:00
Sebastian Kaspari e15607d54b Bug 1241810 - Add SetupAction for setting up various alarms to start FeedService. r=mcomella
MozReview-Commit-ID: GT6pLuUUEyY
2016-02-24 15:29:01 -08:00
Nick Alexander ca3660c2ba Bug 1256615 - Partially restore removed <activity-alias>. r=sebastian
Bug 1242213 removed the entire <activity-alias>.  Sadly, users who
added the Firefox icon to their dock (for example, Samsung's Touchwiz
dock) will see the icon disappear when they upgrade, because the
intent filter disappears.  (That is, the icon is connected to .App and
action MAIN, not to the package and action MAIN.)

This patch restores the .App <activity-alias> for action MAIN.  It
doesn't add the launcher and other categories, which could lead to
multiple launcher icons.  New users that add the Firefox icon to their
dock will use .BrowserApp, but sadly we'll need to maintain this alias
essentially forever to support existing dock icons.

MozReview-Commit-ID: 1o9XS5MEs1s
2016-03-21 13:42:08 -07:00