Martin Thomson
d8c0edad16
Bug 1225968 - Refactor data delivery tests to support addition of new tests, r=kitcambridge
...
--HG--
extra : commitid : BDX6sCt4cbd
extra : rebase_source : b13732d37c0fce50816f7e96a03f9bf3a8e76458
2015-11-20 14:21:24 -08:00
Martin Thomson
6e6387eecb
Bug 1225968 - Add authentication secret to push API, r=kitcambridge,smaug
...
--HG--
extra : commitid : 5qD0xsj9DLR
extra : rebase_source : 407d4152f897f87fa9b5fae8b6b93ef510cce59f
2015-12-09 07:26:42 +11:00
Fernando Jimenez
d4b4ef35f7
Bug 1227908 - JavaScript error: resource://gre/modules/PushService.jsm, line 281: ReferenceError: data is not defined. r=kcambridge
2015-11-26 16:52:54 +01:00
Boris Zbarsky
35f1292e72
Bug 1225603. Codegen ToJSValue overloads for Web IDL enums. r=smaug,jib
2015-11-21 12:15:11 -05:00
Kit Cambridge
da70e5e668
Bug 1170115 - Use `clear-origin-data` to remove Push records. r=allstars.chh
...
--HG--
extra : commitid : HPTqiGSIMbc
extra : rebase_source : 04ebebe52cd847c2258913ca97ed2dcc09aa9c32
2015-11-13 15:18:10 -08:00
William Chen
551e115461
Bug 1210211 - Part 3: Test for push notification quota with web notifications. r=kitcambridge
...
--HG--
extra : commitid : 6jOIM2i8D3P
extra : rebase_source : 2c3dbcb73f561d8a6132f465148b59d269f96d8b
2015-11-16 21:34:00 -08:00
William Chen
cfff602824
Bug 1210211 - Part 2: Notify Push service of visible notifications. r=baku
...
--HG--
extra : commitid : JIe7odI4Fgo
extra : rebase_source : f71dc1cf94def6ad72db773c1ba77473149f8359
2015-11-16 21:33:17 -08:00
William Chen
8588891ca7
Bug 1210211 - Part 1: Delay updating push quota. r=kitcambridge
...
--HG--
extra : commitid : 70QSm4u4WLW
extra : rebase_source : e52cc3bae822448e64dca6c40be48d74ea924e0b
2015-11-16 21:33:11 -08:00
Phil Ringnalda
6edbd4d1af
Back out 3 changesets (bug 1210211) for b2g build bustage
...
CLOSED TREE
Backed out changeset 204a1746f421 (bug 1210211)
Backed out changeset e5d16111e809 (bug 1210211)
Backed out changeset b78d00c9af42 (bug 1210211)
2015-11-16 19:34:14 -08:00
William Chen
658a242e1a
Bug 1210211 - Part 3: Test for push notification quota with web notifications. r=kitcambridge
...
--HG--
extra : commitid : 7VLdKkGHG
extra : rebase_source : 222edbb7684e86e1fd656ad91df6d9ce4661105e
2015-11-16 13:20:20 -08:00
William Chen
1677aaeb9a
Bug 1210211 - Part 2: Notify Push service of visible notifications. r=baku
...
--HG--
extra : commitid : 7lTQ80hfQU6
extra : rebase_source : f31c7dd4c3dc9f9d4bb492791fd59c413268d22d
2015-11-16 13:20:15 -08:00
William Chen
e791f70b13
Bug 1210211 - Part 1: Delay updating push quota. r=kitcambridge
...
--HG--
extra : commitid : GXDHaPbe8pi
extra : rebase_source : 260a2a8e1434355671b25d58e36007c88b934464
2015-11-16 13:20:09 -08:00
Kit Cambridge
8431cd65cd
Bug 1223481 - Use the "potentially trustworthy origin" helper to validate Push server URLs. r=dragana
...
--HG--
extra : commitid : 6RrHT77kcOj
extra : rebase_source : b5b498cc266e2c1c97459ace3da3febbb6a34e65
2015-11-10 10:50:46 -08:00
Kit Cambridge
53cdf28e5a
Bug 1223202 - Only send subscription change events if the Push permission is granted. r=mt
...
--HG--
extra : commitid : 4m6UEhlrFtl
extra : rebase_source : 512c9e2ea4be850994e891fc8193df17a2788260
2015-11-10 14:27:47 -08:00
Kit Cambridge
b8e624b786
Bug 1210896, Part 2 - Use JS errors to reject internal Push promises. r=mt
...
--HG--
extra : commitid : CD3LEbvrDYq
extra : rebase_source : d1d633073a8729d67b44ad0f5b19afc50d692ebd
2015-11-09 13:58:50 -08:00
Kit Cambridge
e5aa219f60
Bug 1210896, Part 1 - Use `Console.jsm` to log Push errors. r=mt
...
--HG--
extra : commitid : D2lgLoQtSlk
extra : rebase_source : 58bb82b758ef4dc2c4e8b8a7e902c266670347e8
2015-11-09 13:58:32 -08:00
Kit Cambridge
1a2d174fbf
Bug 1206302 - Use `DOMException` for Push errors. r=mt
...
--HG--
extra : commitid : 12nCKPtERml
extra : rebase_source : 1d59f113235a98ca30653d2c935e0cc2e7bc8931
2015-11-05 10:38:35 -08:00
Kit Cambridge
a434586a78
Bug 1219063, Part 2 - Remove obsolete "push" permission. r=mt
...
--HG--
extra : commitid : Gwzo2WQgBrD
extra : rebase_source : 300428e3ce886f27b12f0c6abe503e2e002bbab8
2015-10-30 18:16:19 -07:00
Kit Cambridge
818dc96a78
Bug 1219063, Part 1 - Use transactions for updating Push subscription permissions. r=mt
...
--HG--
extra : commitid : 8ozjimWcLTn
extra : rebase_source : 8a7fe8f397256ce9e02a19bb7df40c8916a3beac
2015-10-30 18:15:48 -07:00
Kit Cambridge
5c2750f5a6
Bug 1159641, Part 2 - Use tasks in the Push permissions test. r=mt
...
--HG--
extra : commitid : 35UxmOh7qlF
extra : rebase_source : b8eed6ec86fd7a8738d4022bc0972f3d70830098
extra : histedit_source : 10083dedd8fdb3535c0d3d899c90da0a844a6de8
2015-10-30 11:48:56 -07:00
Kit Cambridge
ce72643192
Bug 1159641, Part 1 - Skip the permission check in `pushManager.getSubscription()`. r=mt
...
--HG--
extra : commitid : KlBKsjxZn42
extra : rebase_source : b7071400bdaec6eeabfad1f458bda023144e51b1
extra : histedit_source : c68c86bca0c4c2abe0c01bae824a43a36150c48d
2015-10-30 09:37:22 -07:00
Kit Cambridge
4792069b33
Bug 1218591 - Reset the WebSocket retry counter when the server replies. r=dragana
...
--HG--
extra : commitid : L8bN4lFe50x
2015-10-28 17:07:11 -07:00
Dragana Damjanovic
4cd1bc150b
Bug 1216683 - For the WebSocket version unregister should return true even if we are offline. r=kitcambridge
2015-10-27 09:13:00 +01:00
Carsten "Tomcat" Book
6dfc4c0fb5
merge mozilla-inbound to mozilla-central a=merge
2015-10-27 10:55:48 +01:00
Wes Kocher
167aaf2232
Merge m-c to fx-team, a=merge
...
--HG--
extra : commitid : JnFqljHzGAU
2015-10-26 14:39:31 -07:00
Ehsan Akhgari
7029e804f8
Bug 1218135 - Remove FetchEvent.client; r=bzbarsky
...
This has been removed from the spec. See:
https://github.com/slightlyoff/ServiceWorker/issues/723#issuecomment-123516555
2015-10-26 23:00:16 -04:00
Andrea Marchesini
8ec6671244
Bug 1203802 - Websocket Frame Listener API for devtool Network Inspector - part 1 - WindowID added into WebSocketChannel, r=michal
2015-10-26 15:29:28 +00:00
Nick Alexander
8b9481fa99
Bug 1214366 - Part 3: Use getLastVisited equivalent in PushService.jsm. r=kitcambridge,rnewman
...
--HG--
extra : commitid : 7BJvkjwmp6t
extra : rebase_source : b856fccd39ddf3cf8692b45b6b2d77e6c229f51a
2015-10-23 10:07:05 -07:00
Nick Alexander
094c128f78
Bug 1214366 - Part 1: Don't preprocess PushServiceWebSocket.jsm. r=kitcambridge
...
Just a little build system clean-up. There's no reason for this to be
special, and it's easier to use in the debugger with correct line
numbers.
--HG--
extra : commitid : JCVz3bj1bH5
extra : rebase_source : 73c3556e84f8e4b1189f54bad544033bdf27eb48
2015-10-16 14:04:37 -07:00
Kit Cambridge
641f7ea40a
Bug 1217065 - Unconditionally ack incoming updates. r=dragana,benbangert
...
--HG--
extra : commitid : B1gV3zsa54r
2015-10-22 10:32:33 -06:00
Kit Cambridge
bca5312693
Bug 1206163 - Retry failed register requests on reconnect. r=dragana
...
--HG--
extra : commitid : ITUpqPr1O3m
extra : amend_source : 8c9062cd1d3fcecc5b78ea0773fff3c618b440b5
2015-10-22 10:14:43 -06:00
Kit Cambridge
421c7b6540
Bug 1201128 - Don't send channel IDs in the Push handshake. r=nsm
...
--HG--
extra : commitid : 7fv5Up5JnkG
extra : rebase_source : 462ffb3f9b6caefa2d27f41e69e0c1d0c98f6690
2015-10-26 08:42:29 -07:00
Dragana Damjanovic
0515643189
Bug 1212593 - Fix PushService behavior when we are switching between push servers. r=kcambridge
2015-10-20 01:33:00 +02:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Kit Cambridge
3898c24797
Bug 1191453
- Drop subscriptions for a site when the user revokes push permissions. r=mt,MattN
...
--HG--
extra : commitid : JlZvX8xAxRf
extra : rebase_source : 14372dacf2d519784890550a0e77d4c05e4f2c1a
2015-10-06 08:14:25 -07:00
Nicholas Hurley
4c3788b7e0
Bug 1197847 - make debugging h2 and spdy test servers easier. r=mcmanus
...
--HG--
extra : rebase_source : d7559f26af0fb04ae2249db4acc181ff9be6eb6b
2015-10-05 13:13:05 -07:00
Kit Cambridge
74ef03c1a6
Bug 1192458, Part 1 - Consolidate push and desktop notification permissions. r=nsm,wchen,MattN
...
--HG--
extra : commitid : 1veevVaOOYv
2015-10-05 16:39:34 -07:00
Kit Cambridge
cfd53ffe54
Bug 1210943 - Drop subscriptions unconditionally if the UAID changes. r=benbangert
...
--HG--
extra : commitid : 6vvxcaIIAbE
extra : amend_source : 1ea3d4821cb9a7b799f33da897d14cbd28a0c118
2015-10-03 14:59:24 -07:00
Catalin Badea
12590da787
Bug 1188545 - Fixup for test_serviceworker_lifetime.html a=testonly
2015-10-01 01:42:18 -04:00
Catalin Badea
450ddec732
Bug 1188545 - Add tests for service workers' lifetime management. r=nsm
2015-09-30 19:11:03 -04:00
Wes Kocher
6fbdec2422
Backed out 12 changesets (bug 1188545) for test_fetch_cors failures CLOSED TREE
...
Backed out changeset e04738ee72a3 (bug 1188545)
Backed out changeset 1989893b59de (bug 1188545)
Backed out changeset 11ff29cc25d8 (bug 1188545)
Backed out changeset 4b6bdf859845 (bug 1188545)
Backed out changeset 76eb7ffeca2a (bug 1188545)
Backed out changeset 4473e036b52e (bug 1188545)
Backed out changeset 2a28cb794b23 (bug 1188545)
Backed out changeset 1fa2f55727f3 (bug 1188545)
Backed out changeset 032f4c24fc34 (bug 1188545)
Backed out changeset 4be675dc1b37 (bug 1188545)
Backed out changeset d5d05def5b17 (bug 1188545)
Backed out changeset e94f12b0bcf3 (bug 1188545)
2015-09-30 11:11:47 -07:00
Stephanie Ouillon
5e14a3b3a8
Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages r=bholley,fabrice,valentin
2015-08-26 13:12:13 +02:00
Catalin Badea
e3772b283b
Bug 1188545 - Add tests for service workers' lifetime management. r=nsm
2015-09-30 10:14:33 -04:00
Carsten "Tomcat" Book
64c0a617b7
Backed out 1 changesets (bug 1178533) for xpcshell-1 test failures
...
Backed out changeset b12584fad334 (bug 1178533)
2015-09-24 08:41:04 +02:00
Stephanie Ouillon
478b31c634
Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages. r=bholley, r=fabrice, r=valentin
2015-09-23 07:41:00 +02:00
Carsten "Tomcat" Book
58878018ac
Backed out 1 changesets (bug 1178533) for s4 testfailures
...
Backed out changeset 8bbdb80f67e0 (bug 1178533)
--HG--
extra : rebase_source : 040491f382ad7b03ba803686601f1272416ab47d
2015-09-23 10:17:54 +02:00
Stephanie Ouillon
ad9e2b8a95
Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages. r=bholley, r=fabrice, r=valentin
2015-09-22 11:55:00 +02:00
Kit Cambridge
7f516ea381
Back out bug 1205109 for Push mochitest failure.
...
--HG--
extra : commitid : 8uF5cA3R489
extra : rebase_source : 32dcfc2a2816dabecb7a102d7b44b8f2d2c89160
2015-09-18 18:15:23 -07:00
Kit Cambridge
731f585e6c
Bug 1205109 - Make `pushsubscriptionchange` extendable. r=mt,nsm
...
--HG--
extra : commitid : 4ziWEfRBlb4
extra : rebase_source : 8998aaf2f21825c93aba12de2a8543ecb64d7c1b
2015-09-17 05:15:45 -07:00
Kit Cambridge
556109257e
Bug 1205112 - Make `PushEvent.data` nullable. r=mt,smaug
...
--HG--
extra : commitid : 8kofiFgB7WB
extra : rebase_source : 1ff780efd336a9a4214800149c397d9fd3fd6429
2015-09-17 05:13:04 -07:00
Kit Cambridge
cc7189cb64
Bug 1149195 - Expose push message data accessors. r=nsm,dragana,smaug
...
--HG--
extra : commitid : 10hopC95zuL
extra : rebase_source : c3c9cfac62d1acb234bba2f16b443783354c43a4
2015-09-17 05:10:42 -07:00
Kit Cambridge
6c8172cef8
Bug 1185544 - Add data delivery to the WebSocket backend. r=dragana,nsm
...
--HG--
extra : commitid : EntjTGDbYag
extra : rebase_source : 79b325dacbed5d96fea17ac26a4bc8103c8dfae1
2015-09-17 05:08:50 -07:00
Nikhil Marathe
a7bc045c29
Bug 914481 - Patch 4 - Track why we fail to deliver notifications to Service Workers. r=kitcambridge
...
--HG--
extra : commitid : KencxGyLnVk
extra : rebase_source : f434d61fd6fc74434d55d0617b13f61401bfcb63
2015-09-16 10:28:17 -07:00
Nikhil Marathe
eac943182b
Bug 914481 - Patch 3 - Subscription and quota expiration times. r=kitcambridge, p=ally
...
--HG--
extra : commitid : JADysGJDrMp
extra : rebase_source : dd937d960dd05028806debd00ecc875adfdd08b5
2015-08-06 12:05:47 -07:00
Nikhil Marathe
f293dc5340
Bug 914481 - Patch 2 - Track subscribe and unsubscribe success/failure. r=kitcambridge
...
--HG--
extra : commitid : FkukoQceUNq
extra : rebase_source : f72c91c37c44ba61abb21c69399b45d571bbdcb4
2015-08-05 17:03:49 -07:00
Nikhil Marathe
dee87894d8
Bug 914481 - Patch 1 - Push usage and permissions telemetry. r=kitcambridge
...
--HG--
extra : commitid : FcrPQqWE4k8
extra : rebase_source : 3c39e7c98557163c93cb8bf5e4fe4f0a9ba5376b
2015-08-05 15:12:11 -07:00
Carsten "Tomcat" Book
6bd408e0ae
Backed out 4 changesets (bug 914481) for xpc and push service test failures
...
Backed out changeset 6165f6eba17f (bug 914481)
Backed out changeset a8c47e9431d0 (bug 914481)
Backed out changeset f03e8c42861e (bug 914481)
Backed out changeset 84b11173d98f (bug 914481)
--HG--
extra : rebase_source : 9496d5740c290bc6d8169782a8f1a2950711f3d7
2015-09-17 12:31:49 +02:00
Nikhil Marathe
ea76ea7a04
Bug 914481 - Patch 4 - Track why we fail to deliver notifications to Service Workers. r=kitcambridge
...
--HG--
extra : rebase_source : 66bb02452a4b5ffb77157d0f7a44d56b327c360c
2015-08-06 16:59:35 -07:00
Nikhil Marathe
6e258d2336
Bug 914481 - Patch 3 - Subscription and quota expiration times. r=kitcambridge, p=ally
...
--HG--
extra : rebase_source : d6a29b72e95cb8b75492d2f7634dcefed86ae2dd
2015-08-06 12:05:47 -07:00
Nikhil Marathe
3fc51ef7fd
Bug 914481 - Patch 2 - Track subscribe and unsubscribe success/failure. r=kitcambridge
...
--HG--
extra : rebase_source : 4d605f0557e9e1b5a40e4a518e5f6c9b53e85068
2015-08-05 17:03:49 -07:00
Nikhil Marathe
af12419237
Bug 914481 - Patch 1 - Push usage and permissions telemetry. r=kitcambridge
...
--HG--
extra : rebase_source : 454b8cb5d061574223fab9f53b649efc5566767b
2015-08-05 15:12:11 -07:00
Shu-yu Guo
64db2267cf
Bug 1202902
- Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff)
2015-09-15 11:19:45 -07:00
Dragana Damjanovic
a7f75d48d4
Bug 1172502 - Add message encription for WebPush. r=mt r=kitcambridge r=keeler r=smaug
...
--HG--
extra : commitid : FsE5V9w4fej
extra : amend_source : 8b44837b765bd319cadc93a53948264dfbd87ecf
2015-09-11 07:51:32 -07:00
Nikhil Marathe
548809dc68
Bug 1197421 - Fix promise worker proxy cleanup and update callers. r=catalinb
...
Get rid of having users dispatch control runnables. It was error prone and
required too much reasoning. It was also possible to end up in a state where
callers would dispatch a WorkerRunnable, which would succeed, so they would not
dispatch a WorkerControlRunnable. Then the worker would stop Running,
canceling and releasing the runnable leading to releasing the proxy in an
unclean state. Instead, we AddRef() and add the feature and remove the feature
and Release() on Notify(). If callers successfully run a WorkerRunnable they
clean the proxy. If not, the proxy stays alive until the worker switches to
Canceling state.
--HG--
extra : commitid : BnnijSibVYe
extra : rebase_source : 15f6810dfbd0c88a983196de401c55e782b1d1d8
2015-09-02 10:07:26 -07:00
Andrea Marchesini
efd3b25c78
Bug 1198795 - ipc/StructuredCloneUtils should be merged with StructuredCloneHelper, r=smaug
...
--HG--
rename : dom/ipc/StructuredCloneUtils.cpp => dom/ipc/StructuredCloneIPCHelper.cpp
rename : dom/ipc/StructuredCloneUtils.h => dom/ipc/StructuredCloneIPCHelper.h
2015-09-02 17:20:30 +01:00
Doug Turner
e70d6a59f1
Bug 1164432. Try disabling test_try_registering_offline_disabled due to too many intermittent failures. r=kitcambridge
...
--HG--
extra : commitid : F7WVEQXl0j5
2015-08-31 12:28:04 -07:00
Nicholas Nethercote
f44287005f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Chris Peterson
1416e566de
Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium
2015-08-25 09:14:38 -07:00
Kit Cambridge
1acca57a40
Bug 1196512 - Use principals to test for push permissions. r=nsm
...
--HG--
extra : commitid : 7scu10UsEc9
extra : rebase_source : ce8993d0662dfea702b82abf54b98a3f318c386f
extra : amend_source : 0ce3c201cebb227a2e16be35e907f42f73426e03
2015-08-19 16:03:15 -07:00
Chris Peterson
6d9eccfa13
Bug 1194580 - Mark dom/push as FAIL_ON_WARNINGS. r=nsm
2015-08-13 20:35:31 -07:00
Muhsin Ali Steiman
f59bd8d992
Bug 1183440 - Replaces Promise.defer() with the Promise constructor in push tests. r=kitcambridge
...
--HG--
extra : commitid : 90WEhC4PKRD
extra : amend_source : ab3ef1029dd8daa831eac49bdb2f682032ac547c
2015-08-14 17:26:07 -07:00
Nikhil Marathe
6e05417442
Bug 1193365 - Disable push debug. r=kitcambridge
...
--HG--
extra : commitid : 9Gf6AN5z3TX
extra : rebase_source : 9555cab8a9739e9a9af4fa682495e78a61fee727
2015-08-11 12:53:14 -07:00
Kit Cambridge
72909621aa
Back out bug 1100863 and bug 1152264 for causing bug 1189729 on a CLOSED TREE. a=mhenretty,RyanVM
...
--HG--
extra : commitid : Knw3n5aF6IT
2015-08-11 07:30:38 -07:00
Dave Townsend
9a151c74f1
Bug 1192441: Disable Push service debug logging by default. r=dougt
...
--HG--
extra : commitid : JtuiAzNqbFM
extra : rebase_source : 0d353f9ca599f6bd458ad74e947a1cea2fb0643a
2015-08-08 09:58:24 -07:00
Kit Cambridge
ca276a1334
Bug 1189543 - `pushManager.getSubscription()` should return `null` for nonexistent push subscriptions in workers. r=nsm
...
--HG--
extra : commitid : 7aBSevBFA0O
extra : rebase_source : 04558d29d557dabaf807ff5b066e25e06a1462f5
2015-08-06 10:15:00 -07:00
Kit Cambridge
b8b774517b
Back out changeset 0e68d7a16ed8 (bug 1189543) for mochitest-push timeouts.
...
--HG--
extra : commitid : Jgv1qFFc8Z6
2015-08-06 10:12:59 -07:00
Nikhil Marathe
f545f1c3eb
Bug 1191495 - Relax PushManager callback assertions. r=kitcambridge
...
--HG--
extra : commitid : 4K4ciVH8oHB
extra : rebase_source : d68782c9d9984a08faa0c3a33197a599dc5b52e6
extra : histedit_source : a666d3f7fc6c503379f962cf40f551b52450470e
2015-08-05 15:32:19 -07:00
Wes Kocher
5e90ccec17
Backed out 3 changesets (bug 1191495, bug 1153499, bug 1144660) for mochitest-push crashes
...
Backed out changeset 8917e7323399 (bug 1191495)
Backed out changeset 13ed6f60d3f9 (bug 1144660)
Backed out changeset 95bd6642e4b1 (bug 1153499)
2015-08-05 15:18:05 -07:00
Nikhil Marathe
4f39cda39b
Bug 1191495 - Relax PushManager callback assertions. r=kitcambridge
...
--HG--
extra : commitid : E9vbMNHj3TZ
extra : rebase_source : 816d8318a127beec799b648640057e21f77c647b
2015-08-05 13:21:08 -07:00
Nikhil Marathe
84fedf8359
Bug 1190661 - Send push only to child processes when in e10s mode. r=smaug
...
Earlier, the in-process child process message manager and any content process
child process message managers received the push event. This is because
broadcastAsyncMessage is used, but on e10s we want ServiceWorkers to run in the
child process, so the push should only be dispatched to it. This patch
introduces a list of child process listeners in the PushService (running on the
parent). PushServiceChildPreload sends a message to the PushService iff it is
running in a child process. If there are non-zero child listeners, the
PushService will send a message to all of them, otherwise it will fall back to
broadcastAsyncMessage.
We currently do not add support for precise targeting of child processes. This
is because until Bug 1182117 is fixed, all child process ServiceWorkerManagers
maintain all the service worker registrations internally. Yes this is a bug,
but that is the way things are right now. This makes it impossible to
distinguish which child should handle the notification for a given origin.
Considering we don't ship multi-process e10s, I would like to land this right
now.
When Bug 1182117 is fixed, we can remove this code since the
ServiceWorkerManager will manage registrations in the parent, and it will know
which child process is running which ServiceWorker.
--HG--
extra : commitid : Dgfkg4LqLPK
extra : rebase_source : e64a4f1c757b05fe2939a338c1ad8d14f4015a90
2015-07-30 20:00:21 -07:00
Kit Cambridge
7e438a9230
Bug 1189543 - `pushManager.getSubscription()` should return `null` for nonexistent push subscriptions in workers. r=nsm
...
--HG--
extra : commitid : 1y3hC0xJqr6
extra : rebase_source : 29a7f65263d0d5d84a0940f1b8219b45b783b655
2015-08-04 13:43:23 -07:00
Nikhil Marathe
767490fbd3
Bug 1190672
- Fix use of AutoReleasePromiseWorkerProxy in PushManager. r=catalinb
...
--HG--
extra : commitid : 3bkV8RpOeaU
extra : rebase_source : 3dffb8fc355ad4f5d670376a969a03448011e7ba
2015-08-03 21:47:16 -07:00
Nikhil Marathe
7fe3f37d58
Bug 1190478 - Hide PushEvent.data until we ship message encryption. r=mt,jst
...
--HG--
extra : commitid : 6i4eexsw50U
extra : rebase_source : 9147a2f5e3996d104ff40e32da3e82ca1cc3917d
2015-08-03 11:04:41 -07:00
Ryan VanderMeulen
f98e582bb3
Backed out changeset 96bb759922a1 (bug 1189543) for frequent crashes/asserts.
...
CLOSED TREE
2015-08-03 12:32:31 -04:00
Nikhil Marathe
97ea06c0c0
Bug 1188686 - Clear push subscriptions when forgetting about site. r=kitcambridge
...
--HG--
extra : commitid : 4z3omFAziAN
extra : transplant_source : %0A%E7%85%26%EE9%CE%95%0C/%AC%7E%89%ED%08%9A%3C%99mA
2015-07-29 11:33:48 -07:00
Kit Cambridge
1afb67d0c5
Bug 1189543 - `pushManager.getSubscription()` should return `null` for nonexistent push subscriptions in workers. r=nsm
...
--HG--
extra : commitid : zVDx1cN50P
extra : rebase_source : 7a3be47ab508b092f083a6452239ac77839395fc
2015-07-30 15:31:48 -07:00
Ehsan Akhgari
547404788d
Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky,nsm
...
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces. This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-30 01:06:38 -04:00
Wes Kocher
1ca8b1de87
Merge b2ginbound to central, a=merge
2015-07-29 20:19:12 -07:00
Jessica Jong
f5fb1d9afa
Bug 1167132 - Part 10: [NetworkManager] Move network information into a separate interface (PushService). r=nsm
2015-07-29 02:11:00 -04:00
Bobby Holley
97b9240b34
Bug 1188696
- Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Ehsan Akhgari
3d87f1b808
Bug 1188450 - Add an empty EXPORTED_SYMBOLS array to PushServiceChildPreload.jsm; r=nsm
2015-07-28 18:46:52 -04:00
Ryan VanderMeulen
96b36b5855
Backed out changeset c88d1138bc38 (bug 1188091) for Mulet test_serviceworker_interfaces.html failures.
...
CLOSED TREE
2015-07-28 13:28:39 -04:00
Ehsan Akhgari
6e916540f5
Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky
...
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces. This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-28 12:28:53 -04:00
Eitan Isaacson
3055640112
Bug 1184626 - Add a per-process push message listener. r=smaug
...
--HG--
rename : dom/push/PushServiceChildPreload.js => dom/push/PushServiceChildPreload.jsm
extra : commitid : JVUONa2Klhc
extra : transplant_source : %8D%A86%94%B2%D7%3F%99%D6%C0%BE/%D8%8A%60%95%EE4%CCt
2015-07-17 14:54:38 -07:00
Nikhil Marathe
cf6e7ed78b
Bug 1184574 - Allow access to PushManager on ServiceWorker. r=kitcambridge,smaug,catalinb
...
Refactoring to allow access to PushManager in ServiceWorkerGlobalScope. See comment in PushManager.h for details.
--HG--
extra : commitid : A7RvB9rm8av
extra : transplant_source : %20%99%CA%B0%EB%B9%82%27D%F7e%B8UQ%12%E6%9B%18%BB5
2015-07-23 08:30:15 -07:00
Nikhil Marathe
f400c4125c
Bug 1183867 - Fix PushSubscription.unsubscribe() semantics r=mt
...
resolve with false when subscription does not exist. true when successfully unregistered. reject with NetworkError in other cases.
--HG--
extra : commitid : 52Armk3onZ2
extra : rebase_source : 0ec2a950871bfb84a6bcd8bd8c00f3a10cd5bbce
2015-07-14 15:01:41 -07:00
Nikhil Marathe
457c7b88a7
Bug 1183853 - Rename hasPermission() to permissionState(). r=mt,smaug
...
--HG--
extra : commitid : IJXqmdPz2eS
extra : rebase_source : 3100fd71103969134792d1376e56606d3e9c5201
2015-07-14 14:27:32 -07:00
Nikhil Marathe
13cd15e734
Bug 1183825 - Hide PushMessageData methods until we support sending push data. r=mt,smaug
...
--HG--
extra : commitid : 7WT6shALhFp
extra : rebase_source : 4b3be0825b035666d0412888397b8de15e602af6
2015-07-14 13:45:01 -07:00
Kit Cambridge
97018538cd
Bug 1153504
- Add per-origin push quotas. r=nsm,mt,markh
...
--HG--
extra : commitid : 8CPpVl9sAYo
extra : rebase_source : d4e6330e3717c89f39686c620ae0aeb90e2156c8
2015-06-25 14:52:57 -07:00
Nikhil Marathe
808595ef2e
Bug 1166350 - Patch 2 - Fix tests. a=bustage
...
--HG--
extra : source : 726f0355ea94ba0772427bbebf53c2e919929d41
2015-06-24 14:27:49 -07:00
Nikhil Marathe
b8eea4d16b
Bug 1166350 - Push fixes for principals. r=kitcambridge,bholley
...
Fix xpcshell tests.
Add support for webapps-clear-data.
Trash old regs on idb version upgrade.
Use principal for permission check.
use principal in PushSubscription.
--HG--
extra : source : d7554019b424327a3271e2c0debda995fff36cb5
extra : intermediate-source : be40dea6534771bdeedc9f7c6ccd8bbddb6e41c2
2015-06-24 13:34:54 -07:00
Nikhil Marathe
552b7cd770
Backed out changeset 964de5d960fa
...
The changes these tests depend on were backed out, but I didn't realise that and pushed this. Backing out and pushing again.
2015-06-24 14:32:39 -07:00
Nikhil Marathe
90857a5bc2
Bug 1166350 - Patch 2 - Fix tests. a=bustage
...
--HG--
extra : rebase_source : a96805e9d0827b618604f7479db8f1e8a6833735
extra : source : 726f0355ea94ba0772427bbebf53c2e919929d41
2015-06-24 14:27:49 -07:00
Ryan VanderMeulen
c01c5195c9
Backed out changeset 98c7277a8fb5 (bug 1166350) for xpcshell failures.
2015-06-24 16:10:45 -04:00
Nikhil Marathe
bd635e2c8a
Bug 1166350 - Push fixes for principals. r=kitcambridge,bholley
...
Fix xpcshell tests.
Add support for webapps-clear-data.
Trash old regs on idb version upgrade.
Use principal for permission check.
use principal in PushSubscription.
--HG--
extra : rebase_source : 3b8cb541512d3fb9a253773c2fd5227c980efdd2
extra : source : d7554019b424327a3271e2c0debda995fff36cb5
2015-06-02 15:56:33 -07:00
Nikhil Marathe
c2202d5a9d
Bug 1170817 - Fix unsubscribe() resolution value. r=dougt
...
--HG--
extra : rebase_source : 4ccadff701ded3f92f58be9fc9454732abb06a30
extra : source : 8332838a23ea21e74212846ad1fe2e36978c4752
2015-06-02 15:53:55 -07:00
Kit Cambridge
d8338f8319
Bug 1171261 - Only track pending channel registrations. r=dragana
2015-06-06 22:17:04 -07:00
Dragana Damjanovic
4263b8da0f
Bug 1172667 - Use EXTRA_JS_MODULES for dom/push/ jsm files. r=dougt
2015-06-09 02:11:00 -04:00
Dragana Damjanovic
7cbd07a051
Bug 1150812 - xcpshell test for PushService with http2. r=nsm, r=mt
2015-06-02 07:16:00 -04:00
Dragana Damjanovic
af2c1ad891
Bug 1150812 - Add Http2 Push service. r=nsm, r=mt
2015-06-03 08:06:00 -04:00
Dragana Damjanovic
2ce8502cf6
Bug 1150812 - Adapt xpcshell test and add mochi tests for WebSocket version. r=nsm, r=mt
2015-06-02 07:14:00 -04:00
Dragana Damjanovic
50d7b60872
Bug 1150812 - Split PushService - make the separation more common for webSocket and http2. r=nsm, r=mt
2015-06-03 08:05:00 -04:00
Dragana Damjanovic
3f73665213
Bug 1150812 - Split PushService - separate webSocket part. r=nsm, r=mt
2015-06-03 08:04:00 -04:00
Andrea Marchesini
a71e717b67
Bug 1162088 - patch 1 - ServiceWorkerManager should use OriginAttributes from the principal as scopeKey, r=nsm, r=bholley
2015-06-03 09:43:43 +01:00
Fernando Rodriguez Sela
9caf60383a
Bug 1152264 - Push API constantly doing requests. r=nsm
...
--HG--
extra : rebase_source : b8440e5098a69e9ce6d64783992ddfe2e034cf33
2015-05-11 07:06:00 -04:00
Dragana Damjanovic
4c8eee1469
Bug 1162414 - Change PushService.jsm db to use promise. r=nsm, r=mt
2015-05-12 12:08:00 -04:00
Doug Turner
e62a465a91
Bug 1160333 - When denying permission, use the string 'PermissionDeniedError'. r=nsm
2015-05-01 11:01:17 -07:00
Doug Turner
817e793cea
Bug 1160316 - Bump IndexedDB name. r=nsm
2015-05-01 10:54:48 -07:00
Kit Cambridge
fb8ad5dbce
Bug 1159310 - Update the storage xpcshell tests. r=dougt
...
--HG--
extra : rebase_source : 3a49ed7f897c4edda9a2b84e4bd9f5f31777d3e2
2015-04-29 05:31:00 -04:00
Doug Turner
9bf4add3ed
Bug 1159310 - Remember the push count and last push time for push events. r=kit
...
--HG--
extra : rebase_source : 58b5f6f1b0e98e201f77b4ec3feabce6c8ef5394
2015-04-28 09:44:00 -04:00
Carsten "Tomcat" Book
f44696b7a9
Backed out changeset 0efce0a97efe (bug 1159310) for xpc bustage on a CLOSED TREE
2015-04-29 09:53:02 +02:00
Doug Turner
5f2f255c9e
Bug 1159310 - Remember the push count and last push time for
...
push events. r=kit
2015-04-28 09:40:57 -07:00
Doug Turner
8129277b27
Bug 1149271 - Remove subscriptionid. r=baku
2015-04-26 03:59:38 -07:00
Dragana Damjanovic
984272cb6d
Bug 1156397 - some fix for webpush PushServer. r=dougt r=nsm
...
--HG--
extra : rebase_source : 06425ea3c83db38da11e345ee998a470f9e26570
2015-04-24 14:55:00 +02:00
Doug Turner
fb4dac7539
Bug 1157732 - Allow ws (insecure) connections to localhost. r=kcambridge
2015-04-23 20:43:40 +02:00
Doug Turner
1803c2eea5
Bug 1157108 - onpush EventHandler support. r=ehsan
2015-04-23 20:43:40 +02:00
Doug Turner
91f963df66
Bug 1149274 - Clear site-permissions should clear all registered push notifications. r=nsm
2015-04-21 20:10:51 +02:00
Kit Cambridge
47b180edd6
Bug 1150683 - Add xpcshell tests for nsIPushNotificationService. r=dougt
...
---
dom/push/moz.build | 4 +
dom/push/test/xpcshell/head.js | 450 +++++++++++++++++++++
dom/push/test/xpcshell/test_notification_ack.js | 127 ++++++
.../test/xpcshell/test_notification_duplicate.js | 82 ++++
dom/push/test/xpcshell/test_notification_error.js | 127 ++++++
.../test/xpcshell/test_notification_incomplete.js | 109 +++++
.../xpcshell/test_notification_version_string.js | 72 ++++
dom/push/test/xpcshell/test_register_case.js | 64 +++
dom/push/test/xpcshell/test_register_flush.js | 103 +++++
.../test/xpcshell/test_register_invalid_channel.js | 60 +++
.../xpcshell/test_register_invalid_endpoint.js | 62 +++
.../test/xpcshell/test_register_invalid_json.js | 61 +++
dom/push/test/xpcshell/test_register_no_id.js | 65 +++
.../test/xpcshell/test_register_request_queue.js | 65 +++
dom/push/test/xpcshell/test_register_rollback.js | 88 ++++
dom/push/test/xpcshell/test_register_success.js | 76 ++++
dom/push/test/xpcshell/test_register_timeout.js | 102 +++++
dom/push/test/xpcshell/test_register_wrong_id.js | 71 ++++
dom/push/test/xpcshell/test_register_wrong_type.js | 67 +++
dom/push/test/xpcshell/test_registration_error.js | 39 ++
.../xpcshell/test_registration_missing_scope.js | 28 ++
dom/push/test/xpcshell/test_registration_none.js | 28 ++
.../test/xpcshell/test_registration_success.js | 67 +++
.../test/xpcshell/test_unregister_empty_scope.js | 37 ++
dom/push/test/xpcshell/test_unregister_error.js | 65 +++
.../test/xpcshell/test_unregister_invalid_json.js | 78 ++++
.../test/xpcshell/test_unregister_not_found.js | 35 ++
dom/push/test/xpcshell/test_unregister_success.js | 60 +++
dom/push/test/xpcshell/xpcshell.ini | 32 ++
29 files changed, 2324 insertions(+)
create mode 100644 dom/push/test/xpcshell/head.js
create mode 100644 dom/push/test/xpcshell/test_notification_ack.js
create mode 100644 dom/push/test/xpcshell/test_notification_duplicate.js
create mode 100644 dom/push/test/xpcshell/test_notification_error.js
create mode 100644 dom/push/test/xpcshell/test_notification_incomplete.js
create mode 100644 dom/push/test/xpcshell/test_notification_version_string.js
create mode 100644 dom/push/test/xpcshell/test_register_case.js
create mode 100644 dom/push/test/xpcshell/test_register_flush.js
create mode 100644 dom/push/test/xpcshell/test_register_invalid_channel.js
create mode 100644 dom/push/test/xpcshell/test_register_invalid_endpoint.js
create mode 100644 dom/push/test/xpcshell/test_register_invalid_json.js
create mode 100644 dom/push/test/xpcshell/test_register_no_id.js
create mode 100644 dom/push/test/xpcshell/test_register_request_queue.js
create mode 100644 dom/push/test/xpcshell/test_register_rollback.js
create mode 100644 dom/push/test/xpcshell/test_register_success.js
create mode 100644 dom/push/test/xpcshell/test_register_timeout.js
create mode 100644 dom/push/test/xpcshell/test_register_wrong_id.js
create mode 100644 dom/push/test/xpcshell/test_register_wrong_type.js
create mode 100644 dom/push/test/xpcshell/test_registration_error.js
create mode 100644 dom/push/test/xpcshell/test_registration_missing_scope.js
create mode 100644 dom/push/test/xpcshell/test_registration_none.js
create mode 100644 dom/push/test/xpcshell/test_registration_success.js
create mode 100644 dom/push/test/xpcshell/test_unregister_empty_scope.js
create mode 100644 dom/push/test/xpcshell/test_unregister_error.js
create mode 100644 dom/push/test/xpcshell/test_unregister_invalid_json.js
create mode 100644 dom/push/test/xpcshell/test_unregister_not_found.js
create mode 100644 dom/push/test/xpcshell/test_unregister_success.js
create mode 100644 dom/push/test/xpcshell/xpcshell.ini
2015-04-21 20:10:50 +02:00
Kit Cambridge
c32f94ac3c
Bug 1150683 - Add xpcshell test hooks to PushService.jsm. r=dougt
...
---
dom/push/PushService.jsm | 156 ++++++++++++++++++++++++++++++++---------------
dom/push/moz.build | 2 +-
2 files changed, 108 insertions(+), 50 deletions(-)
2015-04-21 20:10:50 +02:00
Kit Cambridge
1e06bb992c
Bug 1150683 - Implement nsIPushNotificationService. r=dougt
...
---
b2g/installer/package-manifest.in | 2 +-
browser/installer/package-manifest.in | 2 +-
dom/push/Push.manifest | 11 +-
dom/push/PushNotificationService.js | 81 +++++++++
dom/push/PushService.jsm | 324 ++++++++++++++++++++--------------
dom/push/PushServiceLauncher.js | 50 ------
dom/push/moz.build | 2 +-
7 files changed, 285 insertions(+), 187 deletions(-)
create mode 100644 dom/push/PushNotificationService.js
delete mode 100644 dom/push/PushServiceLauncher.js
2015-04-21 20:10:50 +02:00
Ehsan Akhgari
20c06b408e
Bug 1155989 - Dump the rejection of the promise returned by ServiceWorkerRegistration.unregister() in our tests; r=nsm
2015-04-21 00:24:44 -04:00
Phil Ringnalda
0db5cd0782
Backed out 4 changesets (bug 1150683) for Talos indexedDB crashes
...
CLOSED TREE
Backed out changeset 7953d3dd62ff (bug 1150683)
Backed out changeset c6805afff48c (bug 1150683)
Backed out changeset 186ed6bc887e (bug 1150683)
Backed out changeset 8e82f557f913 (bug 1150683)
2015-04-19 07:20:24 -07:00
Kit Cambridge
cfda49a5ee
Bug 1150683 - Add xpcshell tests for nsIPushNotificationService. r=dougt
...
---
dom/push/moz.build | 4 +
dom/push/test/xpcshell/head.js | 450 +++++++++++++++++++++
dom/push/test/xpcshell/test_notification_ack.js | 127 ++++++
.../test/xpcshell/test_notification_duplicate.js | 82 ++++
dom/push/test/xpcshell/test_notification_error.js | 127 ++++++
.../test/xpcshell/test_notification_incomplete.js | 109 +++++
.../xpcshell/test_notification_version_string.js | 72 ++++
dom/push/test/xpcshell/test_register_case.js | 64 +++
dom/push/test/xpcshell/test_register_flush.js | 103 +++++
.../test/xpcshell/test_register_invalid_channel.js | 60 +++
.../xpcshell/test_register_invalid_endpoint.js | 62 +++
.../test/xpcshell/test_register_invalid_json.js | 61 +++
dom/push/test/xpcshell/test_register_no_id.js | 65 +++
.../test/xpcshell/test_register_request_queue.js | 65 +++
dom/push/test/xpcshell/test_register_rollback.js | 88 ++++
dom/push/test/xpcshell/test_register_success.js | 76 ++++
dom/push/test/xpcshell/test_register_timeout.js | 102 +++++
dom/push/test/xpcshell/test_register_wrong_id.js | 71 ++++
dom/push/test/xpcshell/test_register_wrong_type.js | 67 +++
dom/push/test/xpcshell/test_registration_error.js | 39 ++
.../xpcshell/test_registration_missing_scope.js | 28 ++
dom/push/test/xpcshell/test_registration_none.js | 28 ++
.../test/xpcshell/test_registration_success.js | 67 +++
.../test/xpcshell/test_unregister_empty_scope.js | 37 ++
dom/push/test/xpcshell/test_unregister_error.js | 65 +++
.../test/xpcshell/test_unregister_invalid_json.js | 78 ++++
.../test/xpcshell/test_unregister_not_found.js | 35 ++
dom/push/test/xpcshell/test_unregister_success.js | 60 +++
dom/push/test/xpcshell/xpcshell.ini | 32 ++
29 files changed, 2324 insertions(+)
create mode 100644 dom/push/test/xpcshell/head.js
create mode 100644 dom/push/test/xpcshell/test_notification_ack.js
create mode 100644 dom/push/test/xpcshell/test_notification_duplicate.js
create mode 100644 dom/push/test/xpcshell/test_notification_error.js
create mode 100644 dom/push/test/xpcshell/test_notification_incomplete.js
create mode 100644 dom/push/test/xpcshell/test_notification_version_string.js
create mode 100644 dom/push/test/xpcshell/test_register_case.js
create mode 100644 dom/push/test/xpcshell/test_register_flush.js
create mode 100644 dom/push/test/xpcshell/test_register_invalid_channel.js
create mode 100644 dom/push/test/xpcshell/test_register_invalid_endpoint.js
create mode 100644 dom/push/test/xpcshell/test_register_invalid_json.js
create mode 100644 dom/push/test/xpcshell/test_register_no_id.js
create mode 100644 dom/push/test/xpcshell/test_register_request_queue.js
create mode 100644 dom/push/test/xpcshell/test_register_rollback.js
create mode 100644 dom/push/test/xpcshell/test_register_success.js
create mode 100644 dom/push/test/xpcshell/test_register_timeout.js
create mode 100644 dom/push/test/xpcshell/test_register_wrong_id.js
create mode 100644 dom/push/test/xpcshell/test_register_wrong_type.js
create mode 100644 dom/push/test/xpcshell/test_registration_error.js
create mode 100644 dom/push/test/xpcshell/test_registration_missing_scope.js
create mode 100644 dom/push/test/xpcshell/test_registration_none.js
create mode 100644 dom/push/test/xpcshell/test_registration_success.js
create mode 100644 dom/push/test/xpcshell/test_unregister_empty_scope.js
create mode 100644 dom/push/test/xpcshell/test_unregister_error.js
create mode 100644 dom/push/test/xpcshell/test_unregister_invalid_json.js
create mode 100644 dom/push/test/xpcshell/test_unregister_not_found.js
create mode 100644 dom/push/test/xpcshell/test_unregister_success.js
create mode 100644 dom/push/test/xpcshell/xpcshell.ini
2015-04-19 12:06:31 +02:00
Kit Cambridge
6499b8e520
Bug 1150683 - Add xpcshell test hooks to PushService.jsm. r=dougt
...
---
dom/push/PushService.jsm | 156 ++++++++++++++++++++++++++++++++---------------
dom/push/moz.build | 2 +-
2 files changed, 108 insertions(+), 50 deletions(-)
2015-04-19 12:06:21 +02:00
Kit Cambridge
638298ddea
Bug 1150683 - Implement nsIPushNotificationService. r=dougt
...
---
b2g/installer/package-manifest.in | 2 +-
browser/installer/package-manifest.in | 2 +-
dom/push/Push.manifest | 11 +-
dom/push/PushNotificationService.js | 81 +++++++++
dom/push/PushService.jsm | 324 ++++++++++++++++++++--------------
dom/push/PushServiceLauncher.js | 50 ------
dom/push/moz.build | 2 +-
7 files changed, 285 insertions(+), 187 deletions(-)
create mode 100644 dom/push/PushNotificationService.js
delete mode 100644 dom/push/PushServiceLauncher.js
2015-04-19 12:06:11 +02:00
Doug Turner
9fc749138a
Bug 1155253 - Back out 304f87a54059 due to a startup regression. r=me
2015-04-16 11:57:34 -07:00
Doug Turner
11be87f208
Bug 1153937 - enable PushServiceLauncher. r=nsm
2015-04-13 10:03:24 -07:00
Phil Ringnalda
0cc202565a
Backed out 4 changesets (bug 1150683) for Android xpcshell test bustage
...
CLOSED TREE
Backed out changeset 645508dd2a76 (bug 1150683)
Backed out changeset 4389151f1348 (bug 1150683)
Backed out changeset 66ca87f2a944 (bug 1150683)
Backed out changeset 814fc7abbe18 (bug 1150683)
2015-04-13 20:15:58 -07:00
Kit Cambridge
0ede23c7ad
Bug 1150683 - Add xpcshell tests for nsIPushNotificationService. r=dougt
2015-04-13 17:25:19 -07:00
Kit Cambridge
725444a06f
Bug 1150683 - Add xpcshell test hooks to PushService.jsm. r=dougt
2015-04-13 17:25:18 -07:00
Kit Cambridge
261b139ba8
Bug 1150683 - Implement nsIPushNotificationService. r=dougt
2015-04-13 17:25:18 -07:00
Doug Turner
d0dec8f3f4
Bug 1038811 - Push Notifications - Allow MOZ_DISABLE_NONLOCAL_CONNECTIONS for push subsuite. r=ahalberstadt/jgriffin
2015-04-10 20:19:29 -07:00
Doug Turner
3dc192b085
Bug 1038811 - Push Notifications - Tests. r=nsm
2015-04-10 20:19:28 -07:00
Doug Turner
a6d4711eae
Bug 1038811 - Push Notifications - Push implementation changes. r=nsm
2015-04-10 20:19:28 -07:00
Dragana Damjanovic
9441d5b1f1
Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer
2015-04-08 15:35:00 -04:00
Bevis Tseng
ccd20872ec
Bug 1114935 - Part 6.6: Migration in PushService.jsm. r=nsm
...
--HG--
extra : histedit_source : d738f21877abff326fffd9e2c7551c3529c49eb2
2015-01-15 18:40:01 +08:00
Gregor Wagner
fa698fe8a9
Backout Bug 1114935 for causing bug 1144567.
2015-03-18 11:48:52 -07:00
Bevis Tseng
9965fdaa44
Bug 1114935 - Part 6.6: Migration in PushService.jsm. r=nsm
...
--HG--
extra : rebase_source : 91899bb1b11a931e083e0aef8ce70f4dc8aaea93
extra : histedit_source : 5d61014d8ffbdaa49cbab5adeb0d589287884b72
2015-01-15 18:40:01 +08:00
Nikhil Marathe
9ce4ae6f50
Bug 1080752 - Hold wakelock when attempting to connect to push server. r=dougt
...
--HG--
extra : rebase_source : 584f9f681262a74ed0149f5cefbcc5afccdeb04e
2015-03-09 15:40:04 -07:00
Ryan VanderMeulen
91323d7a02
Backed out changeset a1d51e3fea63 (bug 935838) for B2G test_udpsocket.html timeouts.
...
CLOSED TREE
--HG--
extra : rebase_source : c38820b067a8faf405bfae7f5b5fb1089bd29bbc
2015-03-09 16:35:06 -04:00
Dragana Damjanovic
a2a4213345
Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer
2015-03-06 06:38:00 -05:00
Fernando Rodriguez Sela
012071b939
Bug 1100863 - SimplePush: Adaptive ping doesn't work when it converge. f=jorgep, r=nsm
2015-02-16 01:00:00 -05:00
Christoph Kerschbaumer
4441dedb34
Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - websocket changes in dom/push/ (r=nikhil)
2015-02-17 10:10:16 -08:00
Birunthan Mohanathas
8fd8152982
Bug 1058101 - Flatten dom/push/src/ into parent directory. r=mccr8
...
--HG--
rename : dom/push/src/Push.js => dom/push/Push.js
rename : dom/push/src/Push.manifest => dom/push/Push.manifest
rename : dom/push/src/PushService.jsm => dom/push/PushService.jsm
rename : dom/push/src/PushServiceLauncher.js => dom/push/PushServiceLauncher.js
2014-08-27 10:13:45 -07:00
Birunthan Mohanathas
db2972728d
Bug 1044447 - Remove a few unnecessary empty moz.build files. r=glandium
2014-07-28 18:02:44 -07:00
Mike Hommey
2bab6202af
Bug 1043820 - Remove PARALLEL_DIRS. r=gps
2014-07-29 08:57:59 +09:00
Fernando Rodriguez Sela
806fddd8a7
Bug 1026599 - PUSH WakeUp netid discover using the reserved 3gppnetwork.org domain. r=nsm
2014-07-16 02:44:00 +02:00
Guillermo López
fb9054eae3
Bug 894879 - Calculate a adaptive ping for mobile and wifi connections. r=nsm.nikhil
2014-07-09 10:37:58 +02:00
Guillermo López
b5f59a7209
Bug 1024579 - Create a sync getNetworkInformation and make getNetworkStatus use it. r=nsm
2014-06-16 00:24:05 +02:00
Fernando Rodriguez Sela
53ed7beec6
Bug 1018088 - PUSH wakeup compatible multiple mobile networks carriers. r=nsm
2014-06-09 00:32:00 -04:00
Fernando Rodriguez Sela
d057bdce3a
Bug 1018164 - Fix IP address recovery in PushService. r=nsm
2014-06-03 23:45:00 -04:00
Fabrice Desré
cb459d7239
Bug 996384 - WebappsApplication#clearBrowserData should not clear app's alarms from mozAlarms r=gene,nsm
2014-04-16 10:48:01 -07:00
Paolo Amadini
c1739b687d
Bug 984788 - Convert legacy uses of promise.js to Promise.jsm. rs=Yoric
2014-03-18 15:16:02 +01:00
Guillermo López
726156a5a3
Bug 980846 - Second wakeup message does not send the port. r=nsm.nikhil
2014-03-10 11:59:28 -04:00
Nikhil Marathe
d2856ba66c
Bug 978062 - Fix SimplePush UDP port debug message. r=khuey
2014-03-05 16:23:03 -08:00
Guilherme Gonçalves
345e3efa59
Bug 956085 - Fix strict mode violation in PushService.jsm. r=nsm
2014-01-03 09:32:37 -05:00
Ben Kelly
b74dc40938
Bug 924565: Part 1: Declare nsIObserver QI in DOMRequestHelper child classes. r=fabrice
2013-11-20 13:33:10 +08:00
Jan Varga
8f8a999182
Bug 921478 - Remove BackstagePass IDB constructor resolve hook and use Cu.importGlobalProperties. r=bholley,bent
...
--HG--
rename : dom/indexedDB/test/test_globalObjects.xul => dom/indexedDB/test/test_globalObjects_chrome.xul
rename : dom/indexedDB/test/test_globalObjects.html => dom/indexedDB/test/test_globalObjects_content.html
rename : dom/indexedDB/test/unit/test_globalObjects.js => dom/indexedDB/test/unit/test_globalObjects_xpc.js
2013-11-19 08:36:12 +01:00
Carsten "Tomcat" Book
4551469986
Backed out changeset 5cda44ae1ba0 (bug 921478) for perma-orange on Mochitest-1 on B2G Linux Opt on a CLOSED TREE
...
--HG--
rename : dom/indexedDB/test/test_globalObjects_content.html => dom/indexedDB/test/test_globalObjects.html
rename : dom/indexedDB/test/test_globalObjects_chrome.xul => dom/indexedDB/test/test_globalObjects.xul
rename : dom/indexedDB/test/unit/test_globalObjects_xpc.js => dom/indexedDB/test/unit/test_globalObjects.js
2013-11-19 11:41:52 +01:00
Jan Varga
5eebe35433
Bug 921478 - Remove BackstagePass IDB constructor resolve hook and use Cu.importGlobalProperties. r=bholley,bent
...
--HG--
rename : dom/indexedDB/test/test_globalObjects.xul => dom/indexedDB/test/test_globalObjects_chrome.xul
rename : dom/indexedDB/test/test_globalObjects.html => dom/indexedDB/test/test_globalObjects_content.html
rename : dom/indexedDB/test/unit/test_globalObjects.js => dom/indexedDB/test/unit/test_globalObjects_xpc.js
2013-11-19 08:36:12 +01:00
Shih-Chiang Chien
15e652486c
Bug 938492 - Correct contractID and interface name, remove obsolete test file. r=mcmanus
2013-11-14 15:26:50 -05:00
Shih-Chiang Chien
8386ef37f4
Bug 869869 - Part 1, change nsUDPServerSocket to nsUDPSocket, r=mcmanus.
...
--HG--
rename : netwerk/base/public/nsIUDPServerSocket.idl => netwerk/base/public/nsIUDPSocket.idl
rename : netwerk/base/src/nsUDPServerSocket.cpp => netwerk/base/src/nsUDPSocket.cpp
rename : netwerk/base/src/nsUDPServerSocket.h => netwerk/base/src/nsUDPSocket.h
2013-05-10 20:00:22 +08:00
Edgar Chen
6fa63f3cd7
Bug 926343 - Part 7: Use default clientId in PushService. r=nsm
2013-10-16 18:29:36 +08:00
Edgar Chen
b8ea836cc5
Bug 921402 - Part 2: [PushService] Use nsIIccProvider to get iccInfo. r=nsm
2013-09-27 17:55:07 +08:00
Jan Varga
01428648b0
Bug 832883 - Move IDBKeyRange to WebIDL and define indexedDB/IDBKeyRange in all the spots. r=khuey,bent (initial work done by Ms2ger)
2013-09-28 13:25:46 +02:00
Fernando Rodriguez Sela
207930d533
Bug 908098 - Randomize UDP listening port. r=nsm
2013-09-25 09:20:06 -04:00
Nikhil Marathe
bc54cf0504
Bug 917029 - SimplePush: Clear push data when webapps-clear-data is received. r=dougt
2013-09-20 11:17:40 -07:00
Nikhil Marathe
05314e6f8f
Bug 867614 - SimplePush: Failure to register should lead to socket reconnection. r=dougt
...
--HG--
extra : rebase_source : 798bf44e8e63c07692f91c5af526f962041bb518
2013-09-17 10:10:36 -07:00
Nikhil Marathe
5ce010ee1d
Bug 917051 - SimplePush: Clean up unregister related code. r=dougt
...
--HG--
extra : rebase_source : 461b394aeb28538d1ce8ec875c864bbf4f2c52a7
2013-09-16 23:47:47 -07:00
Nikhil Marathe
1ddf70319b
Bug 914369 - SimplePush: Add debug pref to allow toggling debug settings at runtime. r=dougt
...
--HG--
extra : rebase_source : 1bd40b20ea036906e532bdb56d44f9c40c15fd94
2013-09-16 16:55:26 -07:00
Nikhil Marathe
be2832d659
Bug 884625 - SimplePush: Convert var to let. r=dougt
...
--HG--
extra : rebase_source : faeed4b5edb38205d05ad9f930c2e324d0672bfc
2013-09-16 16:53:27 -07:00
Guillermo Lopez
da065d8d74
Bug 910686 - If udp.wakeupEnabled is false or not set, we should not send any wakeup info. r=nsm
2013-08-29 14:37:03 +02:00
Nikhil Marathe
70d12eb3a0
Bug 909270 - Queue PushService alarms. r=jlebar
2013-08-29 09:59:05 -07:00
Nikhil Marathe
814dc02786
Bug 900450 - Reset UDP socket to allow re-initialization. r=dougt
2013-08-06 09:38:04 -07:00
Nikhil Marathe
5552b135d1
Bug 884897 - Add permission check to navigator.push load. r=bz
2013-08-07 08:04:10 -07:00
Guillermo López
6a3405e469
Bug 896919 - UDP wake up is never reached. r=nsm
2013-08-06 10:04:17 -04:00
Boris Zbarsky
bed367b9a1
Bug 707564 followup #2 . Make the push code actually follow the contract for JS-implemented webidl in an attempt to reopen the CLOSED TREE. r=khuey
2013-08-04 01:47:30 -04:00
Nikhil Marathe
94fee29cee
Bug 884897 - Convert SimplePush to WebIDL. r=khuey
...
--HG--
extra : amend_source : e2cdea6c33f920e90c9fb41ee3a3a5d4e80bd9a8
2013-08-02 17:18:35 -07:00
Jakub Siemiatkowski
83b42e89e1
Bug 855727 - SimplePush: Remove redundant 409 error code for conflicting channelIDs. r=nsm
2013-07-29 11:59:27 -04:00
Marco Castelluccio
ca9cda33f5
Bug 786303 - Use the manifestURL in WebApps notifications instead of the origin. r=fabrice
2013-07-24 09:03:25 -04:00
Justin Lebar
779d96d10f
Bug 889984 - Don't leak objects which "inherit" from DOMRequestIpcHelper the associated window is closed. r=fabrice
2013-07-08 17:55:42 -04:00
Robert Picard
4d7cdf6dc6
Bug 867632 - Replace _sendRequest() with _send() for PushService.unregister(). r=nsm
...
--HG--
extra : amend_source : 18127d1d10683069fa3ab12394aae63b9c0ac843
2013-07-07 13:37:23 -04:00
Nikhil Marathe
b6cccf566f
Bug 888058 - SimplePush: catch ping exception. r=dougt
2013-07-04 09:25:05 -07:00
Ms2ger
6f877caab6
Bug 887012 - Remove some emptyish makefiles; r=gps
2013-07-01 09:02:32 +02:00
Nikhil Marathe
ef67afa2aa
Bug 887068 - SimplePush: Rename use of _request to _sendRequest. r=dougt
...
--HG--
extra : amend_source : 1c7cdca05ba04670ce696670a64607b808014188
2013-06-25 22:47:16 -07:00
Nikhil Marathe
a4d0a3c54e
Bug 885156 - Set _started in PushService.init(). r=dougt
2013-06-20 13:38:01 -07:00
Nikhil Marathe
67e00e0159
Bug 863660 - Add pref to enable/disable SimplePush WebSocket. r=dougt
...
This pref should be used in UX to enable/disable push notifications
when the user wants to conserve battery life or save data usage.
--HG--
extra : rebase_source : a75b089082a4d44170890cae228c62114633f790
2013-06-17 11:36:58 -07:00
Mike Shal
87c2fdb386
Bug 880245 - Move EXTRA_JS_MODULES to moz.build (conversion part 1); r=joey
...
From 69c3338a3287ff8cc97533e06069fc4d4cb7c5f6 Mon Sep 17 00:00:00 2001
2013-06-10 12:08:47 -04:00
Nikhil Marathe
53325a3cb8
Bug 863599 - Load PushService on Desktop. r=dougt sr=gavin
2013-06-12 17:26:44 -07:00
Nikhil Marathe
6e15ac0832
Bug 881416 - Toggle Push WebSocket when Offline mode is toggled. r=mayhemer
2013-06-12 14:47:42 -07:00
Joey Armstrong
e3210c223f
bug 870370: move EXTRA_COMPONENTS to moz.build (file batch #2 ). r=mshal
2013-06-10 11:19:28 -04:00
Carmen Jimenez Cabezas
5d96f3320a
Bug 880183: Report error on deleting non existant endpoint. r=nsm
...
--HG--
extra : amend_source : 2007bc70ecc01016bdd4b487a124e2fceb7d1aa8
2013-06-06 23:12:29 +02:00
Nikhil Marathe
c3aa52036a
Bug 867913 - SimplePush: Monitor for active network change on B2G. r=jlebar
2013-06-02 20:43:10 -07:00
Gregory Szorc
1b12175ba0
Bug 873629 - Remove 129 empty Makefile.in files; r=ted
2013-05-17 16:20:11 -07:00
Nikhil Marathe
1831546b3a
Bug 863732 - Use RTC wakeup to monitor WebSocket connection. r=jlebar
2013-05-14 15:48:19 +05:30
Chris Peterson
84790a8488
Bug 834033 - Fix JS ReferenceErrors in PushService.jsm error handling. r=dougt
2013-05-02 11:46:45 -07:00
Nikhil Marathe
850535cee6
Bug 863598 - SimplePush: Make PushService a module. r=dougt
...
--HG--
rename : dom/push/src/PushService.js => dom/push/src/PushService.jsm
2013-05-02 10:45:18 +05:30
Doug Turner
a797646ec5
Bug 856495 - Push notifications - Catch network manager undefined. r=nsm
2013-04-22 11:43:31 -04:00
Nick Alexander
0481627d39
Bug 848519 - Part 3: Replace services-common/preferences.js with gre/modules/Preferences.jsm in imports. r=gavin
2013-04-15 12:45:37 -07:00
Nikhil Marathe
c6ad38a532
Bug 851253 - SimplePush: Only wakeup apps that have registrations. r=jlebar
...
--HG--
extra : rebase_source : bbca711265f60ee06124d82d82077c3e02aca02a
2013-04-09 14:12:35 -07:00
Doug Turner
6d0e972630
Bug 856440 - Use global preference object instead of a getter. r=nsm
...
--HG--
extra : rebase_source : 1d828675c711d0d862a48370ebc207d4b7f0e205
2013-04-09 11:02:00 -07:00
Jason Duell
3c0ce1c33a
Bug 855906 - SimplePush: Set pingInterval on websocket. r=dougt
2013-04-05 13:52:24 -07:00
Nikhil Marathe
f356aa486e
Bug 851368 - Remove SimplePush registrations on app uninstall. r=dougt
...
--HG--
extra : rebase_source : 1af46c496c72ad81b5afe335593952e273a2ad8c
2013-04-04 13:42:35 -07:00
Nikhil Marathe
7c2b346a5a
Bug 856273 - Filter SimplePush registrations() by app manifest URL. r=khuey
...
--HG--
extra : rebase_source : f01ab35375ff9d70e11d40a4426a8ef14f9166f1
2013-04-03 13:03:57 -07:00
Doug Turner
428a3af9b0
Bug 856440 - Push Notification startup regression. r=nsm
...
--HG--
extra : rebase_source : 5e56eddbab9a85c2a1fe7196e407a7b9d4c123d0
2013-04-01 18:03:53 -07:00
Nikhil Marathe
1787b92959
Bug 856280 - Remove extra import services-common/utils.js. r=dougt
2013-04-01 10:37:51 -04:00
Doug Turner
57b9036ba2
Bug 822712 - SimplePush - UDP Wakeup feature. r=jst, jlebar
2013-03-28 20:49:41 -07:00
Nikhil Marathe
032f5a8a7b
Bug 822712 - SimplePush - Implementation. r=dougt, jst, jlebar
2013-03-28 20:49:41 -07:00