Commit Graph

211 Commits

Author SHA1 Message Date
Nikhil Marathe
89873a918e Bug 1114554 - Patch 8 - Support waitUntil() on notificationclick event. r=baku
This was originally a part of Bug 1160527, separated due to changes in order of landing the patches.
2015-06-24 09:34:11 -07:00
Nikhil Marathe
88b7462150 Bug 1114554 - Patch 4 - ServiceWorkerRegistration.getNotifications() on main thread. r=wchen 2015-04-27 14:18:54 -07:00
Nikhil Marathe
242fe36854 Bug 1114554 - Patch 3 - Fire notificationclick event on ServiceWorkerGlobalScope. r=wchen,baku
Bug 1114554 - Patch 3.1 - ServiceWorker principal fixes. r=baku

Bug 1162088 introduced origin attributes that ServiceWorkerManager callers have to use. This patch updates notificationclick events to work.

Folded:
Hide NotificationEvent behind pref
2015-06-25 15:01:01 -07:00
Juan Gomez
7323e89a40 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Nikhil Marathe
66b924c986 Bug 1169044 - Patch 4 - Set referrer on intercepted request. r=jdm 2015-06-04 15:50:03 -07:00
Nikhil Marathe
386ed172ac 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.
2015-06-24 13:34:54 -07:00
Ryan VanderMeulen
2768d1ce46 Backed out changeset 98c7277a8fb5 (bug 1166350) for xpcshell failures. 2015-06-24 16:10:45 -04:00
Nikhil Marathe
6475190f81 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.
2015-06-02 15:56:33 -07:00
Nikhil Marathe
455000ceb5 Bug 1160527 - Patch 1 - Support PushEvent.waitUntil(). r=baku. 2015-06-02 14:52:49 -07:00
Ehsan Akhgari
1da1a13041 Bug 1175480 - Expose the external content policy type from the load info objects; r=smaug
Consumers of this type need to deal with the external content policy
types.  One example is HttpObserverManager.runChannelListener in
WebRequest.jsm.
2015-06-24 08:52:45 -07:00
Josh Matthews
78dbef7133 Bug 1137683 - Use a loadgroup derived from the document's when updating a ServiceWorker; r=bkelly 2015-06-23 10:50:04 -07:00
Andrea Marchesini
530c7f5110 Bug 1174381 - ServiceWorkerManager::TeardownRunnable should be called when xpcom-shutdown notification is received, r=nsm 2015-06-23 05:56:29 -07:00
Ryan VanderMeulen
565d733cc2 Backed out changeset b7653e3d5f91 (bug 1174381) for widespread assertion failures. 2015-06-21 07:47:02 -04:00
Andrea Marchesini
d94332756c Bug 1167296 - patch 2 - ServiceWorkerManager::Remove should use PBackground, r=nsm 2015-06-21 12:19:07 +01:00
Andrea Marchesini
3853db5097 Bug 1167296 - patch 1 - ServiceWorkerManager::RemoveAll should use PBackground, r=nsm 2015-06-21 12:17:58 +01:00
Andrea Marchesini
f8062b6dec Bug 1174381 - ServiceWorkerManager::TeardownRunnable should be called when xpcom-shutdown notification is received, r=nsm 2015-06-21 10:21:28 +01:00
Carsten "Tomcat" Book
3831cc0746 Backed out changeset b2c472fe14ca (bug 1175480) for crashes in serviceworkers/test_request_context.htm 2015-06-18 09:54:44 +02:00
Carsten "Tomcat" Book
7c2f31f7f9 Backed out changeset 7b09594541f3 (bug 1148935) 2015-06-18 09:48:01 +02:00
Ehsan Akhgari
88108ae70d Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-17 17:48:45 -04:00
Ryan VanderMeulen
683c534ba0 Backed out changeset 439e1f841ea2 (bug 1148935) for Werror bustage.
CLOSED TREE
2015-06-17 15:48:16 -04:00
Ehsan Akhgari
3863ad11ab Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-17 15:09:07 -04:00
Ehsan Akhgari
af23023fc2 Bug 1175480 - Expose the external content policy type from the load info objects; r=smaug
Consumers of this type need to deal with the external content policy
types.  One example is HttpObserverManager.runChannelListener in
WebRequest.jsm.
2015-06-17 15:09:06 -04:00
Jose Antonio Olivera Ortega
0703eb0d29 Bug 1160458 - Part 1: Use the CSP of the principal passed to CreateServiceWorker. r=nsm 2015-06-16 09:20:21 +02:00
Ehsan Akhgari
f8893fada2 Bug 1172948 - Part 2: Consider all non-chrome parent documents when checking the authenticity of an origin; r=nsm 2015-06-12 09:45:48 -04:00
Ehsan Akhgari
158cbf198d Bug 1172948 - Part 1: Refactor the logic for checking for authenticated origins into a helper function; r=nsm 2015-06-12 09:45:46 -04:00
Nikhil Marathe
e37a9af56b Bug 1170822 - Fix controlled documents comparison. r=catalinb 2015-06-02 14:53:09 -07:00
Fernando Jimenez
d9d7dbf423 Bug 1169249 - Unregister service worker registration when uninstalling a service-worker-enabled application. r=baku 2015-06-11 19:42:38 +02:00
Eric Rahm
b52acc87bf Bug 1171555 - Remove overly verbose ServiceWorker warnings. r=bkelly 2015-06-11 09:47:46 -07:00
Fernando Jimenez
7615e5c27c Bug 1137245 - ServiceWorkerManager should set WorkerPrivate::LoadInfo::mIndexedDBAllowed correctly. r=bent, bkelly 2015-06-11 15:32:54 +02:00
Ben Kelly
32d2fe664c Bug 1173361 Make ServiceWorkerRegisterJob::Start() call Done() async. r=nsm 2015-06-10 13:39:42 -07:00
Ehsan Akhgari
63c4516064 Bug 1173240 - Use the document URI for performing the service worker registration secure origin check; r=baku 2015-06-10 10:33:36 -04:00
Andrea Marchesini
3e8616e1d2 Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley 2015-06-04 19:51:57 +01:00
Nikhil Marathe
5a1233d36a Bug 1172717 - Fail on UNKNOWN_APP_ID instead of crashing. r=bholley a=RyanVM 2015-06-08 16:18:09 -07:00
Jose Antonio Olivera Ortega
afca6bd24a Bug 1115820 - Add telemetry to ServiceWorkers. r=nsm, r=vladan 2015-06-05 08:11:18 +02:00
Ehsan Akhgari
e051bb83ce Bug 1171486 - Part 2: Make it OK to call ServiceWorkerManager::GetInstance() during its Init() function; r=baku 2015-06-05 08:52:19 -04:00
Carsten "Tomcat" Book
00075586c5 Backed out changeset bc305c9b5d05 (bug 1155153) for b2g xpshell test failure on a CLOSED TREE 2015-06-05 13:07:51 +02:00
Andrea Marchesini
f04368fa30 Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley 2015-06-04 19:51:57 +01:00
Ehsan Akhgari
3144e13581 Bug 1171486 - Avoid recursively obtaining the service worker manager service; r=nsm 2015-06-04 16:27:48 -04:00
Bobby Holley
1a6e5451b1 Bug 1171175 - Improve BasePrincipal::IsCodebasePrincipal. r=baku 2015-06-04 10:01:40 -07:00
Andrea Marchesini
19fd4301a8 Bug 1131352 - Part 3: ServiceWorkerManager::SetSkipWaitingFlag() updated CLOSED TREE 2015-06-03 15:20:52 +01:00
Jose Antonio Olivera Ortega
32e71ba20a Bug 1131352 - Part 2: Add ServiceWorkerGlobalScope skipWaiting(). r=nsm, r=baku 2015-06-02 07:12:00 -04:00
Andrea Marchesini
5ad7cadc6a 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
Ehsan Akhgari
87533a576a Bug 1170550 - Don't crash when registering a service worker which has a strict mode error; r=baku 2015-06-02 18:20:52 -04:00
Jose Antonio Olivera Ortega
91ac367fc9 Bug 1169210 - Can't call content service worker from chrome. r=nsm 2015-05-29 18:17:33 +02:00
Fernando Jimenez
2f6301087c Bug 1161684 - Allow JAR channels to be intercepted by service workers. r=jdm 2015-05-22 09:32:25 +02:00
Sebastian Hengst
f441f747e7 Backout 068cc6419d1e (Bug 1161684) for M4 perma-failures on opt. r=backout 2015-05-22 10:48:03 +02:00
Fernando Jimenez
e648ef08d0 Bug 1161684 - Allow JAR channels to be intercepted by service workers. r=jdm 2015-05-22 09:32:25 +02:00
Ryan VanderMeulen
4fdce31ae0 Backed out changeset f0af05d88416 (bug 1162088) for various web-platform-test failures.
CLOSED TREE
2015-05-19 15:20:15 -04:00
Andrea Marchesini
794ebddb76 Bug 1162088 - ServiceWorkerManager should use the principal+scope for the initialization of ServiceWorkers, r=nsm,ehsan 2015-05-19 17:53:36 +01:00
Terrence Cole
3ffd505617 Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00