Commit Graph

361 Commits

Author SHA1 Message Date
Tim Huang
fd497dc733 Bug 1285889 - Moving the ContextualIdentityService.jsm from from browser/components/contextualidentity into tookit/components/contextualidentity. r=baku
--HG--
rename : browser/components/contextualidentity/ContextualIdentityService.jsm => toolkit/components/contextualidentity/ContextualIdentityService.jsm
2016-07-11 20:03:00 +02:00
Kit Cambridge
a89d36c0f5 Bug 1285311 - Mark PushSubscriptionOptions.applicationServerKey as [SameObject]. r=baku
MozReview-Commit-ID: D8wtnkFunRQ
2016-07-07 10:14:25 -07:00
Tim Huang
fe82695f5e Bug 1238183 - Part 2 - Add a test case for testing the ForgetAboutSite with userContextId. r=jimm 2016-07-07 23:15:00 +02:00
Phil Ringnalda
38f200f8da Back out 2 changesets (bug 1238183) for leaks from browser_forgetaboutsite.js
Backed out changeset 1207df32d737 (bug 1238183)
Backed out changeset 663a083774f4 (bug 1238183)
2016-07-04 10:11:21 -07:00
Tim Huang
472523ec05 Bug 1238183 - Part 2 - Add a test case for testing the ForgetAboutSite with userContextId. r=jimm
--HG--
extra : rebase_source : 5737f19a84813000297fc4c9bbd4bbc760f8a739
2016-07-04 00:36:00 +02:00
Andrea Marchesini
7fc60537c1 Bug 1280067 - WorkerThreadModifyBusyCount should be the default value for WorkerRunnable, r=sicking 2016-06-28 19:28:13 +02:00
Kit Cambridge
39cc699a48 Bug 1207744 - Track and re-send push unregister requests on reconnect. r=dragana
MozReview-Commit-ID: 2rFLm07n4EU

--HG--
extra : rebase_source : a93554e2320c0ff46e7b66d41f668ecaf75836d4
extra : source : f7e1ab1bd99c05c219fe75913f8f37ba39aec092
2016-06-08 06:13:15 -07:00
Kit Cambridge
9e36cfc751 Bug 1280106 - Don't send push events to service workers without a principal. r=dragana
MozReview-Commit-ID: JwTU633hENl

--HG--
extra : rebase_source : 58d7df0903d433f9070941fd7d6853f2f2471b9c
2016-06-27 08:22:59 -07:00
Christoph Kerschbaumer
1b81dcec35 Bug 1271198 - Convert Websockets to use AsyncOpen2(). r=jduell 2016-05-17 12:04:11 +02:00
Kit Cambridge
9960b60842 Back out changeset f7e1ab1bd99c (bug 1207744) for X(3) failures.
MozReview-Commit-ID: 5mgyh20yXiI

--HG--
extra : rebase_source : d3adb0098eb1615fdd134cbb4f0afd8a151a5066
2016-06-07 20:34:54 -07:00
Kit Cambridge
a48c0ef397 Bug 1277928 - Don't wait to update the quota for privileged push subscriptions. r=wchen
MozReview-Commit-ID: CwPR7vnvqNp

--HG--
extra : rebase_source : 9479af0cd51b8469fe2306a8f70643d4ae31a05b
extra : histedit_source : eceb7547fe1a90307ca26d550133a90daf6cf4ee
2016-06-03 11:45:46 -07:00
Kit Cambridge
d8d829d3c8 Bug 1207744 - Track and re-send push unregister requests on reconnect. r=dragana
MozReview-Commit-ID: 2rFLm07n4EU

--HG--
extra : rebase_source : 813c59ee7a4ca0c56717343683a54df22f1697de
extra : histedit_source : 9288402c263848c381995c3c9ae52950f6d65467
2016-06-06 16:29:36 -07:00
Kit Cambridge
55b7ef53d9 Bug 1207743 - Track recent push messages to avoid duplicate notifications on reconnect. r=dragana
MozReview-Commit-ID: KezPfa0yyO1

--HG--
extra : rebase_source : 86c3b0d78f2772369ebedd11d640a8b05e46d24f
extra : histedit_source : 531a495b7b3b3d8d4bf8b399f6beebf0805ac3bc
2016-06-04 13:17:12 -07:00
Kit Cambridge
7500315560 Bug 1275436 - Remove push subscriptions from the server after clearing permissions and site data. r=mt
Previously, we removed records locally, but didn't notify the server.
We can be nice and avoid making the server buffer messages for
subscriptions that the client will never use again.

MozReview-Commit-ID: 5iohGQPHXuz

--HG--
extra : rebase_source : 00639fe1016ffd241c18643049f4b061740025f1
2016-05-20 09:38:26 -07:00
Kit Cambridge
4dfcfb9ee7 Bug 1275436 - Simplify firing push subscription change events. r=mt
Even if the event handler calls `subscribe()` or `getSubscription()`,
the "readwrite" IDB transactions in `clearIf` and `forEachOrigin`
should execute first.

MozReview-Commit-ID: ETYGmnOIuag

--HG--
extra : rebase_source : 8f8847a825d1fcdb09a421b852e86b81431f7e8e
2016-05-05 09:12:35 -07:00
Kit Cambridge
8f4367fa09 Bug 1275434 - Add remote push observer tests. r=dragana
MozReview-Commit-ID: 4BVWwEbI2FX

--HG--
extra : rebase_source : 1ecd69b74a0329b14aa9ce8b3d4172bbf6278397
2016-05-19 21:41:15 -07:00
Kit Cambridge
a5dc7d0ed9 Bug 1275434 - Notify "push-subscription-modified" observers in the child. r=dragana
MozReview-Commit-ID: H3DGrhEm3fn

--HG--
extra : rebase_source : 37d9a07d2a852cdccb9e6c339cf9bcbe01fb6c88
2016-05-14 16:54:51 -07:00
Kit Cambridge
21fdc3d97d Bug 1275434 - Refactor PushNotifier to clarify remoting logic. r=dragana
Previously, all `PushNotifier` methods checked the process type, and
either called `Notify*{Workers, Observers}` or sent an IPDL message.
The message handlers then called back in to `PushNotifier` from the
remote process.

This was clearer when we only sent worker event notifications to the
content process, and fired all observer notifications in the parent.
It became more complicated once we started notifying observers for all
subscriptions in both processes (bug 1266433). This makes it harder to
see omissions; for example, "push-subscription-modified" isn't
currently forwarded to the child, but "push-subscription-change" and
"push-message" are.

This patch moves the remoting code into `PushNotifier::Dispatch`, and
adds a base `PushDispatcher` class. Each notification type subclasses
this class and implements logic for sending messages and firing
observers and worker events. It's more code, but a bit easier to see
which methods are called where.

MozReview-Commit-ID: 7Q0eD7qXOrW

--HG--
extra : rebase_source : c69acb95a0cb5470cf1c804639971be41b976cc2
2016-05-19 19:01:34 -07:00
Kit Cambridge
02d8a1e5d9 Bug 1265593 - Forward app server keys to Autopush on Android. r=nalexander
MozReview-Commit-ID: 3J4mM1k0pcY

--HG--
extra : rebase_source : c5a33f2f7043321307da17a6915dedfac66f1fc9
extra : histedit_source : 0357740fc62df416635c90a1ad075f6ee5e492e8
2016-03-22 12:09:31 -07:00
Kit Cambridge
978954c755 No bug - Use the correct protocol for insecure Push server URLs. r=me
MozReview-Commit-ID: FmYTQMSIhkP

--HG--
extra : rebase_source : 9a17f7678d6e676e7aff85efbd0cbad7d6cf312a
2016-05-27 17:30:39 -07:00
Ben Kelly
0304c38349 Bug 1273920 P4 Fix bugs in dom/push/test_serviceworker_lifetime.html test. r=kitcambridge 2016-05-24 14:08:20 -07:00
Ben Kelly
8a4eee33d2 Bug 1254741 P3 Fix push test_serviceworker_lifetime.html test to expect new behavior. r=kitcambridge 2016-05-23 02:46:27 -07:00
Kit Cambridge
def695bf98 Bug 1274326 - Avoid adding history visits with future visit dates in the Push tests. a=testonly
MozReview-Commit-ID: 6jHgZg4qoul

--HG--
extra : rebase_source : 723d5921706a430518d057df62d0f3d8faf34fac
2016-05-19 17:43:21 -07:00
Kit Cambridge
b9c156e19b Bug 1273260 - Add a pref to override push permissions. r=wchen
MozReview-Commit-ID: 8nJzACxIJmI

--HG--
extra : rebase_source : 05a0f8bae462f40ed78f8c0d2d2926aaf3ec0524
2016-05-17 08:32:05 -07:00
Sebastian Hengst
468fcc6924 Backed out changeset 2292661153e3 (bug 1271198) for web-platform failures. r=backout on a CLOSED TREE 2016-05-19 17:06:04 +02:00
Christoph Kerschbaumer
bbc661631e Bug 1271198 - Convert Websockets to use AsyncOpen2() (r=jduell) 2016-05-19 15:42:01 +02:00
Sebastian Hengst
d6e3286232 Backed out changeset 854a8df494d3 (bug 1271198) for many assertions at nsHttpChannel.cpp:5204. r=backout on a CLOSED TREE 2016-05-19 14:23:51 +02:00
Christoph Kerschbaumer
0e2d46a840 Bug 1271198 - Convert Websockets to use AsyncOpen2() (r=jduell) 2016-05-19 11:54:02 +02:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Kit Cambridge
29e9262000 Bug 1272054 - Replace "PermissionDeniedError" with "NotAllowedError" in the Push API. r=mt
MozReview-Commit-ID: Bn0bE3eALj4

--HG--
extra : transplant_source : %83%A7%C1%CB%00%BD%C8%60A%09%CA%FB%02M%5DbU%AB%04C
2016-05-11 10:48:31 -07:00
Kit Cambridge
f2f4e5708d Bug 1206424 - Ensure daysElapsed is always non-negative when updating the push quota. r=wchen
--HG--
extra : rebase_source : 4c203d359f7bf965591442a3755675fd1d37ba3c
2016-05-09 20:54:05 -07:00
Kit Cambridge
de899472f4 Bug 1269436 - Always pass the principal to push observer notifications. r=dragana
MozReview-Commit-ID: J1vU3nRKlsa

--HG--
extra : rebase_source : 9a1fabbdc42afb92a224fb5e89c2eaf106943cc9
2016-05-02 09:38:47 -07:00
Kit Cambridge
a186376653 Bug 1269385 - Notify Dev Tools when a push subscription is modified. f=janx r=dragana
MozReview-Commit-ID: 3iTl7jH9IkB

--HG--
extra : rebase_source : 4b3fe86714564373cd4fc1efc10239e12b8bbc76
2016-05-02 08:20:14 -07:00
Andrea Marchesini
3b28920d8e Bug 1270476 - Fix compilation issues on Android with PushEnabled. rs=jesup
CLOSED TREE
2016-05-05 06:21:00 -04:00
Kit Cambridge
c90a3eecfc Bug 1185716 - Unregistering a service worker should drop its push subscription. r=bkelly
MozReview-Commit-ID: A5MtdADIQVV

--HG--
extra : rebase_source : 2a87866053ee500a245b5496c8810e19bd9490ee
2016-05-03 11:44:40 -07:00
Kit Cambridge
7e0401c6d3 Bug 1267889 - Always steal the error result in PushMessage::Json. r=dragana
MozReview-Commit-ID: FOpIoIYBCFW

--HG--
extra : rebase_source : b58a1e9a9199ec781afb7a1dde77b250711d8510
extra : amend_source : b2cb82443ee0022f036d318d33e16f3de0ecf406
2016-04-26 18:26:30 -07:00
Kit Cambridge
c6e8720d75 Bug 1267021 - Use fallible allocation and move semantics for Push events. r=wchen
MozReview-Commit-ID: H43zrz5fhvU

--HG--
extra : rebase_source : 63631f3c2f4a3389e8e0365cd9a770a537162762
2016-04-22 20:54:22 -07:00
Kit Cambridge
91fa002ac4 Bug 1267493 - Replace isURIPotentiallyTrustworthy usage in Push with a testing pref. r=dragana
MozReview-Commit-ID: LrjAyVeNMyI

--HG--
extra : rebase_source : 7b2f821a80f853986bb196d8fc5e1eae9d77fd48
2016-04-25 20:53:06 -07:00
Kit Cambridge
2e593175f4 Bug 1266433 - Update the comments in the Push XPIDL interfaces. r=me
MozReview-Commit-ID: 7s9VFqYYV9s

--HG--
extra : rebase_source : 65498b06fd03e7824cf197e4f292f8b7fd5e85fb
2016-04-26 10:20:08 -07:00
Kit Cambridge
14ee7e9341 Bug 1266433 - Indicate push subscriptions created by privileged code. r=dragana
MozReview-Commit-ID: HYKndQiU98U

--HG--
extra : rebase_source : 5671a231b02dacf71de77a0d15c284c9b6365a73
2016-04-23 19:41:59 -07:00
Kit Cambridge
6de951432a Bug 1266433 - Clean up nsIPushNotifier static casts. r=dragana
MozReview-Commit-ID: AsZZ4TJquuB

--HG--
extra : rebase_source : c38f971c435748947c85c1f2bba9ea69d7fddaf1
2016-04-22 20:27:44 -07:00
Kit Cambridge
87fd821095 Bug 1266433 - Send an observer notification when a push subscription is lost. f=janx r=dragana
MozReview-Commit-ID: EjCVWje2jLB

--HG--
extra : rebase_source : 1cab8dfb1514a44a6e36f37e55e520ebaa343659
2016-04-21 12:04:15 -07:00
Kit Cambridge
4a32c937e7 Bug 1266433 - Send Push observer notifications to parent and content processes. f=janx r=dragana
MozReview-Commit-ID: 1aUS8HcQApo

--HG--
extra : rebase_source : 63c35b05cf9219c311ce96cd99932c6c20bd1e0c
2016-04-21 11:11:03 -07:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Kit Cambridge
b3e4980239 Bug 1266569 - Avoid including the ChromeUtils binding in Base64.h. r=froydnj
MozReview-Commit-ID: 8ZLdMhJMaUe

--HG--
extra : rebase_source : d5cb2b5bcc587bad95e6223d18ef38c6937f9270
extra : histedit_source : 208b28d87e223333c2995fd615e0602b11d5bb68
2016-04-22 07:41:58 -07:00
Kit Cambridge
341af4d90b Bug 1265914 - Remove Push UDP wake-up. r=dragana
MozReview-Commit-ID: 9uyrp75slCX

--HG--
extra : rebase_source : 92c211831bfb732ddf3b86eefd259b878f3ea7d5
extra : histedit_source : d363fd7b1fcaa0dfc48ff15425e0400ea91d6c20
2016-04-19 17:29:16 -07:00
Kit Cambridge
49323c9a2d Bug 1265915 - Remove adaptive pings from the Push WebSocket backend. r=dragana
MozReview-Commit-ID: 9QuMFgIlOPQ

--HG--
extra : rebase_source : bee5228f2658bb1f01639a57af469054e5984080
extra : histedit_source : 0883971413987576abe6949819eb1377471aa0e6
2016-04-19 16:41:12 -07:00
Kit Cambridge
4f57dd25ce Bug 1266540 - Stub out Push error reporting for the GCM and H2 backends. r=wchen
MozReview-Commit-ID: 9TFH69IrQpP

--HG--
extra : rebase_source : 3dca34edb05cc3f386872b555bb3455b2fead317
2016-04-21 13:35:26 -07:00
Kit Cambridge
4f645f9bfe Bug 1247685 - Send subscription keys to the Push server. r=mt
MozReview-Commit-ID: 2i3UqgNGlEt

--HG--
extra : rebase_source : 9c30f34c7de7c9fa7f04db5f224bad3ac0e68904
2016-03-22 16:29:16 -07:00
Kit Cambridge
21365c8060 Bug 1247685 - Validate and store app server keys in the Push service. r=mt
MozReview-Commit-ID: KLm6mP22y2E

--HG--
extra : rebase_source : ccda66192d5a64427bfd8699a70081f581dac5a1
2016-03-16 02:53:13 -07:00