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
Ben Kelly
1069685d1e
Bug 1231974 P3 Store the principal on the ServiceWorkerJobBase. r=baku
2015-12-18 11:04:39 -05:00
Ben Kelly
df5ad0d651
Bug 1226443 P2 Make service worker fetch and functional events used scheduled timer updates. r=ehsan
2015-12-11 14:53:11 -05:00
Ben Kelly
307ce185ba
Bug 1226443 P1 Add a timer based mechanism for firing service worker updates. r=ehsan
2015-12-11 14:53:10 -05:00
Ben Kelly
4894a7cfe2
Bug 1227015 P5 Remove ServiceWorkerRegistrationInfo mScriptSpec. r=ehsan
2015-12-11 14:53:10 -05:00
Ben Kelly
fe53d2c3f1
Bug 1227015 P1 Create ServiceWorkerScriptJobBase as parent class to register and install jobs. r=ehsan
2015-12-11 14:53:10 -05:00
Phil Ringnalda
19c264469f
Back out 13 changesets (bug 1226443, bug 1227015) for a variety of serviceworker web-platform-test failures
...
CLOSED TREE
Backed out changeset d518261eb3b1 (bug 1226443)
Backed out changeset a7def186c1d3 (bug 1226443)
Backed out changeset e2f21ee1cd4c (bug 1226443)
Backed out changeset 8c4aff8bbfaf (bug 1226443)
Backed out changeset 4c85bf5e9bf5 (bug 1226443)
Backed out changeset 8fbc71a2912a (bug 1227015)
Backed out changeset 00ac71165014 (bug 1227015)
Backed out changeset e261f601b14d (bug 1227015)
Backed out changeset 78896c0bcb95 (bug 1227015)
Backed out changeset 244093d57c03 (bug 1227015)
Backed out changeset 03abf4d48e38 (bug 1227015)
Backed out changeset 2090c1e30933 (bug 1227015)
Backed out changeset 84e011be4e35 (bug 1227015)
2015-12-10 18:49:48 -08:00
Ben Kelly
a24969614e
Bug 1226443 P2 Make service worker fetch and functional events used scheduled timer updates. r=ehsan
2015-12-10 18:08:14 -05:00
Ben Kelly
b462224332
Bug 1226443 P1 Add a timer based mechanism for firing service worker updates. r=ehsan
2015-12-10 18:08:14 -05:00
Ben Kelly
8553f6a213
Bug 1227015 P5 Remove ServiceWorkerRegistrationInfo mScriptSpec. r=ehsan
2015-12-10 18:08:13 -05:00
Ben Kelly
e48e8283b3
Bug 1227015 P1 Create ServiceWorkerScriptJobBase as parent class to register and install jobs. r=ehsan
2015-12-10 18:08:13 -05:00
Phil Ringnalda
25f1862c01
Back out 7 changesets (bug 1227015) for serviceworker bustage
...
CLOSED TREE
Backed out changeset a267542e8cb7 (bug 1227015)
Backed out changeset 03c28b711e1f (bug 1227015)
Backed out changeset 5fc6fca28ddf (bug 1227015)
Backed out changeset 7fb0c56916d2 (bug 1227015)
Backed out changeset 4bef51e9c8ae (bug 1227015)
Backed out changeset c46b5abddec5 (bug 1227015)
Backed out changeset fb4554bd3bde (bug 1227015)
2015-12-08 20:37:16 -08:00
Ben Kelly
e49dd390ed
Bug 1227015 P5 Remove ServiceWorkerRegistrationInfo mScriptSpec. r=ehsan
2015-12-08 11:58:45 -05:00
Ben Kelly
b72cfb4d78
Bug 1227015 P1 Create ServiceWorkerScriptJobBase as parent class to register and install jobs. r=ehsan
2015-12-08 11:58:44 -05:00
Ehsan Akhgari
9ea6603485
Bug 1229056 - Implement ClientQueryOptions.includeUncontrolled; r=jdm
2015-12-02 20:37:03 -05:00
Ehsan Akhgari
8a0a915f37
Bug 1222464 - Part 3: Implement Clients.get(); r=jdm
2015-12-02 20:37:01 -05:00