Commit Graph

136 Commits

Author SHA1 Message Date
Andrea Marchesini
ae62b704cd Bug 1133601 - Implement about:serviceworkers, r=ehsan 2015-04-10 09:50:06 +01:00
Nikhil Marathe
2a2aa2fb69 Bug 931249 - Patch 16 - Keep ServiceWorker alive during installation steps. r=baku 2015-04-01 16:46:49 -07:00
Nikhil Marathe
08bb19f14e Bug 931249 - Patch 11 - Remove unused cacheName. r=bkelly 2015-03-19 17:25:28 -07:00
Nikhil Marathe
2b639b0da8 Bug 931249 - Patch 9 - Use ServiceWorker cache name as part of it's unique name. r=khuey
When a SW script is updated (it gets a new cache), if there was already an existing running worker with the same scope and script, that would be reused and the update wouldn't happen.
2015-03-19 16:40:52 -07:00
Nikhil Marathe
37f52fe27f Bug 931249 - Patch 7 - Call Done() after Succeed() when cache and network match. r=bkelly 2015-03-19 15:03:49 -07:00
Nikhil Marathe
982f4678c0 Bug 931249 - patch 4 - comparison. r=nsm 2015-03-18 09:52:54 -07:00
Nikhil Marathe
f90fc5f7c9 Bug 931249 - patch 2.2 - purge old active worker cache when activating new worker. r=baku 2015-03-18 14:05:00 -07:00
Nikhil Marathe
075580b2e4 Bug 931249 - patch 2.1 - reuse cache name between updating and installing worker. r=baku 2015-03-18 14:02:51 -07:00
Nikhil Marathe
c87c82a2b9 Bug 931249 - patch 2 - cachename integration. r=nsm 2015-03-18 09:46:38 -07:00
Nikhil Marathe
e32a19812b Bug 931249 - patch 1 - Scriptloader use cache if needed. r=khuey 2015-03-19 11:41:42 -07:00
Ehsan Akhgari
efcd33bff6 Bug 1148854 - Part 1: Relax the assertion in ServiceWorkerManager::DispatchFetchEvent; r=nsm,jdm 2015-04-02 17:58:22 -04:00
Ehsan Akhgari
1a3fc97405 Bug 1147699 - Part 2: Set the content policy type on FetchEvent.request based on the content policy type of the channel; r=nsm
Note that InternalRequest::SetContentPolicyType takes care of updating the
RequestContext value stored in InternalRequest too.
2015-03-30 08:42:33 -04:00
Nick Fitzgerald
1f9f9949f7 Bug 1038238 - Part 1: Make Error instances use SavedFrame objects for their
stacks; r=jorendorff
2015-03-27 13:08:46 -07:00
Andrea Marchesini
ad97ae68b8 Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Andrew Overholt
d41fd71a28 Bug 1127552 - Add Telemetry to Fetch. r=nsm
Note when the Fetch is coming from the main thread or a worker.  Also
count Requests just passed through a Service Worker.
2015-03-27 06:47:00 -04:00
Jose Antonio Olivera Ortega
e15639e6b4 Bug 1003991 - Disable https:// only load for ServiceWorkers when Developer Tools are open. r=nsm, r=miker 2015-03-24 14:15:00 -04:00
Nikhil Marathe
247727bf68 Bug 1134324 - Set CORS mode and credentials on Fetch event Request. r=michal
renames fetch to fetchXHR() since fetch() is now a superpower.
2015-03-17 08:47:02 -07:00
Josh Matthews
02821cb4eb Bug 1134330 - Mark fetch events as reloads appropriately. r=smaug 2015-03-23 13:36:44 -04:00
Ehsan Akhgari
ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
a0dc1fe4a1 Bug 1144876 - Stop spamming stderr with a warning every time that we encounter a document that is not controlled by a service worker; r=nsm 2015-03-18 14:16:00 +01:00
Daniel Holbert
ddb04a0443 Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Nikhil Marathe
13b5a9364d Bug 1131271 - Set ServiceWorker script redirect limit to zero. r=bkelly,ehsan 2015-02-09 13:47:09 -08:00
Nikhil Marathe
51e0c370ac Bug 1130688 - Implement additional scope checking in service worker registration. r=bkelly,ehsan 2015-03-09 18:57:06 -07:00
Catalin Badea
89789e6fc6 Bug 1058311 - Update client interface. Implement matchAll WindowClient. r=baku 2015-03-06 15:04:49 +02:00
Nikhil Marathe
f4cb39deb7 Bug 1139990 - Remove No activatingWorker warning. r=ehsan 2015-03-05 09:39:58 -08:00
Nikhil Marathe
e899939a90 Bug 1137419 - Use correct principal for update. r=baku 2015-02-23 10:34:40 -08:00
Nikhil Marathe
bd7f32f7ea Bug 1131882 - Associate ServiceWorkers with underlying ServiceWorkerInfo. r=baku
This allows controller to track state too, and provides better encapsulation.
1) Move SW setup to SWM. RuntimeService now only creates the underlying SharedWorker.
2) Require a SWInfo to create a SW. The SW holds a refptr to the info.
2015-02-19 08:40:21 -08:00
Nikhil Marathe
2eb04ccb93 Bug 1132141 - Update storage when ServiceWorker registration fails. r=baku 2015-02-11 10:51:32 -08:00
Nikhil Marathe
4ba8470675 Bug 1131874 - ServiceWorker persistence activation fixes. r=baku 2015-02-10 18:08:58 -08:00
Tim Taubert
da81f4c143 Bug 1001691 - WorkerPrivate::LoadInfo -> WorkerLoadInfo r=khuey 2015-02-12 10:50:05 +01:00
Tim Taubert
1ceefc2965 Backed out changeset 2ea14f386df2 (bug 1001691) 2015-03-03 19:13:23 +01:00
Tim Taubert
e5f61834ab Bug 1001691 - WorkerPrivate::LoadInfo -> WorkerLoadInfo r=khuey 2015-02-12 10:50:05 +01:00
Josh Matthews
3f193a0cb9 Bug 1137250 - Fix incorrect initialization of Request object. r=bz 2015-02-26 15:40:00 -05:00
Nikhil Marathe
cc6871fcd1 Bug 1137408 - Use inner window to create ServiceWorker for Fetch Event. r=jdm 2015-02-26 15:14:51 -05:00
Ben Kelly
dad79a535a Bug 1118845 P2 Make SharedWorker override parent LoadGroup with custom proxy callbacks. r=khuey 2015-02-21 10:09:17 -05:00
Daniel Holbert
f402074538 Bug 1134931: Add some missing MOZ_OVERRIDE annotations in ServiceWorkerManager.cpp, nsFrameMessageManager.cpp, and 2D.h. r=ehsan 2015-02-20 09:25:07 -08:00
Catalin Badea
51a535c3ff Bug 1058311 - Remove prefix for SWClients. Rename getServiced to matchAll. Add stub query options for matchAll r=baku 2015-02-20 17:16:17 +02:00
Josh Matthews
e333052c55 Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 20:34:29 -05:00
Ryan VanderMeulen
e1c8dc900b Backed out changeset 25f90464e93b (bug 1065216) for Android mochitest failures. 2015-02-18 16:00:33 -05:00
Josh Matthews
6857251ced Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 14:10:52 -05:00
Nikhil Marathe
efa9c0d66b Bug 1130570 - Ensure we have a valid runtime service, and clear updating scopes on early return. r=baku 2015-02-11 13:24:57 -08:00
Nikhil Marathe
16455755b3 Bug 1130065 - ServiceWorkerManager capture "atomically" properly.
Folds:
Enable most SW tests
Cannot rely on controllerchange firing in an already controlled window. The AbortError case is no longer relevant due to FIFO ordering
Too bad we have to use timeouts
2015-02-10 14:33:23 -08:00
Nikhil Marathe
af6fc8b6ae Bug 1041340 - Implement [[HandleDocumentUnload]]. r=baku 2014-10-24 15:11:26 -07:00
Andrea Marchesini
e89dcf46ef Bug 1133242 - ServiceWorkerManager must use the correct principal in b2g, r=nsm 2015-02-17 13:36:09 +01:00
Carsten "Tomcat" Book
a35df81bb3 Backed out changeset 4ed31c8b45c6 (bug 1041340) for causing multiple timeouts on different platforms in service worker tests on a CLOSED TREE 2015-02-17 09:35:58 +01:00
Carsten "Tomcat" Book
57cb3c0a5a Backed out changeset 4d8423d5a83b (bug 1130065) 2015-02-17 09:35:27 +01:00
Carsten "Tomcat" Book
0c49a0a6f4 Backed out changeset 8e6ce9a41be7 (bug 1130570) 2015-02-17 09:35:25 +01:00
Andrea Marchesini
77bd56d1e2 Bug 1133541 - ServiceWorkerManger::GetRegistrations should use the principal to match the registration objects, r=nsm 2015-02-16 23:22:17 +01:00
L. David Baron
1fae6d1f54 Back out changeset ffa5f28f512c (bug 1133541) on a CLOSED TREE for failing to compile (aPrincipal: undeclared identifier). 2015-02-17 10:42:40 +13:00
Andrea Marchesini
af6a12255a Bug 1133541 - ServiceWorkerManger::GetRegistrations should use the principal to match the registration objects, r=nsm 2015-02-16 21:59:53 +01:00