Ben Kelly
a92a9541cc
Bug 1170543 P4 Don't active service worker until the previous active service worker is idle. r=asuth
2016-07-27 20:36:10 -04: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
Ben Kelly
92307bf053
Bug 1283674 P1 Make ServiceWorkerContainer::GetController() work gracefully when its window is disconnected. r=baku
2016-07-04 06:50:25 -07:00
Andrea Marchesini
87366df1f0
Bug 1279453 - Remove separate worker binding for ServiceWorkerRegistration API, r=bkelly
2016-06-12 16:26:51 +02:00
Jonathan Watt
9c5b8de022
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Andrew Sutherland
f30328239a
Bug 1272436 - P0: Implement "only-if-cached" RequestCache mode. r=mayhemer, r=bkelly, r=bzbarsky for WebIDL change
...
The fetch spec has re-introduced "only-if-cached" mode which loads only from
the cache. There are privacy implications to this so for the time being it
is required that "same-origin" mode is used.
2016-06-08 12:10:15 -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
a7904d6fe0
Bug 1254741 P2 Don't aggressively terminate service workers when last controlled window is closed. r=baku
2016-05-23 02:46:26 -07:00
Andrea Marchesini
e0bc7f8f31
Bug 1268393 - Some compilation issues in ServiceWorker code, r=ehsan
2016-04-29 09:01:22 +08:00
Jonathan Watt
1011071d1e
Bug 1267509 - Make nsContentSecurityManager::IsURIPotentiallyTrustworthy act on an nsIPrincipal. r=bz
...
MozReview-Commit-ID: Zu1zU4Brkx
2016-04-26 11:30:43 +01:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -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
e4f78b28fa
Bug 1265795 P3 Assert that controlled documents have an outer window. r=bz
2016-04-21 16:10:40 -07:00
Ben Kelly
baffacb9a2
Bug 1265761 Clients.matchAll() should treat http windows as secure if devtools are open and http testing is enabled. r=ehsan
2016-04-19 11:22:16 -07:00
Ben Kelly
7800cd8887
Bug 1263307 P2 Make ServiceWorkerRegistrationInfo worker members private. r=jdm
2016-04-17 04:29:53 -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
23cd03bcce
Bug 1261776 Use SafeElementAt() in service worker job queue. r=ehsan
2016-04-06 10:21:36 -07:00
Kit Cambridge
f4242de8cc
Bug 1255621 - Ignore service workers previously registered in non-private windows. r=bkelly
...
MozReview-Commit-ID: 8ncS62nJKVD
2016-04-01 14:17:07 -07:00
John Dai
0fd1ac9c36
Bug 1220757 - Add report to console when service worker register fails due to mismatching scope path.r=bkelly
...
MozReview-Commit-ID: 9hRBzWtSAd2
2016-03-31 23:08:45 -07:00
Kit Cambridge
eaa2fe20c1
Bug 1247089 - Add a mode to ReportToConsoleNonLocalized that ignores the calling location. r=bkelly
...
MozReview-Commit-ID: 3hAP7IgNxYs
2016-03-10 20:28:41 -08: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
Kyle Huey
20d0dc7286
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Ben Kelly
658c9f05ca
Bug 1256411 Simplify and cleanup ServiceWorkerInfo. r=ehsan
2016-03-15 07:29:56 -07:00
Ehsan Akhgari
a55977ae64
Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer
2016-03-11 14:40:33 -05:00
Ryan VanderMeulen
29a0483afa
Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
...
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)
CLOSED TREE
2016-03-10 20:20:05 -05:00
Ehsan Akhgari
f939213b9f
Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer
2016-03-10 17:29:11 -05:00
Wes Kocher
59b783e560
Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
...
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)
MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Ehsan Akhgari
ae7aac4209
Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer
2016-03-09 16:42:53 -05:00
Ben Kelly
30b78ed2a0
Bug 1253738 P3 Use origin the ServiceWorkerManager scope key. r=baku
2016-03-08 06:55:41 -08:00
Ben Kelly
4e0a7b872d
Bug 1253738 P2 Consistently use "scope key" terminology in ServiceWorkerManager. r=baku
2016-03-08 06:55:41 -08: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
Ben Kelly
adb61bf3bc
Bug 1242482 P2 Don't SendUnregister() if registration is already removed. r=baku
2016-02-12 14:21:00 +01:00
Kyle Huey
f14b772a73
Bug 1247117: De-namespace much of IndexedDB. r=baku
2016-02-16 13:46:08 -08:00
Ben Kelly
80b65e0447
Bug 1247436 Ensure service worker registration is persisted if its resurrected from a pending uninstall. r=baku
2016-02-11 06:23:11 -08:00
Ben Kelly
eaf9800c6a
Bug 1238954 P1 Purge potentially controlled document entries when evicting service worker registrations. r=ehsan
2016-02-09 19:33:40 -08:00