Ben Kelly
f201d106ad
Bug 1402085 P1 Maybe fire ServiceWorkerContainer.ready promise when a registration is resurrected. r=asuth
2017-09-22 12:38:09 -07:00
Ho-Pang Hsu
a6182fce1d
Bug 1353636 - Part 1: Move from nsLoadFlags to UpdateViaCache. r=bkelly
2017-08-16 14:18:52 +08:00
Andrea Marchesini
fb7383d3ee
Bug 1346247 - Avoid race conditions when SW are updated - part 3 - MozPromise, r=bkelly
2017-03-28 11:49:16 +02:00
Andrea Marchesini
b33210c44a
Bug 1346247 - Avoid race conditions when SW are updated - part 1 - PServiceWorkerUpdater actor, r=bkelly
2017-03-28 11:48:38 +02:00
Ben Kelly
d078a74225
Bug 1343308 P1 Make Clients.matchAll() only return Clients controlled by the current service worker. r=baku
2017-03-01 13:08:54 -05:00
Ben Kelly
e86b60fd3e
Bug 1335414 Make ServiceWorkerManager::CreateNewRegistration() safer. r=asuth
2017-01-31 07:29:34 -08:00
Ben Kelly
e93380c6c0
Bug 1330679 Don't force crash if ServiceWorkerManager tries to init during browser shutdown. r=baku
2017-01-13 07:39:30 -08:00
Ben Kelly
f338b42112
Bug 1330673 Gracefully handle ServiceWorkerRegistrar not being active. r=baku
2017-01-13 07:39:28 -08:00
Andrea Marchesini
46a9207d60
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Ho-Pang Hsu
9531839afe
Bug 1290944 - Part 2.1: Save load flags in ServiceWorkerRegistration. r=bkelly
2017-01-04 17:08:43 +08:00
Catalin Badea
acbc14d028
Bug 1317266 - Transition ServiceWorker instances when the SW changes states instead of just invalidating them. r=bkelly
2016-11-21 02:14:54 +00:00
Ehsan Akhgari
516a4de699
Bug 1318206 - Remove some unused code for clearing app data; r=baku,mcmanus
2016-11-17 08:30:21 -05:00
Andrea Marchesini
9543422488
Bug 1289001 - NeckoParent::GetValidatedAppInfo should consider ServiceWorkers when validating HttpChannel requests, r=bkelly, r=valentin, f=asuth
2016-11-03 08:18:51 +01:00
Sebastian Hengst
f752a66b1e
Backed out changeset 0473f2d0d024 (bug 1289001) for eslint failures. r=backout on a CLOSED TREE
2016-11-02 23:04:44 +01:00
Andrea Marchesini
14fd7d346f
Bug 1289001 - NeckoParent::GetValidatedAppInfo should consider ServiceWorkers when validating HttpChannel requests, r=bkelly, r=valentin, f=asuth
2016-11-02 21:57:45 +01:00
Tom Tung
1f61d7f9c3
Bug 1187335 - P1 - Add a way to report error to all clients for ServiceWorker and SharedWorker. r=bkelly.
2016-05-23 14:56:46 +08:00
Ben Kelly
2883244a9d
Bug 1170543 P3 Expose ServiceWorker idle thread state to ServiceWorkerManager. r=asuth
2016-07-27 20:36:10 -04:00
Ben Kelly
14437c37cd
Bug 1228277 P2 Make skipWaiting() check the evaluating service worker script. r=asuth
2016-07-27 19:09:15 -04:00
Andrew Sutherland
371cc6a534
Bug 1267473 - Report to console if service worker script 404s. r=bkelly
...
Add an error message of the following form for when a register/update job
fails for network reasons:
Failed to register/update a ServiceWorker for scope
‘http://mochi.test:8888/tests/dom/workers/test/serviceworkers/network_error/’ :
Load failed with status 404 for script
‘http://mochi.test:8888/tests/dom/workers/test/serviceworkers/404.js’ .
A mochitest is added that verifies this.
To simplify the process of logging error messages, ServiceWorkerManager gains
a new LocalizeAndReportToAllClients method that always provides the SW scope as
the first argument to the localized string since all good error messages should
include it.
Its argument list takes an nsTArray<nsString> in order to reduce the potential
for use-after-free scenarios from the char16_t** signature that unfortunately
has rippled outwards from the nsIStringBundle interface. This potentially
results in more memory allocation and byte shuffling than is strictly
necessary, but we're also talking about rare error logging where it's
better to optimize for easily adding the messages without needing to get hung
up on the life-cycle of temporaries.
nsTArray gained a std::initializer_list in bug 1228641. It is explicit, so
inline argument usages may take a form along the lines of:
`nsTArray<nsString> { string1, string2, ... }`
This change did necessitate a change to nsContentUtils to add an nsTArray
variant of FormatLocalizedString since the existing public function was
slightly too clever. It used a template function to statically acquire the
number of arguments at compile time, which is not compatible with the dynamic
nsTArray usage. Since nsTArray may be useful to other consumers as well, I
placed the conversion logic in nsContentUtils.
2016-07-10 22:22:27 -04:00
Kit Cambridge
e7a2a81c8d
Bug 1265841 - Implement the notificationclose service worker event. r=wchen,baku
...
MozReview-Commit-ID: EQfCbQKqn9H
2016-04-19 22:04:09 -07:00
Ben Kelly
45409cdb3a
Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz
2016-04-24 08:11:32 -07:00
Phil Ringnalda
6fa074ec92
Back out 4 changesets (bug 1265771, bug 1266857) for leaks in browser_DownloadPDFSaver.js on Windows
...
CLOSED TREE
Backed out changeset a0c85ccffafd (bug 1266857)
Backed out changeset 1cf8785bdc0c (bug 1265771)
Backed out changeset e411c3ccd7b6 (bug 1265771)
Backed out changeset a298cd2c9417 (bug 1265771)
2016-04-22 21:27:11 -07:00
Ben Kelly
5c3a469018
Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz
2016-04-22 00:50:13 -07:00
Ben Kelly
9b0c3b9457
Bug 1260591 Move ServiceWorkerInfo and ServiceWorkerRegistrationInfo into separate files. r=jdm
2016-04-08 17:28:25 -07:00
Wes Kocher
52b6ee169a
Backed out changeset c24f78610523 (bug 1260591) for build bustage on at least Windows CLOSED TREE
...
MozReview-Commit-ID: AlLfu3CM10S
2016-04-08 16:03:54 -07:00
Ben Kelly
7e376d251e
Bug 1260591 Move ServiceWorkerInfo and ServiceWorkerRegistrationInfo into separate files. r=jdm
2016-04-08 15:43:11 -07:00
Ben Kelly
5919336d94
Bug 1256428 P17 Rename service worker job classes to remove "2" suffix. r=jdm
2016-04-06 13:27:23 -07:00
Ben Kelly
ac2d9c9d27
Bug 1256428 P12 ServiceWorkerUnregisterJob2 should not use ServiceWorkerManager internals. r=jdm
2016-04-06 13:27:23 -07:00
Ben Kelly
cf2a41c58f
Bug 1256428 P10 Remove ServiceWorkerRegistrationInfo::mUpdating flag. r=jdm
2016-04-06 13:27:23 -07:00
Ben Kelly
a48f2aa5cb
Bug 1256428 P9 Remove now unused code from ServiceWorkerManager.cpp. r=jdm
2016-04-06 13:27:22 -07:00
Ben Kelly
ae8ab62d8c
Bug 1256428 P6 Use ServiceWorkerJobQueue2 and new job classes in ServiceWorkerManager. r=jdm
2016-04-06 13:27:22 -07:00
Ben Kelly
88d3820ae1
Bug 1256428 P5 Add ServiceWorkerUnregisterJob2 class. r=jdm
2016-04-06 13:27:22 -07:00
Ben Kelly
84e0ba9da8
Bug 1256428 P3 Add ServiceWorkerUpdateJob2. r=jdm
2016-04-06 13:27:22 -07:00
Ben Kelly
1a1ce37d41
Bug 1256428 P1 Add ServiceWorkerJob2 base class. r=jdm
2016-04-06 13:27:22 -07:00
Kit Cambridge
c1473206f5
Bug 1246341 - Report push event errors and rejections to the Push service. r=baku
...
MozReview-Commit-ID: D6fRPqojOEh
2016-03-28 11:50:39 -07:00
Ben Kelly
658c9f05ca
Bug 1256411 Simplify and cleanup ServiceWorkerInfo. r=ehsan
2016-03-15 07:29:56 -07:00
Ben Kelly
71c5b049ae
Bug 1253738 P1 Require an explicit principal when looking up a service worker registration. r=baku
2016-03-08 06:55:41 -08:00
Ben Kelly
feefec5290
Bug 1252055 P1 Make equivalent ServiceWorker DOM objects strictly equal in js. r=ehsan
2016-03-03 19:37:57 -05:00
dimi
48a1b4de79
Bug 1237992 - service worker activate should be executed after install onstatechange events are fired. r=bkelly
2016-02-25 09:03:28 +08:00
Ben Kelly
1807d44cc3
Bug 1242482 P4 Don't call SendUnregister() a second time when SW registration is finally removed. r=baku
2016-02-15 13:40:00 +01:00
Ben Kelly
d23c3d8574
Bug 1242482 P3 Don't send unregister messages when triggered from a PropagateUnregister(). r=baku
2016-02-20 07:03:00 +01:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Kit Cambridge
f3156a3121
Bug 1239584, Part 1 - Add nsIPushNotifier and nsIPushMessage interfaces. r=dragana
2016-01-13 22:19:51 -07:00
Kit Cambridge
6bbd351b71
Back out out 3 changesets (bug 1239584) for B2G build failures on a CLOSED TREE.
2016-01-22 11:06:14 -08:00
Kit Cambridge
80a8d6b653
Bug 1239584, Part 1 - Add nsIPushNotifier and nsIPushMessage interfaces. r=dragana
2016-01-13 22:19:51 -07:00
Yoshi Huang
bc71ddcaa7
Bug 1233644 - use pattern matching when listening clear-origin-data. r=baku
2015-12-18 18:58:41 +08:00
Ehsan Akhgari
6e8b3ac548
Bug 1236686 - Remove nsIFetchEventDispatcher; r=jdm
2016-01-05 15:04:41 -05:00