Commit Graph

1595 Commits

Author SHA1 Message Date
Ehsan Akhgari
1ef91c9874 Bug 1147699 - Part 12: Add a test for FetchEvent.request.context when intercepting new window loads; r=nsm 2015-03-30 08:42:49 -04:00
Ehsan Akhgari
1853f19f3e Bug 1147699 - Part 11: Add tests for FetchEvent.request.context when intercepting iframes and frames; r=nsm 2015-03-30 08:42:47 -04:00
Ehsan Akhgari
10f853c059 Bug 1147699 - Part 10: Add a test for FetchEvent.request.context when intercepting font loads; r=nsm 2015-03-30 08:42:46 -04:00
Ehsan Akhgari
c7b94a91ea Bug 1147699 - Part 9: Add tests for FetchEvent.request.context when intercepting embeds and objects; r=nsm 2015-03-30 08:42:45 -04:00
Ehsan Akhgari
91890387ee Bug 1147699 - Part 8: Add a test for FetchEvent.request.context when intercepting a CSP report; r=nsm 2015-03-30 08:42:43 -04:00
Ehsan Akhgari
674440826f Bug 1147699 - Part 7: Add a test for FetchEvent.request.context when intercepting a beacon load; r=nsm 2015-03-30 08:42:41 -04:00
Ehsan Akhgari
dfb6645bd3 Bug 1147699 - Part 6: Add a test for FetchEvent.request.context when intercepting a video element load; r=nsm
Note that currently our implementation incorrectly reflects this as
'audio'.  This will be fixed later.
2015-03-30 08:42:39 -04:00
Ehsan Akhgari
64999cdc32 Bug 1147699 - Part 5: Add a test for FetchEvent.request.context when intercepting an audio element load; r=nsm 2015-03-30 08:42:37 -04:00
Ehsan Akhgari
7648ae690d Bug 1147699 - Part 4: Add a test for FetchEvent.request.context when intercepting a responsive image load; r=nsm 2015-03-30 08:42:35 -04:00
Ehsan Akhgari
e1d565c797 Bug 1147699 - Part 3: Add a test for FetchEvent.request.context when intercepting an image load; r=nsm,bzbarsky 2015-03-30 08:42:34 -04:00
Ehsan Akhgari
113a48eb7c 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
Ehsan Akhgari
03a382f926 Bug 1147699 - Part 1: Move Request::mContext to InternalRequest, and determine the mapping to nsContentPolicyType; r=nsm
As the documentation in InternalRequest.h in this patch shows, the
mapping between nsContentPolicyType and RequestContext is not complete
yet.  Because the InternalRequest object needs to know the actual
nsContentPolicyType in order for FetchDriver to be able to use that
information, we can't just store the RequestContext.  Therefore, this
patch adds both of these to InternalRequest.  Once we get to a stage
where we have a complete mapping of these values, we can store only one
of them and compute the other from it.  That requires addressing all of
the TODO comments in the InternalRequest.h documentation.
2015-03-30 08:42:31 -04:00
Eddy Bruël
52887dab0d Bug 1092102 - Implement WorkerDebuggerGlobalScope.setImmediate;r=khuey 2015-03-30 13:54:38 +02:00
Nick Fitzgerald
f3aee023be 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
b212600c95 Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Timur Valeev
71db30f7ff Bug 1146365 - Add support of union type for FetchEvent.respondWith. r=nsm, r=ehsan 2015-03-24 10:37:39 +03:00
Andrew Overholt
94f82a7a06 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
Eddy Bruël
27ad456fde Bug 1092102 - Implement WorkerDebuggerGlobalScope.enterEventLoop;r=khuey 2015-03-27 07:17:16 +01:00
Jose Antonio Olivera Ortega
9143323058 Bug 1139513 - Warn and gather data if ServiceWorker hits max workers per domain limit. r=bent, r=rvitillo 2015-03-25 13:17:00 -04:00
Jose Antonio Olivera Ortega
196e76993d 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
Eddy Bruël
c35b5d7565 Bug 1092102 - Implement WorkerDebuggerGlobalScope.reportError;r=khuey 2015-03-26 20:09:45 +01:00
Ehsan Akhgari
b1e83bfe4b Bug 1147367 - Add a test for checking the Request.context attribute for FetchEvents generated for fetch(); r=nsm 2015-03-25 21:28:22 -04:00
Andrea Marchesini
db1eb647df Bug 803537 - XHR crashes in workers and in debug-builds when blob URLs are used from file scheme documents, r=khuey 2015-03-25 18:09:24 +00:00
Ehsan Akhgari
e2bc3d944b Remove the unneeded variable, no bug, DONTBUILD 2015-03-24 17:35:16 -04:00
Ehsan Akhgari
ea79d1a080 Bug 1142727 - Do not intercept sandboxed iframes with service workers; r=nsm
This is temporary until we clarify what we want to do with these
iframes in the spec.
2015-03-24 16:45:14 -04:00
Nikhil Marathe
3612762bd9 Bug 1136200 - Verify request type is not no-cors if response is opaque. r=jdm 2015-03-17 08:47:03 -07:00
Nikhil Marathe
42fd8be69d 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
Ehsan Akhgari
8e8719dd70 Remove the remnants of the dom.fetch.enabled pref, no bug 2015-03-23 15:46:59 -04:00
Josh Matthews
9eb14e014e Bug 1134330 - Mark fetch events as reloads appropriately. r=smaug 2015-03-23 13:36:44 -04:00
Nikhil Marathe
614f31e10e Bug 1141332 - Disable content decoding and use decoded length on intercepted channels. r=mcmanus 2015-03-17 08:48:32 -07:00
Ehsan Akhgari
33bb32f549 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
Timur Valeev
38fee18c3e Bug 1136757 - Add direct Response overload for FetchEvent.respondWith(). r=jdm,nsm,ehsan
ON CLOSED TREE
Fix bug number
2015-03-20 08:44:20 -07:00
Nikhil Marathe
2e35d3d440 Backed out changeset 62b55b1f9b7e for wrong bug number ON CLOSED TREE 2015-03-20 08:43:59 -07:00
Timur Valeev
22c8e8c3da Bug 1135627 - Add direct Response overload for FetchEvent.respondWith(). r=jdm,nsm,ehsan 2015-03-18 06:17:11 +03:00
Eddy Bruël
fdb3d0ade4 Bug 1092102 - Implement WorkerDebugger.postMessage;r=khuey 2015-03-20 12:15:59 +01:00
Boris Zbarsky
54c64f20a9 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Boris Zbarsky
50b622a067 Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, Codegen.py, and
StructuredClone.cpp.  The rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/WrapObject\((JSContext *\* *(?:aCx|cx)),(\s*)(JS::MutableHandle<JSObject\*> aReflector)/WrapObject(\1,\2JS::Handle<JSObject*> aGivenProto,\2\3/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx)), this, aReflector/\1, this, aGivenProto, aReflector/'
2015-03-19 10:13:32 -04:00
Ehsan Akhgari
356dc96d15 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
Andrew McCreight
fa747a90b0 Bug 1137536, part 2 - Make sure every file that uses an nsCycleCollector_ function includes nsCycleCollector.h. r=smaug
This will let us remove it from headers after we split out DeferredFinalize into its own header.
2015-03-18 11:36:03 -07:00
Catalin Badea
3e5b1da158 Bug 982726 follow-up: Add exempt from worker limit pref to a test. 2015-03-18 16:56:47 +02:00
Catalin Badea
a302822ab8 Bug 982726 - Test the number of clients returned by matchAll. r=nsm 2015-03-18 16:47:17 +02:00
Nikhil Marathe
b7502bf690 Bug 1134462 - Cleanup Promise usage in fetch test SW. r=jdm 2015-03-17 08:48:31 -07:00
Nikhil Marathe
da9cdaf002 Bug 1134462 - allow null body. r=jdm 2015-03-17 08:48:30 -07:00
Nikhil Marathe
8435e04285 Bug 1134462 - Synthesize status and headers from Response returned by ServiceWorker. r=jdm 2015-03-17 08:48:30 -07:00
Daniel Holbert
2c24121797 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
Eddy Bruël
01de11bc7a Bug 1092102 - Implement WorkerDebugger.initialize;r=khuey 2015-03-17 11:15:19 +01:00
Nikhil Marathe
3ffd94ea37 Bug 739173 - Support FormData in workers. r=khuey,baku 2015-01-27 15:16:21 -08:00
Nikhil Marathe
222ef66fec Bug 1131271 - Set ServiceWorker script redirect limit to zero. r=bkelly,ehsan 2015-02-09 13:47:09 -08:00
Nikhil Marathe
d50fe835f6 Bug 1130688 - Implement additional scope checking in service worker registration. r=bkelly,ehsan 2015-03-09 18:57:06 -07:00
Nikhil Marathe
89894439fb Bug 1140791 - Run fetch tests on main thread and workers. r=ehsan 2015-03-11 14:48:58 -07:00
Catalin Badea
02dc461839 Bug 1142015 - Add source for messages dispatched to a Service Worker. r=baku 2015-03-16 22:23:42 +02:00
Catalin Badea
3ab2d93fbd Bug 1143732 - Add exempt from limit for two service worker tests. r=bkelly 2015-03-16 19:57:42 +02:00
Albert Crespell
22b2a2180f Bug 1139425 - Service Worker Client uuid tests. r=baku 2015-03-16 11:20:40 +01:00
Albert Crespell
5cb6d620a6 Bug 1139425 - Service Worker Client id should return a DOMString uuid. r=baku 2015-03-13 07:15:25 +01:00
Boris Zbarsky
f8e0ebdf55 Bug 1097987 part 7. Require callers of JS::Evaluate to either use the global as the scope or pass in an explicit scopechain. r=waldo 2015-03-14 01:36:16 -04:00
Ehsan Akhgari
6541ca0b6f Bug 1133763 - Part 8: Ensure that FetchEvent.respondWith works correctly on HTTPS requests with a cloned response; r=nsm 2015-03-13 14:37:27 -04:00
Ehsan Akhgari
68ae51bd33 Bug 1133763 - Part 7: Add automated tests for using FetchEvent.respondWith on an HTTPS request; r=nsm 2015-03-13 14:37:25 -04:00
Ehsan Akhgari
81a811da5c Bug 1133763 - Part 6: Set the correct security info on intercepted channels when using the respondWith API; r=jdm 2015-03-13 14:37:24 -04:00
Jonathan Griffin
84011a87cc Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Sushrut Girdhari
d3c0163a47 Bug 1137248 - Remove FetchEvent.default and FetchEvent.forwardTo. r=baku 2015-03-02 05:32:00 -05:00
Ehsan Akhgari
890be1ec6d Bug 1141274 - Allocate shared workers and service workers from separate namespaces; r=nsm
This patch makes sure that we never reuse a WorkerPrivate belonging
to a shared worker for a service worker and vice versa.
2015-03-10 22:52:22 -04:00
Nikhil Marathe
caca74ccd6 Bug 1140788 - Set headers to immutable. r=bkelly,ehsan 2015-03-07 18:54:41 -08:00
Andrea Marchesini
ab05554f75 Bug 1141026 - BroadcastChannel should throw if it fails registering the worker feature, r=smaug 2015-03-09 13:51:47 +00:00
Nikhil Marathe
60aeafafea Bug 1133805 - Enable all serviceworker tests on all platforms except b2g. r=baku 2015-03-03 15:57:15 -08:00
Nikhil Marathe
bfaefa32a6 Bug 1053275 - Exempt ServiceWorkers from per domain thread limits. r=sicking 2015-03-03 14:30:58 -08:00
Nikhil Marathe
57039ce2c7 Bug 1133861 - Enable the Fetch API by default. r=jst 2015-02-22 01:52:10 -08:00
Ehsan Akhgari
4a2ec83e86 Bug 1037739 - Disable test_scopes.html temporarily on a CLOSED TREE 2015-03-06 10:09:05 -05:00
Ehsan Akhgari
ce6a8495a1 Bug 1137816 follow-up: Add WindowClient, added by bug 1058311 2015-03-06 09:34:50 -05:00
Ehsan Akhgari
2ff8733a59 Bug 1137816 - Add a test for interfaces exposed to service workers; r=baku 2015-03-06 08:27:24 -05:00
Ehsan Akhgari
4c972a5d64 Bug 1131353 - Make ServiceWorkerGlobalScope.close() throw InvalidAccessError; r=baku 2015-03-06 08:19:33 -05:00
Ehsan Akhgari
ed177eb47f Bug 1140120 - Remove a couple of unused test functions on ServiceWorkerContainer; r=baku 2015-03-06 08:19:32 -05:00
Catalin Badea
17af33f0f1 Bug 1058311 - Update client interface. Implement matchAll WindowClient. r=baku 2015-03-06 15:04:49 +02:00
Jan de Mooij
22989040ae Bug 1139794 - Remove __noSuchMethod__ from the console object. r=baku 2015-03-06 09:50:51 +01:00
Nikhil Marathe
0f61f58788 Bug 1139990 - Remove No activatingWorker warning. r=ehsan 2015-03-05 09:39:58 -08:00
Nikhil Marathe
8c4d11dc98 Bug 1139561 - Various small ServiceWorker test fixes. r=baku
Replace setTimeout for test_unregister with detailed checks for active worker before opening iframe
check for null reg in unregister tests
Removed current dir scope so potential fetch event slowdown does not timeout tests
use navigator.serviceWorker to receive messages
Remove leftover getRegistration() test
2015-03-03 16:00:02 -08:00
Nikhil Marathe
9889aecde9 Bug 1137477 - Replace getServiced() with matchAll() in tests. r=catalinb 2015-02-26 17:20:23 -05:00
Nikhil Marathe
e19dc5c9dd Bug 1137419 - Use correct principal for update. r=baku 2015-02-23 10:34:40 -08:00
Nikhil Marathe
7e6a0d766f 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
aafb36075f Bug 1132141 - Update storage when ServiceWorker registration fails. r=baku 2015-02-11 10:51:32 -08:00
Nikhil Marathe
9190583d2e Bug 1131874 - ServiceWorker persistence activation fixes. r=baku 2015-02-10 18:08:58 -08:00
Eddy Bruël
39c0f79c72 Bug 1092102 - Implement worker debugger runnables;r=khuey 2015-03-04 15:11:32 +01:00
Tim Taubert
4aaba8eeb4 Bug 1001691 - Move WorkerType out of WorkerPrivate.h r=khuey 2015-03-04 14:54:16 +01:00
Tim Taubert
24a910e81e Bug 1001691 - WorkerPrivate::LoadInfo -> WorkerLoadInfo r=khuey 2015-02-12 10:50:05 +01:00
Eddy Bruël
a471b66362 Bug 1092102 - Implement a WorkerDebuggerGlobalScope;r=khuey 2015-03-04 00:51:53 +01:00
Tim Taubert
48f66772cf Backed out changeset 2ea14f386df2 (bug 1001691) 2015-03-03 19:13:23 +01:00
Tim Taubert
f3ccda2d78 Backed out changeset a6e627eff6a6 (bug 1001691) 2015-03-03 19:13:21 +01:00
Tim Taubert
08fbec0d3b Bug 1001691 - Move WorkerType out of WorkerPrivate.h r=khuey 2015-02-12 11:12:59 +01:00
Tim Taubert
312978316e Bug 1001691 - WorkerPrivate::LoadInfo -> WorkerLoadInfo r=khuey 2015-02-12 10:50:05 +01:00
Andrea Marchesini
e40e217a75 Bug 1104623 - Inherit security flags if channel already has a loadinfo attached in NS_NewChannel - tests, r=ckerschb 2014-12-10 11:41:09 -08:00
Andrea Marchesini
bc6d927d7f Bug 1137814 - nsAString and nsACString in URL.cpp/h. r=nsm 2015-02-27 14:10:20 -05:00
Ben Kelly
499ef5cde1 Bug 940273 - Part 6 - Expose Service Worker Cache on workers as self.caches. r=ehsan 2015-03-02 14:23:00 +01:00
Ben Kelly
9cb904f9a5 Bug 940273 - Part 2 - Add a pref to enable Service Worker Cache. r=ehsan 2015-03-02 14:12:00 +01:00
Josh Matthews
71fc1b8529 Bug 1137250 - Fix incorrect initialization of Request object. r=bz 2015-02-26 15:40:00 -05:00
Jan de Mooij
c588ad661c Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE 2015-02-27 16:08:15 +01:00
Nikhil Marathe
ff515eace1 Bug 1137408 - Use inner window to create ServiceWorker for Fetch Event. r=jdm 2015-02-26 15:14:51 -05:00
Catalin Badea
a24152bcbd Bug 1136467 - ServiceWorker: client.postMessage should land in navigator.serviceWorker.onmessage. r=baku 2015-02-25 21:38:37 +02:00
Dirkjan Ochtman
d0f22d9629 Bug 853162 - Remove XMLHttpRequest.sendAsBinary() interface. r=smaug
Should use send(Blob) instead. Thanks to Ms2ger for help fixing test failures.
2015-02-08 17:01:44 +01:00
Boris Zbarsky
ddc26dbd51 Bug 1135427. Add missing early return, because throwing an exception without returning is weird. r=khuey 2015-02-23 10:03:27 -05:00
Ben Kelly
74b3e82fb7 Bug 1118845 P2 Make SharedWorker override parent LoadGroup with custom proxy callbacks. r=khuey 2015-02-21 10:09:17 -05:00
Boris Zbarsky
1d6d12894d Bug 742194 part 2. Use the new uncatchable exception machinery in worker XHR code. r=khuey 2015-02-20 23:58:40 -05:00
Daniel Holbert
a4b9f40ba9 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
89447c4b1c Bug 1058311 - Remove prefix for SWClients. Rename getServiced to matchAll. Add stub query options for matchAll r=baku
--HG--
rename : dom/webidl/ServiceWorkerClient.webidl => dom/webidl/Client.webidl
rename : dom/webidl/ServiceWorkerClients.webidl => dom/webidl/Clients.webidl
rename : dom/workers/test/serviceworkers/test_get_serviced.html => dom/workers/test/serviceworkers/test_match_all.html
2015-02-20 17:16:17 +02:00
Ben Kelly
7330ad1c23 Bug 1073231 Follow-up to fix bad rebase in rev 39c5fd86a4a0. r=me 2015-02-19 20:39:27 -05:00
Ben Kelly
29ec96ecff Bug 1073231 Implement Request and Response Clone() methods. r=nsm r=baku 2015-02-19 20:24:24 -05:00
Josh Matthews
be893961ee 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
Nikhil Marathe
b88102e5a7 Bug 1126815 - Implement Response.finalURL. r=bkelly,baku
--HG--
extra : rebase_source : 5180d5657c60c7aec33e9f750d24cbee9a2890e2
2015-02-17 10:23:34 -08:00
Ryan VanderMeulen
e41adc7788 Backed out changeset 25f90464e93b (bug 1065216) for Android mochitest failures. 2015-02-18 16:00:33 -05:00
Josh Matthews
c1a7e4eed2 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
Masatoshi Kimura
ff0c408bf6 Bug 1129756 - Revert test changes in bug 1041631 since Symbols are reenabled. r=jorendorff 2015-02-05 22:44:10 +09:00
Ryan VanderMeulen
db689de0ba Bug 1130065 - Skip test_workerUpdate.html due to frequent failures. 2015-02-17 16:13:59 -05:00
Andrea Marchesini
88c8c2de81 Bug 1130570 - Fix tests to use iframe to work on b2g. r=nsm
--HG--
extra : rebase_source : 88757a9f40a1b6c7e0dcd71afceee778c8b2e21a
2015-02-12 15:10:11 -08:00
Nikhil Marathe
50c91da5cb Bug 1130570 - Ensure we have a valid runtime service, and clear updating scopes on early return. r=baku
--HG--
extra : rebase_source : 0274f76d6a89eca902a52fe5dbc7e431f9e9737d
2015-02-11 13:24:57 -08:00
Nikhil Marathe
fc8ee86cf3 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

--HG--
extra : rebase_source : cef7f30bfab1e4079846d2aa4080f534ebaf8a3c
2015-02-10 14:33:23 -08:00
Nikhil Marathe
e8c60ffc59 Bug 1041340 - Implement [[HandleDocumentUnload]]. r=baku
--HG--
extra : rebase_source : 05bee71b7e26a52783462b9803fe161077af9a7b
2014-10-24 15:11:26 -07:00
Andrea Marchesini
6086f2096b Bug 1133242 - ServiceWorkerManager must use the correct principal in b2g, r=nsm 2015-02-17 13:36:09 +01:00
Carsten "Tomcat" Book
dd9d12971d 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
cca3c82dfc Backed out changeset 4d8423d5a83b (bug 1130065) 2015-02-17 09:35:27 +01:00
Carsten "Tomcat" Book
5d8fead3d5 Backed out changeset 8e6ce9a41be7 (bug 1130570) 2015-02-17 09:35:25 +01:00
Carsten "Tomcat" Book
033c20c787 Backed out changeset 8ea3cf306727 (bug 1130570) 2015-02-17 09:35:24 +01:00
Andrea Marchesini
2984fb9306 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
2e447e6046 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
Catalin Badea
322895ea43 Bug 982726 - Patch 3.1 Throw InvalidStateError when ServiceWorkerState == Redundant. r=nsm 2015-02-16 23:03:48 +02:00
Andrea Marchesini
caad65775b Bug 1133541 - ServiceWorkerManger::GetRegistrations should use the principal to match the registration objects, r=nsm 2015-02-16 21:59:53 +01:00
Andrea Marchesini
ba6c1a7f46 Bug 1130570 - Tests use iframe instead of window.open. r=nsm
--HG--
extra : rebase_source : 30c2a3921cfa5208257da144ae496967a14d6511
2015-02-12 15:10:11 -08:00
Nikhil Marathe
1a8e002093 Bug 1130570 - Ensure we have a valid runtime service, and clear updating scopes on early return. r=baku
--HG--
extra : rebase_source : e72f9706bf4c6591bffb93ab9aff34d68c9a97b6
2015-02-11 13:24:57 -08:00
Nikhil Marathe
401c3772f8 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

--HG--
extra : rebase_source : c7370b79541d4e8036c07b81ae6da92f8175526b
2015-02-10 14:33:23 -08:00
Nikhil Marathe
df092af66f Bug 1041340 - Implement [[HandleDocumentUnload]]. r=baku
--HG--
extra : rebase_source : c3a06f24725dadc812f5a0c5e3230923869e26c6
2014-10-24 15:11:26 -07:00
Andrea Marchesini
f71cf5e1ec Bug 1132924 - XHR should support empty response in workers, r=bkelly. r=bent 2015-02-14 09:09:06 +01:00
Boris Zbarsky
4c68880cf9 Bug 1132655. Don't allow conversions from DOMString to const XPCOM string references, since it's meant to be an outparam only. r=smaug 2015-02-12 18:39:26 -05:00
Boris Zbarsky
dccefcef01 Bug 1131751. Drop [NoInterfaceObject] from XMLHttpRequestEventTarget. r=smaug 2015-02-12 18:39:25 -05:00
Andrea Marchesini
8398d2b3ca Bug 1132395 - URL.createObjectURL must be able to work with workers without parents, r=smaug 2015-02-12 14:20:08 +01:00
Alexandre Lissy
fa35dafc49 Bug 1129849 - Proper B2G identification for worker navigator tests. r=bent 2015-02-09 03:11:00 -05:00
Andrea Marchesini
3557feb052 Bug 984050 - Persist ServiceWorkerRegistrations. r=bent, r=nsm 2015-02-11 06:53:00 -05:00
Carsten "Tomcat" Book
a0acb2cde4 Backed out changeset b3a1efe7900a (bug 984050) for cpp unitest failures on a CLOSED TREE 2015-02-11 13:29:16 +01:00
Andrea Marchesini
937507217d Bug 984050 - Persist ServiceWorkerRegistrations. r=bent,nsm 2015-02-11 10:10:23 +01:00
Andrea Marchesini
580efcb973 Bug 1131700 - ServiceWorkerManager::CreateServiceWorker should use RuntimeService::GetOrCreateService. r=nsm 2015-02-10 09:58:00 +01:00
Alexandre Lissy
8529e5ac6b Bug 1129173 - Properly detect B2G for workers interface tests. r=bent
Make use of SpecialPowers.isB2G to do the proper detection, and fix
mochitest execution for Mulet to include some B2G-specific prefs.

--HG--
extra : rebase_source : 2683f17794204cdb8b17248c9469f2498085ee81
2015-02-10 06:51:00 +01:00
Catalin Badea
49e3a2ce87 Bug 982726 - Patch 3: Implement client.postMessage. r=baku 2015-02-09 12:43:00 -05:00
Catalin Badea
e6efda0fa9 Bug 982726 - Patch 2: Add postMessage to service worker. r=baku 2015-02-09 12:42:00 -05:00
Dhi Aurrahman
a3a06ef1c4 Bug 1113003: Remove domain level lookup from ServiceWorkerManager. r=nsm
--HG--
extra : rebase_source : 411f85381e0498ebfee96fa63586b44b897e7c28
2015-02-09 11:33:39 +07:00
Phil Ringnalda
8b344901ef Back out 3da63ccbadef (bug 984050) for Windows cppunit bustage
CLOSED TREE
2015-02-06 19:49:42 -08:00
Andrea Marchesini
dff0b85534 Bug 984050 - Persist ServiceWorker registrations, r=bent, r=nsm 2015-02-06 23:31:33 +00:00
Nikhil Marathe
a5c3b75425 Bug 1127882 - Fix Promise include.
--HG--
extra : rebase_source : 43aef21e2d432ef2a8a0a53890aed49b1ffd4a31
2015-02-06 10:08:31 -08:00
Nikhil Marathe
15fdafd322 Bug 1119037 - Add context attribute to Request. r=baku
--HG--
extra : transplant_source : p%1Cr%13%ED%F8%B1%B8D%9B%DC5%C6%EFEQD%CC%A2l
2015-01-27 15:43:09 -08:00
Ryan VanderMeulen
6393082129 Bug 1126470 - Re-disable test_scopes.html due to frequent crashes/timeouts. 2015-02-05 12:17:35 -05:00
Birunthan Mohanathas
5f227f1a63 Bug 1122044 - Remove unreferenced moz.build files. r=mshal 2015-01-21 20:15:59 +02:00
Andrea Marchesini
8cc1b60380 Bug 1127885 - Console API should display blobs when used in workers, r=smaug 2015-02-02 15:40:15 +00:00
Jon Coppeard
30e87f8c75 Bug 1127792 - Add a pref to globally disable compacting GC r=terrence r=mccr8 r=bent 2015-02-02 14:39:34 +00:00
Carsten "Tomcat" Book
ca80063673 Backed out changeset b15dd0241e60 (bug 1127885) for hazard build bustage 2015-02-02 14:37:23 +01:00
Andrea Marchesini
ff9df39912 Bug 1127885 - Console API should display blobs when used in workers, r=smaug 2015-02-02 11:51:52 +00:00