Commit Graph

1541 Commits

Author SHA1 Message Date
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