Commit Graph
525 Commits
Author SHA1 Message Date
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
Nikhil Marathe 34e8a4b8ea 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 6edaf1ad23 Bug 1130065 - ServiceWorkerManager capture "atomically" properly. r=baku
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 a24c37ea22 Bug 1041340 - Implement [[HandleDocumentUnload]]. r=baku 2014-10-24 15:11:26 -07:00
Andrea Marchesini de5e712eda Bug 984050 - Persist ServiceWorkerRegistrations. r=bent, r=nsm 2015-02-11 06:53:00 -05:00
Carsten "Tomcat" Book 5e3f1e809b Backed out changeset b3a1efe7900a (bug 984050) for cpp unitest failures on a CLOSED TREE 2015-02-11 13:29:16 +01:00
Andrea Marchesini 81ac08e913 Bug 984050 - Persist ServiceWorkerRegistrations. r=bent,nsm 2015-02-11 10:10:23 +01:00
Andrea Marchesini 0155dd5d36 Bug 1131700 - ServiceWorkerManager::CreateServiceWorker should use RuntimeService::GetOrCreateService. r=nsm 2015-02-10 09:58:00 +01:00
Dhi Aurrahman 1aac214090 Bug 1113003: Remove domain level lookup from ServiceWorkerManager. r=nsm 2015-02-09 11:33:39 +07:00
Phil Ringnalda b2db6abba6 Back out 3da63ccbadef (bug 984050) for Windows cppunit bustage
CLOSED TREE
2015-02-06 19:49:42 -08:00
Andrea Marchesini 838bcc28bc Bug 984050 - Persist ServiceWorker registrations, r=bent, r=nsm 2015-02-06 23:31:33 +00:00
Nikhil Marathe 793e653abc Bug 1113957 - ServiceWorker unregistration uses job queue. r=baku 2015-01-22 14:10:38 -08:00