Commit Graph

1747 Commits

Author SHA1 Message Date
David Rajchenbach-Teller
b08ce98d2a Bug 1083361 - Exposing a PromiseDebugging API to monitor uncaught DOM Promise. r=bz
--HG--
extra : rebase_source : cba2fc37d263d431c3008739a89a4fe47d10b7da
2015-04-10 17:27:57 +02:00
Doug Turner
9c9d8e38df Bug 1038811 - Push Notifications - ServiceWorker changes, push event implementation. r=nsm 2015-04-10 20:19:28 -07:00
Doug Turner
3dc192b085 Bug 1038811 - Push Notifications - Tests. r=nsm 2015-04-10 20:19:28 -07:00
Doug Turner
c3022641a3 Bug 1151664 - Make claim return undefined for now. r=nsm 2015-04-10 20:19:28 -07:00
Andrea Marchesini
81daef00e3 Bug 1133601 - Implement about:serviceworkers, r=ehsan 2015-04-10 09:50:06 +01:00
Andrea Marchesini
590d964eff Bug 1152602 - dom/workers/test/serviceworkers/importscript.sjs should return an error at the second request, r=ehsan 2015-04-10 09:45:51 +01:00
Ben Turner
94a12266fb Bug 1151646 - Fix static analysis bustage. 2015-04-08 18:49:38 -07:00
Ben Turner
8f3a68440b Bug 1151646 - Cleanup, r=khuey. 2015-04-08 15:21:26 -07:00
Ben Turner
f6cb233b56 Bug 1151646 - Spin the event loop one extra time to clean up all CC'd objects before worker shutdown, r=khuey. 2015-04-08 15:20:59 -07:00
Andrea Marchesini
3fe946af75 Bug 1134224 - test_bug1132395.html must wait until the port is actually available before sending messages, r=ehsan 2015-04-08 17:59:08 +01:00
Christoph Kerschbaumer
4653f5de8c Bug 1143848 - Query Document from Parent in case of nested workers (r=bent)
--HG--
extra : rebase_source : bfdc5979488a489e4adf66fccbdce8fd65255db3
2015-04-07 09:19:19 -07:00
Andrea Marchesini
670fb6a86b Bug 1150805 - WorkerPrivate should use nsTObserverArray for the WorkerFeatures, r=bent CLOSED TREE 2015-04-07 18:31:51 +01:00
Catalin Badea
3c89238807 Bug 1130686 - Add test for service worker client.focus. r=nsm 2015-04-07 16:25:08 +03:00
Catalin Badea
1046704caa Bug 1130686 - Implement client.focus. r=baku 2015-04-07 16:25:08 +03:00
Catalin Badea
8d978700de Bug 1130686 - Refactor PromiseHolder in the service worker clients code. r=nsm 2015-04-07 16:25:08 +03:00
Nikhil Marathe
2c8d274d0e Bug 931249 - Patch 16 - Keep ServiceWorker alive during installation steps. r=baku
--HG--
extra : rebase_source : 88d66a3005096765ba9958858fe683874453653a
2015-04-01 16:46:49 -07:00
Nikhil Marathe
68a8b2850e Bug 931249 - Patch 15 - assert later. r=baku
--HG--
extra : rebase_source : a311232492d5e135aa383757eadd4efc117d713f
2015-03-27 13:29:40 -07:00
Nikhil Marathe
7821a17b77 Bug 931249 - Patch 14 - kungfuDeathGrip. r=baku
--HG--
extra : rebase_source : 9ef21438c85cb30aa7b2579e4ac6efdb6980b49d
2015-03-27 10:00:59 -07:00
Nikhil Marathe
a715e011ee Bug 931249 - Patch 13 - Fix finish condition in CacheScriptLoader::Fail. r=baku
--HG--
extra : rebase_source : abd3b49a789b256eeb7aa763f4f8996afa77d5b3
2015-03-26 15:56:02 -07:00
Nikhil Marathe
8983db35fe Bug 931249 - Patch 12 - Call LoadingFinished even if channel is not present. r=khuey
If the failure was due to inability to create a channel (csp, other restrictions) we still want to mark the load as finished

--HG--
extra : rebase_source : e8e6705984ce3895604fdff358df7375e5c4c1c5
2015-03-24 17:11:57 -07:00
Nikhil Marathe
cfaf66dfc3 Bug 931249 - Patch 11 - Remove unused cacheName. r=bkelly
--HG--
extra : rebase_source : 2ea9f85f5c818b19ba8920bd3668d4c573869863
2015-03-19 17:25:28 -07:00
Nikhil Marathe
7f20aa6e79 Bug 931249 - Patch 10 - Bypass HTTP cache when downloading ServiceWorker script to compare against. r=bkelly
We don't have to bypass in ScriptLoader since this bypass will 'refresh' the cache to the new version.
Talked to :mcmanus about bug comment 78 and there isn't an easy way to ask HTTP Cache for 24 hr expiration, so falling back to this.

--HG--
extra : rebase_source : 57b206a0568bef5d32db3e64d5a2db008405304f
2015-03-19 16:41:55 -07:00
Nikhil Marathe
3b27da6f52 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.

--HG--
extra : rebase_source : baeb7d62845aee3ce7d1b1622e883528283500dc
2015-03-19 16:40:52 -07:00
Nikhil Marathe
78132f902f Bug 931249 - Patch 8 - Provide direct getter to the fact that we are loading a worker instead of relying on cache name. r=khuey
--HG--
extra : rebase_source : ad85e2de17f562449f041fcb66a061a319da45f0
2015-03-19 16:39:01 -07:00
Nikhil Marathe
17ef920c79 Bug 931249 - Patch 7 - Call Done() after Succeed() when cache and network match. r=bkelly
--HG--
extra : rebase_source : 4aef8d6428b6fcd05e7d400cbca4ff075cd49a69
2015-03-19 15:03:49 -07:00
Nikhil Marathe
3325709bc0 Bug 931249 - Patch 6 - Fix abort condition in CompareCache::OnStreamComplete. r=bkelly
--HG--
extra : rebase_source : 327efb1af3405911998bf368d44029ad200a5ee7
2015-03-19 14:57:27 -07:00
Nikhil Marathe
ad2ff46bf5 Bug 931249 - patch 5 - set redirection limit back to zero. r=bkelly
--HG--
extra : rebase_source : 0fd55aa052fb44dac663619bec817c1d1550e714
2015-03-18 13:55:33 -07:00
Nikhil Marathe
8c40095e83 Bug 931249 - Patch 4.1 - Fix addref/release declarations on Windows builds. r=baku
--HG--
extra : rebase_source : 44c8ae842027f58f1dd3d3c135e9d74aaba4a0c2
2015-03-24 15:54:25 -07:00
Nikhil Marathe
1084347046 Bug 931249 - patch 4 - comparison. r=nsm
--HG--
extra : rebase_source : 863e9a46d04513ae8770da2dc9c406457fbda849
2015-03-18 09:52:54 -07:00
Nikhil Marathe
dec7349527 Bug 931249 - patch 3 - tests. r=bkelly
--HG--
extra : rebase_source : d5da130a62fd6e9996b226c29b6a788b1af80acf
2015-03-18 09:47:19 -07:00
Nikhil Marathe
f9c8e3cf34 Bug 931249 - patch 2.2 - purge old active worker cache when activating new worker. r=baku
--HG--
extra : rebase_source : 68af9c1c291181abad3d4e70826c5077bab23010
2015-03-18 14:05:00 -07:00
Nikhil Marathe
14dbedd3aa Bug 931249 - patch 2.1 - reuse cache name between updating and installing worker. r=baku
--HG--
extra : rebase_source : 8484cf4e7e91dc5bd446bb7922ff112c137f5761
2015-03-18 14:02:51 -07:00
Nikhil Marathe
42de02a529 Bug 931249 - patch 2 - cachename integration. r=nsm
--HG--
extra : rebase_source : 8a5bd6a3ec53ccd83c08e58f7a74f6ae1f0edea7
2015-03-18 09:46:38 -07:00
Nikhil Marathe
e0c3f020d5 Bug 931249 - Patch 1.1 - Set baseURI when script is obtained from cache. r=khuey
--HG--
extra : rebase_source : f8bd9b047518b3e5e220eddc3eab1f0918b83f6b
2015-03-18 16:14:30 -07:00
Nikhil Marathe
238374c507 Bug 931249 - patch 1 - Scriptloader use cache if needed. r=khuey
--HG--
extra : rebase_source : c81b13a05ec04a68c3acd25807fcf997bd9db81e
2015-03-19 11:41:42 -07:00
Ehsan Akhgari
72ef6b42e1 Bug 1148854 - Part 1: Relax the assertion in ServiceWorkerManager::DispatchFetchEvent; r=nsm,jdm 2015-04-02 17:58:22 -04:00
Eddy Bruël
d877851987 Bug 1092102 - Implement WorkerDebugger.isFrozen;r=khuey 2015-04-01 20:32:20 +02:00
Eddy Bruël
e9a640efd2 Bug 1092102 - Rename Suspend/Resume to Freeze/Thaw;r=khuey 2015-04-01 11:00:19 +02:00
Ryan VanderMeulen
ab26b260cd Merge m-c to inbound. a=merge
CLOSED TREE
2015-03-31 15:01:26 -04:00
Ryan VanderMeulen
bf52a3a76f Merge inbound to m-c. a=merge 2015-03-31 14:08:52 -04:00
Daniel Holbert
4307554cb6 Bug 1092102, followup 2: Add missing 'override' annotation to WorkerDebuggerSandboxPrivate::GetGlobalJSObject() (and 'virtual', for consistency). rs=ehsan 2015-03-31 10:41:20 -07:00
Ryan VanderMeulen
705fde4ac4 Bug 1136780 - Disable test_fetch_event.html for frequent failures on all platforms. a=me 2015-03-31 13:23:37 -04:00
Eddy Bruël
b86b9bb514 Bug 1092102 - Implement WorkerDebuggerGlobalScope.createSandbox;r=khuey 2015-03-31 12:22:40 +02:00
Carsten "Tomcat" Book
5245fa5a7b Backed out changeset 71abbf190d53 (bug 1092102) for static analysis build bustage on a CLOSED TREE
--HG--
extra : rebase_source : fb64615c90507f79d27f3ab096e6e0259cb38c3e
2015-03-31 11:14:46 +02:00
Eddy Bruël
0c47b481d2 Bug 1092102 - Implement WorkerDebuggerGlobalScope.createSandbox;r=khuey 2015-03-31 10:19:04 +02:00
Ehsan Akhgari
44ac8ce186 Bug 1148064 - Enable interception of pings through service workers; r=nsm,smaug
Currently when sending a beacon, HttpBaseChannel::ShouldIntercept tries
to get access to the nsINetworkInterceptController interface through the
channel's notification callbacks, but in this case the notification
callback is the nsPingListener object.

This patch extends nsPingListener to make it aware of
nsINetworkInterceptController, and have it route the request for
nsINetworkInterceptController correctly to the docshell without the need
to mess with the notification callbacks.

This will be tested in bug 1147699.
2015-03-30 22:57:19 -04:00
Ehsan Akhgari
2415d6b65e Bug 1131323 - Enable SharedWorker loads to be intercepted through service workers; r=nsm
SharedWorker's interface requestor needs to know how to forward requests
for nsINetworkInterceptController to the docshell.

This will be tested in bug 1148935.
2015-03-30 22:57:17 -04:00
Daniel Holbert
de30828a72 Bug 1092102 followup: Add missing 'override' annotation on DebuggerImmediateRunnable::IsDebuggerRunnable(). rs=ehsan 2015-03-30 10:18:07 -07:00
Titi_Alone
b60273bf0c Bug 1147913 - Change NS_SOCKETTRANSPORTSERVICE_CONTRACTID to NS_STREAMTRANSPORTSERVICE_CONTRACTID in RespondWithHandler::ResolvedCallback. r=ehsan 2015-03-29 12:52:25 +02:00
Ehsan Akhgari
9bfe5526a2 Bug 1147699 follow-up: Disable the plugin test on Mulet
Landed on a CLOSED TREE in order to fix the test bustage.
2015-03-30 10:41:06 -04:00
Ehsan Akhgari
7f0cac73a3 Bug 1147699 - Part 14: Add a test for FetchEvent.request.context when intercepting loads coming from plugins; r=nsm 2015-03-30 08:42:53 -04:00
Ehsan Akhgari
a9ca6ed085 Bug 1147699 - Part 13: Add a test for FetchEvent.request.context when intercepting ping loads; r=nsm
This test is temporarily disabled until bug 1148064 gets fixed.
2015-03-30 08:42:51 -04:00
Ehsan Akhgari
c1c49bf187 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
3adeadabad 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
bb41d453ac 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
dd3079f0ba 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
3ccccb6763 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
a0ac39a25e 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
e573e0c13e 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
fe261ef1d6 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
f479f50502 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
6fdcabe29e 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
99c8062500 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
47c59f235a 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
8f6d3f73d2 Bug 1092102 - Implement WorkerDebuggerGlobalScope.setImmediate;r=khuey 2015-03-30 13:54:38 +02:00
Nick Fitzgerald
43962cb694 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
e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Timur Valeev
19a398b233 Bug 1146365 - Add support of union type for FetchEvent.respondWith. r=nsm, r=ehsan 2015-03-24 10:37:39 +03:00
Andrew Overholt
51804b48fa 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.

--HG--
extra : rebase_source : 5ab71144821a97f0ec1874d467da68f4fd171705
2015-03-27 06:47:00 -04:00
Eddy Bruël
208b56c029 Bug 1092102 - Implement WorkerDebuggerGlobalScope.enterEventLoop;r=khuey 2015-03-27 07:17:16 +01:00
Jose Antonio Olivera Ortega
60663a3ab3 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
6e115add99 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
7c855a15e6 Bug 1092102 - Implement WorkerDebuggerGlobalScope.reportError;r=khuey 2015-03-26 20:09:45 +01:00
Ehsan Akhgari
6115fab25e 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
9e3334a9eb 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
5bec74a407 Remove the unneeded variable, no bug, DONTBUILD 2015-03-24 17:35:16 -04:00
Ehsan Akhgari
b5a110ac65 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
8f230527ff Bug 1136200 - Verify request type is not no-cors if response is opaque. r=jdm
--HG--
extra : transplant_source : %C2%95%89%0Az%29%9D%F8F%85%E1%83%C1%0D%25%9F%1Ck%3B%28
2015-03-17 08:47:03 -07:00
Nikhil Marathe
7a7e74fe7c Bug 1134324 - Set CORS mode and credentials on Fetch event Request. r=michal
renames fetch to fetchXHR() since fetch() is now a superpower.

--HG--
extra : transplant_source : %DA%00%E38%A6%0Fw%DA%26%D3%A9q%AE%A6%FE%BA%81%AA%EEB
2015-03-17 08:47:02 -07:00
Ehsan Akhgari
cfa0a6430f Remove the remnants of the dom.fetch.enabled pref, no bug 2015-03-23 15:46:59 -04:00
Josh Matthews
41763998ae Bug 1134330 - Mark fetch events as reloads appropriately. r=smaug 2015-03-23 13:36:44 -04:00
Nikhil Marathe
fa2b7dfb6b Bug 1141332 - Disable content decoding and use decoded length on intercepted channels. r=mcmanus
--HG--
extra : transplant_source : %B9%A2%AB.%EA%A4%ABH%86%D0%F0%3F%DE%03%DF%7D%A9p%B2%D5
2015-03-17 08:48:32 -07:00
Ehsan Akhgari
883849ee32 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
19d6b48603 Bug 1136757 - Add direct Response overload for FetchEvent.respondWith(). r=jdm,nsm,ehsan
ON CLOSED TREE
Fix bug number

--HG--
extra : rebase_source : 98ca84186a9840a8827aa8da8a217badffc856c2
extra : histedit_source : ae3613ff672e71d340587c74d511e2beb04030f8
2015-03-20 08:44:20 -07:00
Nikhil Marathe
a6bcf43dcd Backed out changeset 62b55b1f9b7e for wrong bug number ON CLOSED TREE
--HG--
extra : rebase_source : ce58377252069674fd30d3c9ebca91c8d4aca780
extra : histedit_source : 4af47c8f4abf6ba8c234547e47c99a737d3e4771
2015-03-20 08:43:59 -07:00
Timur Valeev
4a14abec30 Bug 1135627 - Add direct Response overload for FetchEvent.respondWith(). r=jdm,nsm,ehsan
--HG--
extra : rebase_source : 1df0b695586ff6273e7e5ded032c2daa3d5e1e31
2015-03-18 06:17:11 +03:00
Eddy Bruël
7989a0b7bf Bug 1092102 - Implement WorkerDebugger.postMessage;r=khuey 2015-03-20 12:15:59 +01:00
Boris Zbarsky
dc24477d79 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
d0ebde3bb7 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
c10f1ac2e6 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
fa1e69dd93 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
7774d591e4 Bug 982726 follow-up: Add exempt from worker limit pref to a test. 2015-03-18 16:56:47 +02:00
Catalin Badea
d15c1bbafb Bug 982726 - Test the number of clients returned by matchAll. r=nsm 2015-03-18 16:47:17 +02:00
Nikhil Marathe
c7893519a9 Bug 1134462 - Cleanup Promise usage in fetch test SW. r=jdm
--HG--
extra : rebase_source : c74bc35e4c675e8ece5b43790e93f727888c5b5d
2015-03-17 08:48:31 -07:00
Nikhil Marathe
b470a6df88 Bug 1134462 - allow null body. r=jdm
--HG--
extra : rebase_source : 35d79b8d3701e993f284dcafe0e78fe08ef316db
2015-03-17 08:48:30 -07:00
Nikhil Marathe
191be106d4 Bug 1134462 - Synthesize status and headers from Response returned by ServiceWorker. r=jdm
--HG--
extra : rebase_source : 6bfb181427869bb99a0812608e75b6311f3dfb97
2015-03-17 08:48:30 -07:00
Daniel Holbert
082fd9cd7f 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
2d0841a4c7 Bug 1092102 - Implement WorkerDebugger.initialize;r=khuey 2015-03-17 11:15:19 +01:00
Nikhil Marathe
508af070e6 Bug 739173 - Support FormData in workers. r=khuey,baku
--HG--
extra : rebase_source : 2ddd847d280e3aede963c51ed525170d86eebd3c
2015-01-27 15:16:21 -08:00
Nikhil Marathe
8808a1f942 Bug 1131271 - Set ServiceWorker script redirect limit to zero. r=bkelly,ehsan
--HG--
extra : rebase_source : 2cfc2a1d383a8352b63a4b34ca97b88decefb7c9
2015-02-09 13:47:09 -08:00
Nikhil Marathe
5ffa8c89b7 Bug 1130688 - Implement additional scope checking in service worker registration. r=bkelly,ehsan
--HG--
extra : amend_source : 19663c098313445da8c3c271cea59dc366207d43
extra : transplant_source : %CFl%F7%92%0B%22%5D%CB%10%DE%B6%3F%19%1AW%DA%D9%0FS%85
2015-03-09 18:57:06 -07:00
Nikhil Marathe
6d65226133 Bug 1140791 - Run fetch tests on main thread and workers. r=ehsan
--HG--
rename : dom/tests/mochitest/fetch/worker_test_fetch_basic.js => dom/tests/mochitest/fetch/test_fetch_basic.js
rename : dom/tests/mochitest/fetch/worker_test_fetch_basic_http.js => dom/tests/mochitest/fetch/test_fetch_basic_http.js
rename : dom/tests/mochitest/fetch/worker_test_fetch_cors.js => dom/tests/mochitest/fetch/test_fetch_cors.js
rename : dom/workers/test/fetch/test_request.html => dom/tests/mochitest/fetch/test_request.html
rename : dom/workers/test/fetch/worker_test_request.js => dom/tests/mochitest/fetch/test_request.js
rename : dom/workers/test/fetch/test_response.html => dom/tests/mochitest/fetch/test_response.html
rename : dom/workers/test/fetch/worker_test_response.js => dom/tests/mochitest/fetch/test_response.js
extra : rebase_source : d889a24b81681948f67604bacd95f05fac96ef57
2015-03-11 14:48:58 -07:00
Catalin Badea
96bdb9cb6a Bug 1142015 - Add source for messages dispatched to a Service Worker. r=baku 2015-03-16 22:23:42 +02:00
Catalin Badea
cbc3e96c50 Bug 1143732 - Add exempt from limit for two service worker tests. r=bkelly 2015-03-16 19:57:42 +02:00
Albert Crespell
6fc5c56408 Bug 1139425 - Service Worker Client uuid tests. r=baku 2015-03-16 11:20:40 +01:00
Albert Crespell
7f663f49db Bug 1139425 - Service Worker Client id should return a DOMString uuid. r=baku 2015-03-13 07:15:25 +01:00
Boris Zbarsky
fe0f33e72f 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
9693cea624 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
9cdf67372b 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
1332a683d5 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
d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Sushrut Girdhari
38bf6f094c Bug 1137248 - Remove FetchEvent.default and FetchEvent.forwardTo. r=baku 2015-03-02 05:32:00 -05:00
Ehsan Akhgari
5d46e8dcd3 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
ca6c2ec7d2 Bug 1140788 - Set headers to immutable. r=bkelly,ehsan
--HG--
extra : rebase_source : 2174a7683df99996566299609496c5ae7740bf36
2015-03-07 18:54:41 -08:00
Andrea Marchesini
117c2d6e8e Bug 1141026 - BroadcastChannel should throw if it fails registering the worker feature, r=smaug 2015-03-09 13:51:47 +00:00
Nikhil Marathe
6704643316 Bug 1133805 - Enable all serviceworker tests on all platforms except b2g. r=baku
--HG--
extra : rebase_source : a479570684910bc93fc82b26916020276d7f38dd
2015-03-03 15:57:15 -08:00
Nikhil Marathe
b4227d7b33 Bug 1053275 - Exempt ServiceWorkers from per domain thread limits. r=sicking
--HG--
extra : rebase_source : 4f48830c13e1ba471147774b7d93f4f2c795543d
2015-03-03 14:30:58 -08:00
Nikhil Marathe
af18a63f82 Bug 1133861 - Enable the Fetch API by default. r=jst
--HG--
extra : rebase_source : 97dc853238ad7ce4cec7277c4732bf3f4ec1b962
2015-02-22 01:52:10 -08:00
Ehsan Akhgari
91fc999b3a Bug 1037739 - Disable test_scopes.html temporarily on a CLOSED TREE 2015-03-06 10:09:05 -05:00
Ehsan Akhgari
1d192fb324 Bug 1137816 follow-up: Add WindowClient, added by bug 1058311 2015-03-06 09:34:50 -05:00
Ehsan Akhgari
be5523861d Bug 1137816 - Add a test for interfaces exposed to service workers; r=baku 2015-03-06 08:27:24 -05:00
Ehsan Akhgari
60095b3b16 Bug 1131353 - Make ServiceWorkerGlobalScope.close() throw InvalidAccessError; r=baku 2015-03-06 08:19:33 -05:00
Ehsan Akhgari
0996dfac83 Bug 1140120 - Remove a couple of unused test functions on ServiceWorkerContainer; r=baku 2015-03-06 08:19:32 -05:00
Catalin Badea
c230b69ed6 Bug 1058311 - Update client interface. Implement matchAll WindowClient. r=baku 2015-03-06 15:04:49 +02:00
Jan de Mooij
0158166339 Bug 1139794 - Remove __noSuchMethod__ from the console object. r=baku 2015-03-06 09:50:51 +01:00
Nikhil Marathe
cc619e4f2b Bug 1139990 - Remove No activatingWorker warning. r=ehsan
--HG--
extra : rebase_source : fd5876750d52dfa86581cc015b897b29f62338a5
2015-03-05 09:39:58 -08:00
Nikhil Marathe
0fe8699ff2 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

--HG--
extra : transplant_source : %F39R%DA2%D5%12%0A%AB%01%9B%BF%BD%5Cy%B3%C3%5C%12%05
2015-03-03 16:00:02 -08:00
Nikhil Marathe
ed3ab4dd99 Bug 1137477 - Replace getServiced() with matchAll() in tests. r=catalinb
--HG--
extra : rebase_source : c53ae787fc0a161fd8c67dc9cecaddc2306532a7
2015-02-26 17:20:23 -05:00
Nikhil Marathe
e1fd2f9171 Bug 1137419 - Use correct principal for update. r=baku
--HG--
extra : rebase_source : 45a7a638507f397af741c973dc37f9a201925a17
2015-02-23 10:34:40 -08:00
Nikhil Marathe
a817a419ab 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.

--HG--
extra : rebase_source : d9de8a66a45f597d1613890691d1facae51eb64e
2015-02-19 08:40:21 -08:00
Nikhil Marathe
654185b808 Bug 1132141 - Update storage when ServiceWorker registration fails. r=baku
--HG--
extra : rebase_source : 157d80aa45cb76e4ba4a8ea3164a97505ca50d52
2015-02-11 10:51:32 -08:00
Nikhil Marathe
5dfd14e923 Bug 1131874 - ServiceWorker persistence activation fixes. r=baku
--HG--
extra : rebase_source : 2c8dd5e97740cf45c4e08684145d882e9551d3cb
2015-02-10 18:08:58 -08:00
Eddy Bruël
1b07dff8ae Bug 1092102 - Implement worker debugger runnables;r=khuey 2015-03-04 15:11:32 +01:00
Tim Taubert
75a685187a Bug 1001691 - Move WorkerType out of WorkerPrivate.h r=khuey 2015-03-04 14:54:16 +01:00
Tim Taubert
2665cbe4f7 Bug 1001691 - WorkerPrivate::LoadInfo -> WorkerLoadInfo r=khuey 2015-02-12 10:50:05 +01:00
Eddy Bruël
a95bcbb9fd Bug 1092102 - Implement a WorkerDebuggerGlobalScope;r=khuey 2015-03-04 00:51:53 +01:00
Tim Taubert
9dccd5c5ae Backed out changeset 2ea14f386df2 (bug 1001691) 2015-03-03 19:13:23 +01:00
Tim Taubert
d100a5d70f Backed out changeset a6e627eff6a6 (bug 1001691) 2015-03-03 19:13:21 +01:00
Tim Taubert
1cce9e4c7c Bug 1001691 - Move WorkerType out of WorkerPrivate.h r=khuey 2015-02-12 11:12:59 +01:00
Tim Taubert
661d8bb7bf Bug 1001691 - WorkerPrivate::LoadInfo -> WorkerLoadInfo r=khuey 2015-02-12 10:50:05 +01:00
Andrea Marchesini
57eb6826e6 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
c252bae4a6 Bug 1137814 - nsAString and nsACString in URL.cpp/h. r=nsm
--HG--
extra : rebase_source : 6451dcffc95a0bdf5867eb34c68eadbf8da732cc
2015-02-27 14:10:20 -05:00
Ben Kelly
8bf704b7d2 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
cd6213057e Bug 940273 - Part 2 - Add a pref to enable Service Worker Cache. r=ehsan 2015-03-02 14:12:00 +01:00
Josh Matthews
65badaa73f Bug 1137250 - Fix incorrect initialization of Request object. r=bz 2015-02-26 15:40:00 -05:00
Jan de Mooij
db18ff3df9 Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE 2015-02-27 16:08:15 +01:00
Nikhil Marathe
a3a6ac6348 Bug 1137408 - Use inner window to create ServiceWorker for Fetch Event. r=jdm
--HG--
extra : rebase_source : b308210c20b30ef8f2d3220a784c88f4e3a06f45
2015-02-26 15:14:51 -05:00
Catalin Badea
553cdbd8f5 Bug 1136467 - ServiceWorker: client.postMessage should land in navigator.serviceWorker.onmessage. r=baku 2015-02-25 21:38:37 +02:00
Dirkjan Ochtman
44c3ce11ad 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
8c1e8cb9b3 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
4d074ba44d Bug 1118845 P2 Make SharedWorker override parent LoadGroup with custom proxy callbacks. r=khuey 2015-02-21 10:09:17 -05:00
Boris Zbarsky
0ef6163776 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
e6a8734aa7 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
9804afb257 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
4fa2ac100d Bug 1073231 Follow-up to fix bad rebase in rev 39c5fd86a4a0. r=me 2015-02-19 20:39:27 -05:00
Ben Kelly
e3f6f3f034 Bug 1073231 Implement Request and Response Clone() methods. r=nsm r=baku 2015-02-19 20:24:24 -05:00
Josh Matthews
86618832b4 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
302ff75d63 Bug 1126815 - Implement Response.finalURL. r=bkelly,baku
--HG--
extra : rebase_source : 5180d5657c60c7aec33e9f750d24cbee9a2890e2
2015-02-17 10:23:34 -08:00
Ryan VanderMeulen
5abea51e9a Backed out changeset 25f90464e93b (bug 1065216) for Android mochitest failures. 2015-02-18 16:00:33 -05:00
Josh Matthews
cb61a019fc 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
02889442ad Bug 1129756 - Revert test changes in bug 1041631 since Symbols are reenabled. r=jorendorff 2015-02-05 22:44:10 +09:00
Ryan VanderMeulen
4df1f6609e Bug 1130065 - Skip test_workerUpdate.html due to frequent failures. 2015-02-17 16:13:59 -05:00
Andrea Marchesini
3a3e06fb32 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
59c94c2ff2 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
58fe387602 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
9199c59594 Bug 1041340 - Implement [[HandleDocumentUnload]]. r=baku
--HG--
extra : rebase_source : 05bee71b7e26a52783462b9803fe161077af9a7b
2014-10-24 15:11:26 -07:00
Andrea Marchesini
7420ed16c7 Bug 1133242 - ServiceWorkerManager must use the correct principal in b2g, r=nsm 2015-02-17 13:36:09 +01:00
Carsten "Tomcat" Book
c17d0e5157 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
1ae698f614 Backed out changeset 4d8423d5a83b (bug 1130065) 2015-02-17 09:35:27 +01:00
Carsten "Tomcat" Book
7e2b11aebf Backed out changeset 8e6ce9a41be7 (bug 1130570) 2015-02-17 09:35:25 +01:00
Carsten "Tomcat" Book
b4ce75fd92 Backed out changeset 8ea3cf306727 (bug 1130570) 2015-02-17 09:35:24 +01:00
Andrea Marchesini
987e186ef4 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
962560da64 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
26ab086d2b Bug 982726 - Patch 3.1 Throw InvalidStateError when ServiceWorkerState == Redundant. r=nsm 2015-02-16 23:03:48 +02:00
Andrea Marchesini
96059ce8a5 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
c5a2a88f83 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
00d3e72974 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
8ece130b23 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
d393dddf01 Bug 1041340 - Implement [[HandleDocumentUnload]]. r=baku
--HG--
extra : rebase_source : c3a06f24725dadc812f5a0c5e3230923869e26c6
2014-10-24 15:11:26 -07:00
Andrea Marchesini
0a194e5205 Bug 1132924 - XHR should support empty response in workers, r=bkelly. r=bent 2015-02-14 09:09:06 +01:00
Boris Zbarsky
436b43b3ce 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
7df856ce78 Bug 1131751. Drop [NoInterfaceObject] from XMLHttpRequestEventTarget. r=smaug 2015-02-12 18:39:25 -05:00
Andrea Marchesini
2ba37fdfb5 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
811d7c1cb9 Bug 1129849 - Proper B2G identification for worker navigator tests. r=bent 2015-02-09 03:11:00 -05:00
Andrea Marchesini
78ecfc7b0d Bug 984050 - Persist ServiceWorkerRegistrations. r=bent, r=nsm 2015-02-11 06:53:00 -05:00
Carsten "Tomcat" Book
43c27b90f0 Backed out changeset b3a1efe7900a (bug 984050) for cpp unitest failures on a CLOSED TREE 2015-02-11 13:29:16 +01:00
Andrea Marchesini
8fb2e275d3 Bug 984050 - Persist ServiceWorkerRegistrations. r=bent,nsm 2015-02-11 10:10:23 +01:00
Andrea Marchesini
196d9fea29 Bug 1131700 - ServiceWorkerManager::CreateServiceWorker should use RuntimeService::GetOrCreateService. r=nsm 2015-02-10 09:58:00 +01:00
Alexandre Lissy
53aebf0b4f 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
a1696f318d Bug 982726 - Patch 3: Implement client.postMessage. r=baku 2015-02-09 12:43:00 -05:00
Catalin Badea
39cd51ecbc Bug 982726 - Patch 2: Add postMessage to service worker. r=baku 2015-02-09 12:42:00 -05:00
Dhi Aurrahman
4482d226c8 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
03a26ce028 Back out 3da63ccbadef (bug 984050) for Windows cppunit bustage
CLOSED TREE
2015-02-06 19:49:42 -08:00
Andrea Marchesini
ee4cdf6a25 Bug 984050 - Persist ServiceWorker registrations, r=bent, r=nsm 2015-02-06 23:31:33 +00:00
Nikhil Marathe
573fa5213c Bug 1127882 - Fix Promise include.
--HG--
extra : rebase_source : 43aef21e2d432ef2a8a0a53890aed49b1ffd4a31
2015-02-06 10:08:31 -08:00
Nikhil Marathe
b53e5f1ae8 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
3a12220f04 Bug 1126470 - Re-disable test_scopes.html due to frequent crashes/timeouts. 2015-02-05 12:17:35 -05:00
Birunthan Mohanathas
2d111ab8df Bug 1122044 - Remove unreferenced moz.build files. r=mshal 2015-01-21 20:15:59 +02:00
Andrea Marchesini
fa29820396 Bug 1127885 - Console API should display blobs when used in workers, r=smaug 2015-02-02 15:40:15 +00:00
Jon Coppeard
6136d65f9b 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
2138a393d3 Backed out changeset b15dd0241e60 (bug 1127885) for hazard build bustage 2015-02-02 14:37:23 +01:00
Andrea Marchesini
6f40b4c8b7 Bug 1127885 - Console API should display blobs when used in workers, r=smaug 2015-02-02 11:51:52 +00:00
Phil Ringnalda
ffc0edff3f Back out 030744f8ef5a (bug 1127885) for hazard bustage 2015-01-31 12:06:40 -08:00
Andrea Marchesini
ac9e92bc87 Bug 1127885 - Console API should display blobs when used in workers, r=smaug 2015-01-31 19:12:00 +01:00
Nikhil Marathe
344fd0a633 Bug 1126483 - Added Response.ok. r=baku,bkelly
--HG--
extra : rebase_source : fdff9417d56b06a0556da9a95e0836148d91be0e
2015-01-27 17:34:34 -08:00
Nikhil Marathe
ab3efc22ff Bug 1081293 - Silently ignore lack of ServiceWorkerManager when shutting down ServiceWorkerContainer. r=baku
--HG--
extra : rebase_source : 65066288a5cec4bb9e97adbaf6bbe9cd32835394
extra : amend_source : b3e2cd0f05150d290050d99926fb0d48659929d4
2015-01-23 11:23:55 -08:00
Nikhil Marathe
3e3b6fb8c0 Bug 1113957 - ServiceWorker unregistration uses job queue. r=baku
--HG--
extra : transplant_source : %B3%AA%CF%C5%05%409%D9%15Ly%FA%FF%E3%FA%5E%9B%3F%9F.
2015-01-22 14:10:38 -08:00
Nikhil Marathe
bdbece8200 Bug 1113631 - Remove registration when installation failure occurs. Fixes spec issue #547. r=baku
--HG--
extra : transplant_source : l%8C%98%C3%19%7C/%5C%076ZS%26%8DR%EDzM%CB%04
extra : histedit_source : 3acd229eebf3367ccf98faaf02d1330942c1cda0
2014-11-05 14:43:51 -08:00
Nikhil Marathe
c93d203e5c Bug 1113627 - Refactor lifecycle event dispatching and handling. r=baku,bz
--HG--
extra : transplant_source : %E9%C4%13%80%CA%EEj%8D%17%A0LE%F3Tm%0F%EB%2B%3D3
extra : histedit_source : e16da08aa5dca392ad6270a3b03c05c74d1a5ad6
2014-12-19 05:01:53 -08:00
Daniel Holbert
425952916e Bug 1043701 followup: add missing #include to provide ServiceWorkerState enum. (no review, minor obviously-correct patch to fix local build bustage) 2015-01-26 10:31:38 -08:00
Masatoshi Kimura
6cc5dabbee Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo 2015-01-26 07:22:11 +09:00
Masatoshi Kimura
be535304d8 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
Nikhil Marathe
39a14f36e2 Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku relanding because it wasn't supposed to be backed out on a CLOSED TREE
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.

--HG--
rename : dom/webidl/InstallPhaseEvent.webidl => dom/webidl/ExtendableEvent.webidl
extra : source : 5ed6d1902cc7bafbf9ffeaf35815c56cdd8f8c0d
extra : amend_source : eab06a362baf7545b9b61e28316666c2ec76acac
2014-11-06 07:57:57 -08:00
Wes Kocher
3ddd04bd7d Backed out changeset 5555ee7490fb (bug 1113631) for asan mochitest-4 bustage on a CLOSED TREE 2015-01-23 19:51:33 -08:00
Wes Kocher
9a6d8ea64e Backed out changeset 5ed6d1902cc7 (bug 1113621) for asan mochitest-4 bustage on a CLOSED TREE
--HG--
rename : dom/webidl/ExtendableEvent.webidl => dom/webidl/InstallPhaseEvent.webidl
2015-01-23 19:49:51 -08:00
Wes Kocher
d002e5fc4b Backed out changeset 3ff80c877212 (bug 1113627) for asan mochitest-4 bustage on a CLOSED TREE 2015-01-23 19:49:39 -08:00
Nikhil Marathe
b32717bf29 Bug 1113957 - Do not assert job queue empty at shutdown. a=bustage CLOSED TREE
--HG--
extra : rebase_source : 42a5b1087974554308413eaf19904aedd83ade37
extra : amend_source : 4f87e2842bf9b40ba50a7696ecb910914204fc04
2015-01-23 12:42:32 -08:00
Nikhil Marathe
f3cc077f51 Bug 1122677 - Disallow request body when method is HEAD/GET.
Spec bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=27846
and :annevk OKed putting the check in the constructor and throwing http://logs.glob.uno/?c=content#c259382

--HG--
extra : rebase_source : 224da5d5f19387ffd95fc42c38a99b0e25427551
2015-01-16 13:08:19 -08:00
Nikhil Marathe
23d15b0403 Bug 1109742 - Fix Body.json() error rejection. r=baku
--HG--
extra : rebase_source : f76f97258fd09ce6391f70487ea8bd6ec76edce5
2014-12-04 14:06:45 -08:00
Nikhil Marathe
8b4174b259 Bug 1113631 - Remove registration when installation failure occurs. Fixes spec issue #547. r=baku
--HG--
extra : rebase_source : aa6421ca130625f7e6c7aba8e866048cc3d5b5a4
2014-11-05 14:43:51 -08:00
Nikhil Marathe
085d20b0ae Bug 1113627 - Refactor lifecycle event dispatching and handling. r=baku
--HG--
extra : rebase_source : 548af9014c8a6bf701736289e82f55f02f408ac0
2014-12-19 05:01:53 -08:00
Nikhil Marathe
bb20c13405 Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.

--HG--
rename : dom/webidl/InstallPhaseEvent.webidl => dom/webidl/ExtendableEvent.webidl
extra : rebase_source : c9d314c6cffd577ab7309eb9e39e7d80f2f294f7
2014-11-06 07:57:57 -08:00
Nikhil Marathe
f59c428a7b Bug 1113619 - Abort on lifecycle event handler errors. r=baku
Folded:
Handle install event listener errors and fail installation
Activate handler runtime errors should lead to activation failure.

--HG--
extra : rebase_source : 5e5409346cb3999d29a1e624edc640653b9c0475
2014-12-19 04:45:07 -08:00
Nikhil Marathe
b28384d250 Bug 1113582 - ServiceWorker parse errors are now properly handled during the Update phase. r=baku,bz
Folded:
Enable network error detection test. Fix scopes for network test and parse...

... test to deal with https://github.com/slightlyoff/ServiceWorker/issues/547

--HG--
extra : rebase_source : bbe594b231f1ea878fba78f6594483d6dbd72424
2014-12-19 02:48:31 -08:00
Nikhil Marathe
fbe18cf922 Bug 1043701 - Fire statechange event on ServiceWorker instances. r=baku
Folded:
Various registration related UpdateState() calls and abort on failure to create a service worker.
Set ServiceWorker instances state based on corresponding ServiceWorkerInfo state.

--HG--
extra : rebase_source : 43e519457c640b07f4358484b435aa1de581a668
2014-12-19 03:25:56 -08:00
Nikhil Marathe
0bb964a725 Bug 1113587 - Fire controllerchange event on controlled documents ServiceWorkerContainer. r=baku
--HG--
extra : rebase_source : cad64bf4ec965906f6268a02e83bcb089cdd2f5e
2014-10-28 13:11:31 -07:00
Nikhil Marathe
1769f1b983 Bug 1089778 - ServiceWorkerManager NS_WARN_IF compiler error. a=bustage 2015-01-23 11:53:23 -08:00
Nikhil Marathe
472c87c67c Bug 1113577 - Fixes in ServiceWorkerGlobalScope.unregister implementation to prevent Promise release on wrong thread.
--HG--
extra : rebase_source : 8bfcc34f9520af2419d078c86525bcd308ab3107
2014-10-27 16:37:03 -07:00
Andrea Marchesini
055aedd30a Bug 1065367 - Implement a mochitest for ServiceWorkerGlobalScope::Unregister(), r=nsm
--HG--
extra : rebase_source : e114cf527d5a17bdf0173ff8e373b31e58c8909d
2014-10-06 16:47:37 +01:00
Nikhil Marathe
076d17e308 Bug 1089778 - ServiceWorkerRegistration is keyed by scope for event dispatch and invalidation. r=baku
--HG--
extra : rebase_source : 012bcfa0aef20bc6b79e030cb7439f03799e9370
2014-10-27 11:52:57 -07:00
Ehsan Akhgari
a61a347792 Bug 1123016 - Clarify the ownership of DOMEventTargetHelper::mParentObject/mOwnerWindow; r=smaug
This patch converts DOMEventTargetHelper::mParentObject into an
nsWeakPtr, and adds fatal assertions to ensure that all future
nsIGlobalObject implementations support weak references.  It also marks
DOMEventTargetHelper::mOwnerWindow as a non-owning reference.
2015-01-23 08:37:37 -05:00
Valentin Gosu
e8d3b17287 Bug 1122948 - .hash shouldn't be encoded/decoded for WorkerLocation. r=mrbkap 2015-01-18 00:10:38 +02:00
Nicholas Nethercote
1728be992a Bug 1122322 (follow-up) - Fix busted paths in worker memory reporter. r=bent.
--HG--
extra : rebase_source : c191acaa96ff7fd3d973eb542a56e7b96efb7466
2015-01-22 21:26:21 -08:00
Nikhil Marathe
d942d61753 Bug 1124743 - Temporarily disable test until race is figured out. a=testfailure 2015-01-22 09:58:43 -08:00
Nikhil Marathe
d374da2039 Bug 1113555 - Update ServiceWorker registration lifecycle. r=baku
Folded:
Allow file: serviceworkers
Registration fixes WIP
Queue updatefound instead of immediately firing
Initial "atomically" steps of registration should also be a part of the job
Fix some compiler errors
Be sure not to null out various workers too early during activation
Integrated ServiceWorkerGlobalScope::Update into the ServiceWorkerRegisterJob.

--HG--
extra : rebase_source : 14dd02d18e1209147acd3fd118807c9bd8d4d300
2014-12-19 02:00:29 -08:00
Nikhil Marathe
3f0206f630 Bug 1113515 - Update ServiceWorker webidl. r=baku
--HG--
extra : rebase_source : a6143c9d741d87b79ccf3686f868b0856a32cd4b
2014-10-17 11:43:14 -07:00
Boris Zbarsky
d68bc247c4 Bug 1121688. Filter out overloads with non-worker-exposed arguments when generating worker bindings. r=peterv 2015-01-20 16:44:14 -05:00
Nikhil Marathe
36aa4fe1b3 Bug 1122194 - Follow method validation rules when constructing Request. r=baku,bkelly
--HG--
extra : amend_source : 78950befd29e5aff54956b3399993ade769a21c5
extra : transplant_source : c%B3%E0%87%E7Zdx%03%A6%AA%0A%1C%5E%A8%EF%95%FF%3D%86
2015-01-15 12:11:12 -08:00
Ben Turner
e49bf1a926 Bug 1120336 - Fix another hang with blobURL+workers+indexedDB+xhr, r=khuey.
--HG--
rename : dom/indexedDB/test/test_blob_worker_xhr_post.html => dom/indexedDB/test/test_blob_worker_xhr_post_multifile.html
rename : dom/indexedDB/test/test_blob_worker_xhr_read.html => dom/indexedDB/test/test_blob_worker_xhr_read_slice.html
2015-01-13 14:15:04 -08:00
Nicholas Nethercote
e8361324c1 Bug 1122322 - Fix crash in worker memory reporter. r=bent.
--HG--
extra : rebase_source : 23b1fde430b9f8c73c70a37f6e184b134c7ac1fc
2015-01-15 20:12:20 -08:00
Nikhil Marathe
bf76a3c4e1 Bug 1112922 - Implement request referrer correctly in Fetch API. r=bkelly
--HG--
extra : rebase_source : 226756fee8b777ed30b07cce0f3c5879d66ccf80
2014-12-23 07:56:19 -08:00
Andrea Marchesini
e2ecdca8a9 Bug 966439 - BroadcastChannel API - patch 3 - API disabled by pref, r=smaug 2015-01-15 16:58:41 +00:00
Nikhil Marathe
83f2d35bc2 Bug 1112073 - Implement Response.redirect. r=baku,bkelly
--HG--
extra : rebase_source : b84a118d61103227e3e021d0efe344f709115fc9
2014-12-26 09:44:09 -08:00
Ben Turner
0946d89002 Bug 1121129 - Guard against multiple threads dispatching to a worker thread at the same time, r=khuey. 2015-01-14 13:50:03 -08:00
Ryan VanderMeulen
3a9ff448dc Backed out 11 changesets (bug 966439, bug 1121472) for causing widespread test failures and because inbound isn't Try and shouldn't be treated as such.
Backed out changeset e6cd15d43b5a (bug 1121472)
Backed out changeset 4f9788639f3f (bug 966439)
Backed out changeset ac9a967e5a10 (bug 966439)
Backed out changeset 14d322737871 (bug 966439)
Backed out changeset 8f941e519580 (bug 966439)
Backed out changeset b82d1010c6b4 (bug 966439)
Backed out changeset 2c29a52a03bd (bug 966439)
Backed out changeset e4b0802a3f06 (bug 966439)
Backed out changeset bdc9a0310034 (bug 966439)
Backed out changeset 6b3ae19628e6 (bug 966439)
Backed out changeset 3d23e775033a (bug 966439)

CLOSED TREE
2015-01-14 11:46:14 -05:00
Andrea Marchesini
1b2f40309e Bug 966439 - BroadcastChannel API - patch 3 - API disabled by pref, r=smaug 2015-01-14 11:50:35 +00:00
Ms2ger
b83d21c58c Bug 914067 - Remove JSVAL_VOID from dom/; r=jst 2015-01-14 08:59:06 +01:00
Nikhil Marathe
2b1d550dca Bug 1119044 - Fetch API WebIDL Fixes. r=bkelly,baku
Add various [SameObject]/[NewObject] annotations.
Adds RequestCache enum.
Ensures that cors-with-forced-preflight is translated to cors in getter.
Reject cors-with-forced-preflight as a valid mode value in Request constructor.

--HG--
extra : rebase_source : 3a70d53965def8fe02deec307367b9fda3458935
2015-01-07 16:24:40 -08:00
Ryan VanderMeulen
ea9aaf976e Backed out changeset 88970726eb6b (bug 1119044) for Werror bustage. 2015-01-13 13:26:52 -05:00
Nikhil Marathe
7fd4527a9a Bug 1119044 - Fetch API WebIDL Fixes. r=bkelly,baku
Add various [SameObject]/[NewObject] annotations.
Adds RequestCache enum.
Ensures that cors-with-forced-preflight is translated to cors in getter.
Reject cors-with-forced-preflight as a valid mode value in Request constructor.

--HG--
extra : rebase_source : 0b621e13dc5cdbf740fb7d380f96f1380cd5a3eb
extra : amend_source : 7ced6d36ed7212271163c6aa1baacc7d5ca39647
2015-01-07 16:24:40 -08:00