Commit Graph
2909 Commits
Author SHA1 Message Date
Nick Alexander 44716e8289 Bug 1260519 - Support unsubscribing from Push API messages from a site. r=jchen
This was implemented, but never wired up.

I thought long and hard about how to unit test this, and it's quite
difficult.  First, we'd have to chose a layer of testing.  We could
unit test:

* the JS <-> Java message passing;

* the permission prompts <-> JS interface;

* some interactions with the Service Worker interface.

The first is difficult because none of our current testing emulators
have Google Play Services and GCM enabled, so we'd need to allow to
mock or otherwise fake the GCM registration.  Then we'd need to stand
up a mock autopush server (using httpd.js or the Java-side
equivalent), or mock out the autopush client as well.  At this point,
we're testing sendMessage.  This could be done, but I'd rather slide
this fix in before building out quite a bit of test infrastructure.
(For the record, the Java Push Service state machine is thoroughly
tested with Java unit tests, so I have confidence that the unsubscribe
logic works.)

The second is tested via the PushWebSocket tests, which are now
running on Android.  That is, if permissions and the PushService are
interacting badly, we should see it with the existing test suite.
Since PushServiceAndroidGCM is pretty much a pass-through, there's
little value to be added here.

Finally, the third is also tested via the PushWebSocket tests.
There's absolutely nothing GCM specific about the Service Worker
interface to the PushService.

So I'm left manually testing this -- and now we can unsubscribe from
Push messages from sites.

MozReview-Commit-ID: HiRiqasHJ27
2016-03-29 11:59:52 -07:00
Sebastian Kaspari 2e0ef1063f Bug 1201059 - Synchronize catalog of downloadable content from Kinto instance. r=rnewman,mathieu
This patch does a couple of things:
* Add a SyncAction for synchronizing the catalog from Kinto
* Add a CleanupAction for removing files no longer needed

* Migrate the data structure of DownloadContentCatalog from a list to a map.
* Move the more complex builder code to its own class: DownloadContentBuilder
* Introduce a switchboard expriment for staged rollout (download-content-catalog-sync)

MozReview-Commit-ID: D733Xx6LxOb
2016-03-22 11:20:18 +01:00
Carsten "Tomcat" Book c8cb20b188 Backed out changeset d64938914b3e (bug 1220928) for perma failures in testAboutHomeVisibility | Waiting for HomePager HISTORY panel. 2016-03-30 14:38:23 +02:00
Carsten "Tomcat" Book b50bb36ebe Backed out changeset ceb669fb17f2 (bug 1220928) 2016-03-30 14:38:07 +02:00
Carsten "Tomcat" Book 9155521d88 Backed out changeset f464c44bf882 (bug 1220928) 2016-03-30 14:38:06 +02:00
Carsten "Tomcat" Book 8c5a3f8114 Backed out changeset 6220841fe652 (bug 1220928) 2016-03-30 14:38:04 +02:00
Carsten "Tomcat" Book 6efe5ef59f Backed out changeset 875fbe8190d3 (bug 1220928) 2016-03-30 14:38:03 +02:00
Carsten "Tomcat" Book 523f723aab Backed out changeset 297774d61b59 (bug 1220928) 2016-03-30 14:38:01 +02:00
Carsten "Tomcat" Book 6a0575a1fb Backed out changeset 450290121373 (bug 1220928) 2016-03-30 14:37:59 +02:00
Carsten "Tomcat" Book 21ab93b6ca Backed out changeset 4fc2017aee75 (bug 1220928) 2016-03-30 14:37:56 +02:00
Carsten "Tomcat" Book 6208a6d628 Backed out changeset 671ce80172a0 (bug 1220928) 2016-03-30 14:37:54 +02:00
Carsten "Tomcat" Book 1c633683b1 Backed out changeset b2828872f3e7 (bug 1220928) 2016-03-30 14:37:52 +02:00
Carsten "Tomcat" Book dfb78ae3d3 Backed out changeset 81b90ed9ff46 (bug 1220928) 2016-03-30 14:37:51 +02:00
Carsten "Tomcat" Book daa1ea0e62 Backed out changeset 916fb74ed491 (bug 1220928) 2016-03-30 14:37:49 +02:00
Carsten "Tomcat" Book e579be907d Backed out changeset ac7d8d5ec09e (bug 1220928) 2016-03-30 14:37:47 +02:00
Carsten "Tomcat" Book 51d4ec95b7 Backed out changeset c1a1079daea1 (bug 1220928) 2016-03-30 14:37:46 +02:00
Carsten "Tomcat" Book 67bcf6b7ee Backed out changeset 33e39362305b (bug 1258450) 2016-03-30 14:02:22 +02:00
Carsten "Tomcat" Book a3c075bee6 Backed out changeset 0fa1a5081a60 (bug 1258450) 2016-03-30 14:02:20 +02:00
Carsten "Tomcat" Book 628f0dc7df Backed out changeset f39f05fa8df3 (bug 1258450) 2016-03-30 14:02:18 +02:00
Carsten "Tomcat" Book a66550037c Backed out changeset 476cdaa0ce08 (bug 1258450) 2016-03-30 14:02:17 +02:00
Carsten "Tomcat" Book 9ed0901297 Backed out changeset 0476a0d0575b (bug 1258450) 2016-03-30 14:02:15 +02:00
Carsten "Tomcat" Book a4a640421b Backed out changeset 7a434b18855a (bug 1258450) 2016-03-30 14:02:13 +02:00
Carsten "Tomcat" Book 5e3b0cfdc2 Backed out changeset 462e9e4314ef (bug 1258450) 2016-03-30 14:02:12 +02:00
Carsten "Tomcat" Book 711831a2e6 Backed out changeset e5ec40672f6e (bug 1258450) 2016-03-30 14:02:10 +02:00
Carsten "Tomcat" Book 07c0868b02 Backed out changeset dcffecae84b7 (bug 1258464) 2016-03-30 14:02:09 +02:00
Carsten "Tomcat" Book ddae2fa978 Backed out changeset ab088eb19b46 (bug 1258464) 2016-03-30 14:02:07 +02:00
Nick Alexander 5a123d78c8 Bug 1258464 - Part 2: Remove GeckoView implementation built on Fennec's Tab/Tabs. r=snorp
This will be re-implemented without reference to Fennec's Tab/Tabs
data structures.

MozReview-Commit-ID: I12Dlb3ef58
2016-03-22 16:40:34 -07:00
Nick Alexander 8f98e0b682 Bug 1258464 - Part 1: Remove vestigial GeckoView attrs and initialization. r=snorp
These have no consumer and deserve to be properly reworked.

MozReview-Commit-ID: KmjE44nmLXx
2016-03-22 16:37:02 -07:00
Nick Alexander 3005ae74d2 Bug 1258450 - Delegate Intent handling from GeckoAppShell to GeckoInterface. r=snorp,mcomella
MozReview-Commit-ID: HoHqZU0Ev5D
2016-03-20 20:27:52 -07:00
Nick Alexander 6b140ee6ba Bug 1258450 - Automated (mostly) refactorings moving GeckoAppShell static methods into IntentHelper. r=snorp
MozReview-Commit-ID: JbfR3pVFxDK
2016-03-20 20:14:07 -07:00
Nick Alexander 43f4aa56bf Bug 1258450 - Route setAccessibilityEnabled through GeckoInterface. r=snorp,jchen
MozReview-Commit-ID: 9DXQ8mxtg2Q
2016-03-20 20:00:07 -07:00
Nick Alexander 9816136672 Bug 1258450 - Move references to SnackbarHelper out of GeckoAppShell. r=snorp,sebastian
The existing code assumes an Activity, not just a Context, but doesn't
statically guarantee it.  This patch is safe because it dynamically
type-checks, but it would be better to declare the member to be an
Activity.

MozReview-Commit-ID: 9AigV055I5j
2016-03-20 14:41:39 -07:00
Nick Alexander 93aedc3ba0 Bug 1258450 - Move GlobalHistory queries to GeckoInterface. r=snorp
GlobalHistory is Fennec-specific: it accesses the Fennec history data
store, and collects Telemetry.  This allows other consumers to
implement their own store as appropriate.

MozReview-Commit-ID: 75Uxc5k8V0O
2016-03-18 17:18:28 -07:00
Nick Alexander e8cb55affd Bug 1258450 - Add GeckoInterface.createShortcut. r=snorp
This moves some Fennec-specific home-screen icon manipulations out of
GeckoAppShell.  A GeckoView interface can follow.

MozReview-Commit-ID: 7OhRAT9Agdh
2016-03-18 16:59:34 -07:00
Nick Alexander de921b980b Bug 1258450 - Remove unused GeckoInterface.getPromptService(). r=snorp
MozReview-Commit-ID: 5Aq0TEVD1zD
2016-03-18 16:46:39 -07:00
Nick Alexander 9930ebad8e Bug 1258450 - Don't use resources in SwipeDismissListViewTouchListener. r=mcomella
This is just a small simplification to allow us to not depend on
org.mozilla.gecko.R.

MozReview-Commit-ID: TjSYwYyAMS
2016-03-18 16:39:05 -07:00
Chenxia Liu 34111715c8 Bug 1220928 - Handle configuration changes. r=sebastian
MozReview-Commit-ID: E5MoWlcMCdj
2016-03-28 17:02:16 -07:00
Chenxia Liu a98f5fc7c0 Bug 1220928 - Remove old History and Synced Tabs panel for uncustomized home panels. r=sebastian
MozReview-Commit-ID: G3hIeoiiNs5
2016-03-28 15:58:16 -07:00
Chenxia Liu f643f2bcbd Bug 1220928 - Handle back button when in client's child view. r=sebastian
MozReview-Commit-ID: BDiyR5JCHQD
2016-03-28 12:04:03 -07:00
Chenxia Liu 8c8fa4bd8e Bug 1220928 - Add client hiding/showing. r=sebastian
MozReview-Commit-ID: IvyrslMqTOT
2016-03-29 17:10:33 -07:00
Chenxia Liu a03ee75dc5 Bug 1220928 - Add context menu. r=sebastian
MozReview-Commit-ID: CQ01edJs3vP
2016-03-23 18:36:13 -07:00
Chenxia Liu a15e406e08 Bug 1220928 - Add section headers. r=sebastian
MozReview-Commit-ID: ItbC1yEJY4D
2016-03-17 00:18:37 -07:00
Chenxia Liu f428dd68bd Bug 1220928 - Add empty state. r=sebastian
MozReview-Commit-ID: Ger04bA0aaC
2016-03-15 11:45:21 -07:00
Chenxia Liu c204544f00 Bug 1220928 - Add dividers. r=sebastian
MozReview-Commit-ID: KYzvrB1YEsA
2016-03-09 17:49:08 -08:00
Chenxia Liu c976f37a31 Bug 1220928 - Add footerbar button. r=sebastian
MozReview-Commit-ID: 6R0RWsSljji
2016-02-25 18:25:55 -08:00
Chenxia Liu bbee840818 Bug 1220928 - Add remote client children. r=sebastian
MozReview-Commit-ID: F5DYHrR5p99
2016-03-15 15:51:56 -07:00
Chenxia Liu ae92a705f9 Bug 1220928 - Open links for history. r=sebastian
MozReview-Commit-ID: KCXDHb3UEy9
2016-03-29 17:17:08 -07:00
Chenxia Liu c69159ed89 Bug 1220928 - Make static viewType to ItemType converter. r=sebastian
MozReview-Commit-ID: CIOxLFaQIIo
2016-02-24 16:13:18 -08:00
Chenxia Liu 00e8d65a57 Bug 1220928 - Clients and history loading. r=sebastian
MozReview-Commit-ID: 1lCKVQH54C3
2016-02-24 14:27:55 -08:00
Chenxia Liu f66b52e2ca Bug 1220928 - Add RecyclerView boilerplate. r=sebastian
MozReview-Commit-ID: xaRLs8JxMs
2016-02-23 11:00:42 -08:00