Commit Graph

491 Commits

Author SHA1 Message Date
Florian Quèze
a03918c148 Bug 1330147 - automatic removal of the third boolean parameter in removeObserver calls, r=jaws. 2017-01-11 22:27:42 +01:00
Florian Quèze
fc6379e827 Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
Olli Pettay
0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Masatoshi Kimura
415e3e6e03 Bug 1321252 - Stop setting "network.http.spdy.enforce-tls-profile" in tests. r=nwgh
MozReview-Commit-ID: 6qbgQxG32Kj

--HG--
extra : rebase_source : 7059b80aabaeff03bfb2608dd757c4401fdda0e7
2016-11-30 19:33:46 +09:00
Nicholas Hurley
ad0fdc81aa Bug 1310855 - Remove hasNode xpcshell.ini variable r=mcmanus
MozReview-Commit-ID: Hx2e1JYfUfy

--HG--
extra : rebase_source : 70ffa6b9e38e357d797ef34a547d921e7a609410
2016-10-18 10:54:33 -07:00
Ehsan Akhgari
130dc996d0 Bug 1312101 - Part 1: Remove permission assertions through the message manager; r=baku
Since AddProcessChecker is going away, there's no point in these
permission checks any more.
2016-11-16 14:51:04 -05:00
Carsten "Tomcat" Book
c2fda627e6 Backed out changeset 829e818cd4c3 (bug 1263304) 2016-11-11 10:47:37 +01:00
Catalin Badea
514563efd9 Bug 1263304 - Enable debugging statements in test_has_permissions.html r=me a=testonly 2016-11-11 00:07:15 +02:00
Sebastian Hengst
49b78ed119 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: dom/push. r=RyanVM
MozReview-Commit-ID: Ku8mviLoJsT

--HG--
extra : rebase_source : f41790067ffa92449592a1d77beb024205ac002b
2016-11-05 11:29:17 +01:00
Kit Cambridge
2592d2afc8 Bug 1313063 - Only stop observing dom.push.userAgentID if we've finished the handshake. r=dragana
MozReview-Commit-ID: 8yjJfbXHLD5

--HG--
extra : rebase_source : a1f5e58d7489e70291598fb130e27a007d4dfd78
2016-10-27 08:55:50 -07:00
Kit Cambridge
3546f5ed59 Bug 1311739 - Silence serverURL pref warnings in push tests. r=dragana
MozReview-Commit-ID: 9Peorbb5pFS

--HG--
extra : rebase_source : b1050f209f8edbbf5aefd5cac91a94ee56de1620
2016-10-20 08:43:11 -07:00
Kit Cambridge
d1bf3d09e9 Bug 1311739 - PushDB.update should reject instead of returning undefined for invalid records. r=dragana
MozReview-Commit-ID: HCLOSz4FHWO

--HG--
extra : rebase_source : 57b4e19d3b391e9b0ad96b95d36aee4e3ebcc5a5
2016-10-20 08:45:44 -07:00
Kit Cambridge
ee288ff7bb Bug 1311739 - Fail push tests with an informative error if the H/2 server port is missing. r=dragana
MozReview-Commit-ID: 97rOKjbDlTu

--HG--
extra : rebase_source : 62c385b7317a3d9d3a7ad807eca6667ae25a255b
2016-10-20 09:25:36 -07:00
Kit Cambridge
bfc6259dcd Bug 1307577 - Switch to createCodebasePrincipal in PushRecord. r=mt
`createCodebasePrincipalFromOrigin` mangles the origin after extracting
the suffix. The proper long-term fix is to serialize and store the
original principal, instead of reconstructing a new codebase principal
from the scope and origin suffix.

MozReview-Commit-ID: bS2lRx3n7j

--HG--
extra : rebase_source : b62001f997718455b2b6c7cb3074ee79fa68ec25
2016-10-20 10:29:58 -07:00
Jon Coppeard
556585c65f Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8 2016-10-18 17:58:19 +01:00
Kit Cambridge
e1271e1b81 Bug 1308590 - Link to references in the Push encryption error strings. r=flod
MozReview-Commit-ID: 9NPmNHoytrc

--HG--
extra : rebase_source : 1d0b8b075d178aab98941190b7177a66442d12ee
2016-10-07 11:48:58 -07:00
Ryan VanderMeulen
38574eeac5 Merge m-c to inbound. a=merge 2016-10-07 09:44:29 -04:00
Yoshi Huang
2a51f65d99 Bug 1237152 - rename clear-origin-data to clear-origin-attributes-data, r=smaug
find \( -name '*.cpp' -o -name '*.h' -o -name '*.js' -o -name '*.jsm' -o -name '*.idl' -o -name '*.html' \) \
-a -type f -exec sed -i 's/clear-origin-data/clear-origin-attributes-data/g' {} \;
2016-10-07 17:45:10 +08:00
Kit Cambridge
a69ba96059 Bug 1301469 - Add localized decryption errors for invalid headers and padding. r=mt
Web Crypto returns an unhelpful "operation failed for an
operation-specific reason" error if the actual decryption fails, but
we can report more useful errors for missing and invalid header
values.

MozReview-Commit-ID: JRdGHBUodmb

--HG--
extra : rebase_source : 8f1b047b6f01c89a852aefbb1349a608f1178ab8
2016-10-05 08:57:52 -07:00
Kit Cambridge
fb5b58f401 Bug 1301469 - Handle exceptions thrown by PushCrypto.decodeMsg as decryption errors. r=mt
Previously, errors thrown by `decodeMsg` and `getCryptoParams` would
bubble up to the catch handler in `receivedPushMessage`, causing us to
report "ACK_NOT_DELIVERED" instead of "ACK_DECRYPTION_ERROR" in the ack
sent to the server.

MozReview-Commit-ID: FZFzYdebQGy

--HG--
extra : rebase_source : b21f15cc9ac12ff11496d4f63ee531c021bd7a29
2016-10-05 08:56:55 -07:00
Sebastian Hengst
ca9181b9de Bug 1306397 - Remove B2G event 'network-active-changed' and consumers from non-B2G/Gonk files: dom/push. r=kitcambridge
MozReview-Commit-ID: 2MbQ54EgOjh

--HG--
extra : rebase_source : f116c1563e6ec290a9be798af49363989b87311d
2016-09-29 19:53:44 +02:00
Gabriele Svelto
fe73634c76 Bug 1296579 - Remove the SimplePush API r=kitcambridge,baku 2016-09-01 20:17:03 +02:00
Ben Kelly
77f99cddcd Bug 1262702 Avoid racing with initial shutdown in test_service_worker_lifetime.html. r=kitcambridge 2016-08-30 10:04:27 -07:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Edouard Oger
83666a61d8 Bug 1287643 - FxA Push registration and handling of device disconnection message. r=kitcambridge,nalexander
MozReview-Commit-ID: 8IH3kBivp26

--HG--
extra : rebase_source : b3e2d2587f111c9d2c8d0eab887027caf92fe859
2016-07-20 10:47:04 -07:00
Ben Kelly
b98f2c8525 Bug 1290116 P7 Fixed activation races in push service worker tests. r=kitcambridge 2016-08-18 07:12:09 -07:00
Andrea Marchesini
a672d6383b Bug 1288903 - PushManager should create arrayBuffers and keys using the target window - part 2, r=kcambridge 2016-08-18 08:07:17 +02:00
Phil Ringnalda
4083fafafc Backed out 10 changesets (bug 1290116, bug 1293690) for build bustage
CLOSED TREE

Backed out changeset bbc14d107fca (bug 1290116)
Backed out changeset a81b6ce5c25f (bug 1290116)
Backed out changeset e0b9c25b6125 (bug 1290116)
Backed out changeset 8e9a9ba04ce5 (bug 1290116)
Backed out changeset 2d5ad5e9ed20 (bug 1290116)
Backed out changeset eb7da0dbfc72 (bug 1290116)
Backed out changeset 6a4e8c92faae (bug 1290116)
Backed out changeset 0342d98afa10 (bug 1293690)
Backed out changeset d84b0768f0ce (bug 1293690)
Backed out changeset f9f62ade9508 (bug 1293690)
2016-08-17 21:16:43 -07:00
Ben Kelly
11f187d4ff Bug 1290116 P7 Fixed activation races in push service worker tests. r=kitcambridge 2016-08-17 20:03:21 -07:00
Andrea Marchesini
6e070dd30b Bug 1288903 - PushManager should create arrayBuffers and keys using the target window, r=kcambridge 2016-08-16 11:15:45 +02:00
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
Kit Cambridge
3dc35814a4 Bug 1247685 - WebIDL and DOM implementation changes for app server keys. r=mt,baku
MozReview-Commit-ID: 1xYjSuLMnV4

--HG--
extra : rebase_source : 6bcb2e662cfa9a0d942731e8914a9df2e3dee197
2016-03-22 13:38:03 -07:00
Kit Cambridge
d21d6da5e8 Bug 1256488 - Add a Base64 URL-decoder for C++ and chrome JS callers. r=mt,baku
MozReview-Commit-ID: IrDwImYfHRu

--HG--
extra : rebase_source : ed7da7447e5d70c596234961625fcd4b8139814f
2016-03-22 12:09:04 -07:00
Jim Chen
c433e8ff00 Bug 1252650 - Support loading PushService immediately on Android; r=kitcambridge
Normally we delay-load PushService on session restore. However, we won't
have session restore when Gecko is running in background without GUI. So
we need a way to load PushService immediately.
2016-04-20 15:06:13 -04:00
Jonathan Watt
c55f3816d1 Bug 1265705 - Silence startup JavaScript strict warning in resource://gre/modules/PushService.jsm. r=kitcambridge 2016-04-13 18:16:29 +01:00
Kit Cambridge
f206eaee71 Bug 1263747 - Log error messages when stringifying errors. r=bgrins
MozReview-Commit-ID: 2MB8IDKfVHo

--HG--
extra : rebase_source : d7922cf9a5c1dc37283299aa97c4b596fb0b68bd
2016-04-11 14:51:33 -07:00
William Chen
7123f415a0 Bug 1260499 - Handle incoming messages before push service is initialized. r=nalexander,jchen
--HG--
extra : rebase_source : b36be1078f2952aab5cc95e4a9c2a44e85f7876b
2016-04-13 16:55:25 -07:00
William Chen
3b5039d9a7 Backed out changeset 6ccfb75c8926 (bug 1260499) for wrong patch
--HG--
extra : rebase_source : 2915ef7ca91bafc94532fb38a179cc49e9d4e9a0
2016-04-13 15:37:48 -07:00
Kit Cambridge
eafb9be496 Bug 1258595 - Wait for the Push service to shut down between tests. r=wchen
MozReview-Commit-ID: 1Ujqn1xNsMU

--HG--
extra : rebase_source : b51da9e58ce9904acff0202d57e258f1355076a1
extra : amend_source : 2ab09ebeb828a4ced87e88a0ced0447d2dfb8480
2016-04-08 11:39:00 -07:00
Kit Cambridge
ab3c075f11 Bug 1258595 - Shut down the Push service if errors occur at startup. r=wchen
MozReview-Commit-ID: HMWMJ5qPGwY

--HG--
extra : rebase_source : a59107cac8bd428ca521271be9045797e927b0cc
extra : source : 6733c0861332ad11ae84b9aedb0bc5ab642fa085
2016-03-21 18:07:16 -07:00
William Chen
01a139d9a0 Bug 1260499 - Handle incoming messages before push service is initialized. r=nalexander,jchen
--HG--
extra : rebase_source : 8f6682b61d77c4c943914b23f2eb5ba1c014a576
2016-04-13 14:30:33 -07:00
Carsten "Tomcat" Book
39feff8fe1 Backed out changeset 6733c0861332 (bug 1258595) for m3 test failures 2016-04-07 14:22:33 +02:00
Johann Hofmann
5c9a95e828 Bug 1262559: Fix misspelled comment in dom/push/PushServiceWebSocket.jsm; r=jdm
MozReview-Commit-ID: 6UhyYkb08Fr

--HG--
extra : histedit_source : 9260c1a47682a239d09f91dfe59d0b39e5d9335a
2016-04-06 20:18:04 +02:00
Kit Cambridge
9115d2a29b Bug 1258595 - Shut down the Push service if errors occur at startup. r=wchen
MozReview-Commit-ID: HMWMJ5qPGwY

--HG--
extra : rebase_source : 348180c6eb9bfac5222371edaaa7850f750dabac
2016-03-21 18:07:16 -07:00
Mark Hammond
946a6203a0 Bug 1262618 - Fix an unchained promise and a couple of non-promise returns in the push service. r=wchen 2016-04-06 15:46:41 -07:00
Kit Cambridge
2bfd46b860 Bug 1257401 - Remove the worker descriptor for PushManager. r=khuey
MozReview-Commit-ID: 4nZElH1K3W5

--HG--
extra : rebase_source : d325e2fc44124acc0bd04b133605bf04a99ab906
2016-04-01 15:25:49 -07:00
Kit Cambridge
9bf9d2c2c9 Bug 1257401 - Remove the worker descriptor for PushSubscription. r=khuey
MozReview-Commit-ID: 9rTJn4KU2Es

--HG--
extra : rebase_source : 446483edea7d5a08c4accf3c4787f08bc3a94cd5
2016-03-31 10:49:07 -07:00
Kit Cambridge
a6d5a040d9 Bug 1257821 - Remove the authenticated aesgcm128 content coding scheme. r=mt,marco
MozReview-Commit-ID: 5pX2GHJ2lNz

--HG--
extra : rebase_source : 8747786a915e0adb3be7555dd1648e3e03b4fbf0
2016-03-22 19:20:36 -07:00
Kit Cambridge
f57e60c641 Bug 1247089 - Log Web Push decryption errors. r=bkelly
MozReview-Commit-ID: HEEq8IPlwBx

--HG--
extra : rebase_source : 8501836fa322b3a09ffec21e83fdb32e4aa3abf5
2016-03-28 13:33:20 -07:00
Kit Cambridge
18c5c296ef Bug 1246341 - Add a test for push event error reporting. r=dragana
MozReview-Commit-ID: LABOJnYtpD5

--HG--
extra : rebase_source : 86c27b8a2deb388cdb34a82aebd12b042477acb5
2016-03-28 11:40:58 -07:00
Kit Cambridge
d97d284c24 Bug 1246341 - Include status codes in "ack" and "unregister" requests. r=dragana
MozReview-Commit-ID: Gsh3FhTfvkX

--HG--
extra : rebase_source : 94b9afcf006a6201f01875df1aae20c8bb52fb76
2016-03-28 12:29:25 -07:00
Kit Cambridge
d55b21e98b Bug 1246341 - Report push event errors and rejections to the Push service. r=baku
MozReview-Commit-ID: D6fRPqojOEh

--HG--
extra : rebase_source : 41c55862cb7393681fdea28e35b689a970a376c3
2016-03-28 11:50:39 -07:00
Kyle Huey
d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Kit Cambridge
8943858ebf Bug 1253831 - Don't check actual intervals in the Push backoff test. r=wchen
MozReview-Commit-ID: CUESwtv58LJ

--HG--
extra : rebase_source : 600b8baeeea6334726c88bf1cba64b2d5635c405
2016-03-19 15:29:11 -07:00
Kit Cambridge
bc0b536de1 Bug 1257821 - Support the new aesgcm content encoding scheme. r=mt
MozReview-Commit-ID: IPNXletzJRK

--HG--
extra : rebase_source : 3593624d3513a0ccc7422bfeefe5c85dca37541a
2016-03-18 09:01:50 -07:00
Kit Cambridge
755fc071a9 Bug 1258883 - Add a way to replace the entire Push service in tests. r=wchen
MozReview-Commit-ID: ExJPShvXL5L

--HG--
extra : rebase_source : acafdaf81a8c47d811772dfabc24e001a69d429b
2016-03-22 17:34:41 -07:00
Kit Cambridge
896fb82ab8 Bug 1258145 - Remove waitForPromise from the xpcshell tests. r=wchen
MozReview-Commit-ID: 6dX63gyXw07

--HG--
extra : rebase_source : b5638140200403f4441ab2a60d69b3baae6d6de6
2016-03-19 14:57:15 -07:00
Ryan VanderMeulen
dd9dced81d Merge inbound to m-c. a=merge 2016-03-19 11:22:28 -04:00
Ryan VanderMeulen
d37d8fbb9a Bug 1257708 - Move dom/push/test back into mochitest-plain instead of a separate test suite. 2016-03-19 11:02:04 -04:00
William Chen
1d955fb568 Bug 1164432 - Update test_try_registering_offline_disabled.html to use mock push server. r=kitcambridge 2016-03-19 00:35:57 -07:00
Ryan VanderMeulen
ae58ec8c78 Backed out changeset 7e63f8cd76bb (bug 1164432) for test_try_registering_offline_disabled.html failures. 2016-03-19 00:01:19 -04:00
William Chen
a07586e88d Bug 1164432 - Update test_try_registering_offline_disabled.html to use mock push server. r=kit 2016-03-18 00:20:00 -04:00
Kit Cambridge
fa6e8e2743 Bug 1257405 - Increase auth secret length to 16 octets. r=mt
MozReview-Commit-ID: 3oiYMgQHckk

--HG--
extra : rebase_source : b15e184c0ffd3845eaf913ec5cdb654b9a7a1932
2016-03-16 19:53:19 -07:00
William Chen
6f3a1d7c9e Bug 1244816 - Create PushService mock for mochitests backed by a mock web socket. r=kitcambridge 2016-03-17 17:11:22 -07:00
William Chen
2d5b3a7771 Bug 1246066 - Clear PushService timeout tasks on uninitialization. r=kitcambridge 2016-03-16 10:03:02 -07:00
Wes Kocher
0fbf6c1476 merge inbound to m-c a=merge
MozReview-Commit-ID: BHxDQF6gIe3
2016-03-08 16:00:45 -08:00
vladikoff
5ceebef356 Bug 1247786 - Add push subscription to device registration r=kitcambridge,markh
MozReview-Commit-ID: 40Tt8sJPYrr

--HG--
extra : rebase_source : e80d3230a7a38e2b28c736cb0188c60be1d6a871
2016-03-07 00:00:34 -05:00
Mark Hammond
61b041057e Bug 1252290 - load xpcom services registered with the category manager as being able to handle push notifications before delivering them. r=kitcambridge 2016-03-07 16:46:10 +11:00
Ryan VanderMeulen
54367e83bf Merge fx-team to m-c. a=merge 2016-03-05 19:22:45 -05:00
Nick Alexander
ccc9fe3af8 Bug 1214338 - Implement Android GCM-based PushService protocol. r=rnewman r=kitcambridge
MozReview-Commit-ID: 1KV7CZBuosx

--HG--
extra : rebase_source : 3471f20edb2da4e4c2878c0ab130801237b63597
2016-03-04 15:48:09 -08:00
Kit Cambridge
d2fcfdda5d Bug 1253438 - Expose Push observer notification topics. r=markh
MozReview-Commit-ID: HublNSAD3NY

--HG--
extra : rebase_source : ca89fad6bfafa403e97c1e1defc4d3a0673af430
2016-03-03 14:37:10 -08:00
J. Ryan Stinnett
2a55d065b7 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Ehsan Akhgari
119e7f4cad Bug 1232029 - Set some prefs that some tests rely on explicitly; r=bkelly 2016-03-01 10:09:06 -05:00
Ehsan Akhgari
8a0731fdde Bug 1251875 - Part 1: Remove the dom.serviceWorkers.interception.enabled pref; r=bkelly 2016-03-01 09:16:38 -05:00
Boris Zbarsky
f47268eca8 Bug 1252127. Remove unnecessary JSContext argument from PromiseWorkerProxy::CleanUp. r=khuey 2016-02-29 14:52:42 -05:00
Huma Zafar
06fc8dac78 Bug 1206166 - Move FetchUtil::Consume methods into separate BodyUtil class and update Fetch.cpp and ServiceWorkerEvents.cpp accordingly. r=kitcambridge
MozReview-Commit-ID: KgEccQ2LPpC

--HG--
extra : histedit_source : 17fb2f5c022399b050a12b013f004e628ca4b9d0
2016-02-27 13:54:11 -08:00
Boris Zbarsky
7345c5edb1 Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey 2016-02-26 15:23:12 -05:00
William Chen
92634cabdf Bug 1251113 - Change PushService state to PUSH_SERVICE_UNINIT in the state change process queue. r=dragana 2016-02-26 10:29:09 -08:00
Kit Cambridge
705744ff4b Bug 1243856 - Remove alarms from the Push H2 backend. r=dragana
MozReview-Commit-ID: LZJY0DtLE4E

--HG--
extra : rebase_source : 336c99819da6437a6a353946809f41b623bdc611
extra : source : a3a8b32866013bc64bf31c62a1fe9cf0a109cf33
2016-02-03 18:16:10 -08:00
Kit Cambridge
f82589cbd1 Bug 1243856 - Remove alarms from the Push WebSocket backend. r=dragana
MozReview-Commit-ID: c1P4xK8txJ

--HG--
extra : rebase_source : 879c96a6e3d7a691b8e377d24644e5a1888a2c75
extra : source : a8e2c9ff57a72a4810453643a571a42c96b6a10c
2016-02-03 15:27:34 -08:00
Kit Cambridge
10df43f248 Bug 1250266 - Always send a TTL in the Push mochitests. r=benbangert
MozReview-Commit-ID: 4hoBveTY2pE

--HG--
extra : rebase_source : a1728e6b23c5852d1ca2977fb9d150891568791d
2016-02-22 11:54:54 -08:00
Kit Cambridge
ff6fdbef17 Bug 1246073 - Fix unique constraint errors in the H2 backend when resubscribing. r=dragana
MozReview-Commit-ID: DciQIx9T99U

--HG--
extra : rebase_source : 4d9c3a40626280bdada21e58c3112b70b3ac5b2d
2016-02-04 20:17:07 -08:00
Nick Alexander
5f7db00eeb No bug - Use default skip-if. r=me
We want to change this to run these tests on Fennec (but not b2gdroid);
this'll make it easier.  In addition, this makes it easier to rebase
Fennec Push patches that touch this file.

MozReview-Commit-ID: 97UftkziZ4A
2016-02-15 09:54:23 -08:00
Carsten "Tomcat" Book
b8f6140f54 merge mozilla-inbound to mozilla-central a=merge 2016-02-10 11:47:34 +01:00
Marco Bonardo
d1f0a04370 Bug 1243778 - PushRecord::getLastVisit cannot rely on the Places url index anymore. r=kitcambridge
--HG--
extra : commitid : 4zr7xfJixhU
extra : rebase_source : b3fa86b314d338b2ee0fc846d212ba6bb6c2ab0c
2016-02-08 14:42:07 +01:00
Kit Cambridge
efe23eadc2 Back out 2 changesets (bug 1243856) for intermittent xpcshell failures on a CLOSED TREE.
--HG--
extra : commitid : HOS6utihBe9
2016-02-05 22:39:23 -08:00
Dragana Damjanovic
124d661902 Bug 1246632 - Fix ackMsgRecv in PushServiceHttp2.js. r=kitcambridge 2016-02-08 06:40:00 +01:00
Kit Cambridge
7242c3549a Bug 1243856 - Remove alarms from the Push H2 backend. r=dragana
--HG--
extra : commitid : IdPNgHFGj1O
extra : rebase_source : c98f56b8c9e4683cf77ebd4269c834579d7651dd
2016-02-03 18:16:10 -08:00
Kit Cambridge
7bdf56f6bd Bug 1243856 - Remove alarms from the Push WebSocket backend. r=dragana
--HG--
extra : commitid : BFuMZVMSDs0
extra : rebase_source : 072f03fc57886b4fac2b3727c8258e0177960127
2016-02-03 15:27:34 -08:00
Kit Cambridge
6a09c44325 Bug 1219064 - Add test for extendable pushsubscriptionchange event. r=mt
--HG--
extra : commitid : 11uVDDnvoeE
extra : rebase_source : 04651f9d10fe23b719800e0cf31174ba0239fd5e
2016-01-28 19:26:17 -08:00
Kit Cambridge
d977630d47 Bug 1243781 - Push methods called from a worker should reject with a DOMException. r=mt
--HG--
extra : commitid : GyMrfLbnMVY
extra : rebase_source : a68422c66ede9f3eaca14de1d966be75ebd622b9
2016-01-28 08:23:29 -08:00
Kit Cambridge
3439243de8 Bug 1191931, Part 2 - Test resubscribing from a worker. r=mt
--HG--
extra : commitid : 6ZboHyRd5dR
extra : rebase_source : 074381c7b5133f7c4f37ab660cfd7afa54a23c65
2016-01-28 08:06:32 -08:00
Kit Cambridge
02f444f5c0 Bug 1191931, Part 1 - Use tasks in the Push subscription tests. r=mt
--HG--
extra : commitid : EAUs5BX5o9E
extra : rebase_source : 4590d5d3a08ff89b35c9c237a910e8e4690c80ba
2016-01-28 07:57:42 -08:00
Paolo Amadini
8b8676204b Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : yWjnDGhk9j
extra : rebase_source : 24228660defd6971a621d52eee0b79be823c6926
extra : amend_source : ef8de24265fa9026b0f764a63453b816442f7232
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-02-03 12:58:03 +00:00
Wes Kocher
1b65a8ee2f Backed out changeset e8148cda7d85 (bug 989960) for xpcshell bustage
--HG--
extra : commitid : Bxwy5tzArNN
extra : rebase_source : a15513777534e54d05fda5037f24e15ac089b313
2016-02-01 08:25:19 -08:00
Carsten "Tomcat" Book
75413d36fe Merge mozilla-central to fx-team 2016-02-01 16:26:01 +01:00
Carsten "Tomcat" Book
9a95326890 Backed out changeset 02bcedf966fd (bug 1191931) for still failing push perma failure 2016-02-01 12:41:03 +01:00
Carsten "Tomcat" Book
6f89c9107b Backed out changeset 6df33c3ef63b (bug 1191931) 2016-02-01 12:40:38 +01:00
Carsten "Tomcat" Book
0cc03eb73c Backed out changeset 6d13649d2f01 (bug 1243781) 2016-02-01 12:40:36 +01:00
Carsten "Tomcat" Book
dec75fcac9 Backed out changeset eaa49fbb1bc2 (bug 1219064) for perma failures in test_data.html 2016-02-01 10:06:43 +01:00
Paolo Amadini
ecd744bdef Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : 6aGIHyyYqSo
extra : rebase_source : 38fbf5e49d06970555a088c5ea3f8379e2064767
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-01-30 18:53:56 +00:00