Commit Graph

1706 Commits

Author SHA1 Message Date
Boris Zbarsky
84a1df27d6 Bug 1157898 part 3. Fix the remaining consumers of rv.ErrorCode() in NS_ENSURE_* expressions to not do that. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky
ef887403cb Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Dragana Damjanovic
5fe45aad54 Bug 1156397 - some fix for webpush PushServer. r=dougt r=nsm 2015-04-24 14:55:00 +02:00
Andrea Marchesini
7449b89cb3 Bug 1125205 - Display console API messages from shared or service workers to the web console, r=past 2015-04-26 09:37:59 +01:00
L. David Baron
7976fd0f86 Back out bug 1154494 (changeset 94c2f1d254e7 and changeset d1269f811e05) for causing intermittent orange in various service worker tests. 2015-04-25 15:07:54 -07:00
Ehsan Akhgari
b24cb60102 Bug 1157467 - Work around leaks in test_request_context.html in e10s; r=nsm 2015-04-25 01:12:41 -04:00
Daniel Holbert
1c9e365756 Bug 1154494 followup: Annotate ServiceWorker helper-class 'CompareManager' refcounting functions as 'override'. rs=ehsan 2015-04-24 21:26:51 -07:00
Nikhil Marathe
65f2b4be1a Bug 1154494 - Hit network only once. r=baku,bkelly 2015-04-13 21:05:28 -07:00
Nikhil Marathe
6655dd07c4 Bug 1157692 - Add dom.caches.enabled pref to test. r=bkelly 2015-04-23 08:46:03 -07:00
Wes Kocher
c549a41ac9 Backed out changeset a12f0f05779c (bug 1125205) for dt4 failures CLOSED TREE 2015-04-24 13:06:46 -07:00
Ben Kelly
77773c0bee Bug 1158218 Follow-up to fix mis-indentation. DONTBUILD, whitespace-only r=me 2015-04-24 11:55:06 -07:00
Ben Kelly
fbc0db20fa Bug 1158218 Improve ServiceWorkerManager NS_WARNINGS on failure. r=nsm 2015-04-24 11:42:13 -07:00
Andrea Marchesini
b0b8971886 Bug 1125205 - Display console API messages from Shared or Service Workers to the webconsole, r=past 2015-04-24 19:12:30 +01:00
Ehsan Akhgari
1e5318df37 Back out bug 1154494 for test bustage on a CLOSED TREE 2015-04-23 16:59:24 -04:00
Nikhil Marathe
a76bd62e6b Bug 1154494 - Hit network only once. r=baku,bkelly 2015-04-23 16:00:58 -04:00
Doug Turner
a9c42570f8 Bug 1157108 - onpush EventHandler support. r=ehsan 2015-04-23 20:43:40 +02:00
Daniel Holbert
e45ae32742 Bug 1131327 followup: Add 'override' annotation to WorkerListener refcounting functions. rs=ehsan 2015-04-23 09:20:08 -07:00
Nikhil Marathe
715428eb35 Bug 1131327 - Patch 10 - Remember to remove the feature. r=baku 2015-04-17 16:44:58 -07:00
Nikhil Marathe
db53f7a5e8 Bug 1131327 - Patch 9 - Fix windows compiler macro error. r=baku 2015-04-16 12:53:14 -07:00
Nikhil Marathe
0e0194f41c Bug 1131327 - Patch 8 - Return null on worker attribute access. r=baku 2015-04-14 16:12:59 -07:00
Nikhil Marathe
60d2f6e781 Bug 1131327 - Patch 7 - Fire updatefound on worker registration. r=baku 2015-04-08 15:22:36 -07:00
Nikhil Marathe
e502918a0e Bug 1131327 - Patch 6 - SWM holds ServiceWorkerRegistrationListener for updatefound and invalidation notifications. r=baku
Splits up the listener interface to which SWM can hold rawptrs so that registration objects living on the worker thread can use awkward proxies to listen to these events.
2015-04-08 13:13:32 -07:00
Nikhil Marathe
f5565162bb Bug 1131327 - Patch 5 - Implement ServiceWorkerRegistration.unregister() on worker. r=baku 2015-04-07 14:17:02 -07:00
Nikhil Marathe
a17b1f8132 Bug 1131327 - Patch 4 - Implement ServiceWorkerRegistration.update() on worker. r=baku
ServiceWorkerGlobalScope::Registration() now returns initialized registration.
2015-04-07 11:50:08 -07:00
Nikhil Marathe
565637850b Bug 1131327 - Patch 3 - move event listeners to main thread class. r=baku 2015-04-07 13:09:07 -07:00
Nikhil Marathe
dc1c6a0c24 Bug 1131327 - Patch 2 - Expose to workers. r=baku
This patch exposes ServiceWorkerRegistration (and ServiceWorker to satisfy constraints) to workers.

For now, a null registration is returned in the worker.
2015-04-03 22:46:07 -07:00
Nikhil Marathe
b79d343a14 Bug 1131327 - Patch 1 - Introduce ServiceWorkerRegistration{Base,MainThread,WorkerThread} r=baku 2015-04-03 15:18:55 -07:00
Nikhil Marathe
13399bc3c8 Bug 1131350 - Move update() to ServiceWorkerRegistration. r=baku 2015-03-19 18:09:10 -07:00
Jan de Mooij
bfb27c97d1 Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Ehsan Akhgari
a2123e6825 Bug 1157544 - Fix a typo in the test; r=baku 2015-04-23 08:31:29 -04:00
Andrea Marchesini
7ed448d7f2 Bug 1155546 - Implement WorkerControlRunnable::Cancel(), r=bent 2015-04-22 09:03:52 +02:00
Andrea Marchesini
504f4e8fee Bug 1156632 - Remove unused forward class declarations - patch 2 - dom/media, dom/indexedDB, dom/svg, r=ehsan 2015-04-22 08:29:17 +02:00
Rahul
1267ab5733 Bug 1152473 - Remove InstallEvent. r=nsm,ehsan 2015-04-20 18:47:13 -07:00
Ehsan Akhgari
d892b414b0 Bug 1156432 - Part 2: Use different error messages for the hello-after-extracting.gz test; r=nsm
This helps make it eaiser to tell whether this or the hello.gz
test failed by just looking at the logs.
2015-04-21 00:25:15 -04:00
Ehsan Akhgari
fb4770489b Bug 1156432 - Part 1: Unregister the service worker when we are done with it; r=nsm
This lets us for example use the --run-until-failure mochitest option.
2015-04-21 00:25:08 -04:00
Ehsan Akhgari
554079ffb2 Bug 1155989 - Dump the rejection of the promise returned by ServiceWorkerRegistration.unregister() in our tests; r=nsm 2015-04-21 00:24:44 -04:00
Ehsan Akhgari
e5c186b614 Bug 1155988 - Use the ready promise more often in service worker tests; r=nsm 2015-04-21 00:23:22 -04:00
Ehsan Akhgari
5138d67d59 Bug 1155987 - Unregister the service workers registered in tests; r=nsm
Without this, test_periodic_update.html is going to try to update all
of them which is unnecessary.
2015-04-21 00:21:30 -04:00
Ben Kelly
1d022d6e67 Bug 1151974 P2 Re-enable serviceworkers/test_periodic_update.html. r=ehsan 2015-04-20 11:14:57 -07:00
Denis Volk
4ad62045e8 Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Jim Blandy
a52b425862 Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley 2015-04-08 21:23:48 -04:00
Wes Kocher
9887c40fa3 Bug 1154813 - Typo fix that broke builds CLOSED TREE 2015-04-17 16:06:54 -07:00
Nikhil Marathe
656362d19b Bug 1137287 - Part 0: Test for synthesized redirects. r=jdm 2015-02-26 11:53:51 -05:00
Josh Matthews
042f351f7d Bug 1154813 - Enable test_fetch_event.html on linux. r=nsm 2015-04-17 16:11:10 -04:00
Ehsan Akhgari
eb49af05d5 Bug 1112469 follow-up: Disable the test everywhere for now since it seems that bug 1151974 hits more than just Windows
Landed on a CLOSED TREE
2015-04-17 15:12:11 -04:00
Ehsan Akhgari
c4500895b2 Bug 1112469 - Part 5: Actually test the code path that handles the idle-daily message; r=nsm
This is much better than testing just the
nsIServiceWorkerManager::UpdateAllRegistrations API.
2015-04-17 14:06:18 -04:00
Ehsan Akhgari
4dd6b5c6e5 Bug 1112469 - Part 4: Disable periodic updates of service workers when running tests; r=nsm
This is meant to avoid random issues with Gecko suddenly kicking off the
periodic updates in the middle of our test runs.  This uses a hidden pref
intentionally since nobody should be able to discover this pref by going
to about:config.
2015-04-17 14:06:02 -04:00
Ehsan Akhgari
110c047279 Bug 1112469 - Part 3: Add a unit test for ensuring that the nsIServiceWorkerManager.updateAllRegistrations() API works correctly; r=nsm 2015-04-17 14:05:05 -04:00
Ehsan Akhgari
0e17837a2f Bug 1112469 - Part 2: Update the service workers in the parent and all child processes every day; r=nsm 2015-04-17 14:01:21 -04:00
Ehsan Akhgari
12b9e4e3cd Bug 1112469 - Part 1: Implement an XPCOM service responsible to trigger daily updates of service workers; r=nsm 2015-04-17 13:59:49 -04:00
Ehsan Akhgari
c64d6d2d70 Bug 1148942 - Ensure that the registration of empty service workers succeeds; r=bent 2015-04-16 18:18:20 -04:00
Nathan Froyd
1d766b1f34 Bug 870891 - move DIST_FILES to moz.build; r=mshal 2015-04-15 16:04:49 -04:00
Valentin Gosu
5e5b033f1a Bug 1149913 - Disable bug 1093611. Set pref dom.url.encode_decode_hash to true r=honzab 2015-04-16 05:25:10 +03:00
Boris Zbarsky
3ddd60b52d Bug 1154878 followup. Fix a test that expects to see navigator.taintEnabled in workers so we can reopen the CLOSED TREE. 2015-04-15 17:37:58 -04:00
Boris Zbarsky
bb5dfb44a0 Bug 1154812. Fix location.pathname to return the right thing in workers. r=baku 2015-04-15 16:32:53 -04:00
Andrea Marchesini
9af7bcd327 Bug 1154721 - Add an "Unregister" button to about:serviceworkers, r=ehsan 2015-04-15 18:11:17 +01:00
Ehsan Akhgari
b44d2954af Bug 1154563 - Drop the unused argument of WorkerPrivate::Close(); r=baku 2015-04-15 09:24:22 -04:00
Nikhil Marathe
dc663d0cb7 Bug 1151916 - Set worker principalinfo on cache load. r=bkelly 2015-04-10 14:14:44 -07:00
Ms2ger
82c2faeae3 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
David Rajchenbach-Teller
ab5920fe5d Bug 1083361 - Exposing a PromiseDebugging API to monitor uncaught DOM Promise. r=bz 2015-04-10 17:27:57 +02:00
Doug Turner
9b21eb1441 Bug 1038811 - Push Notifications - ServiceWorker changes, push event implementation. r=nsm 2015-04-10 20:19:28 -07:00
Doug Turner
ed4df91919 Bug 1038811 - Push Notifications - Tests. r=nsm 2015-04-10 20:19:28 -07:00
Doug Turner
60deb153f7 Bug 1151664 - Make claim return undefined for now. r=nsm 2015-04-10 20:19:28 -07:00
Andrea Marchesini
12a663da50 Bug 1133601 - Implement about:serviceworkers, r=ehsan 2015-04-10 09:50:06 +01:00
Andrea Marchesini
f848062290 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
b89cd87eca Bug 1151646 - Fix static analysis bustage. 2015-04-08 18:49:38 -07:00
Ben Turner
a2a3133390 Bug 1151646 - Cleanup, r=khuey. 2015-04-08 15:21:26 -07:00
Ben Turner
5446f46e82 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
f05d2aba51 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
774b799f88 Bug 1143848 - Query Document from Parent in case of nested workers (r=bent) 2015-04-07 09:19:19 -07:00
Andrea Marchesini
720ed7168a Bug 1150805 - WorkerPrivate should use nsTObserverArray for the WorkerFeatures, r=bent CLOSED TREE 2015-04-07 18:31:51 +01:00
Catalin Badea
8dcd7bdf9c Bug 1130686 - Add test for service worker client.focus. r=nsm 2015-04-07 16:25:08 +03:00
Catalin Badea
d20852ff02 Bug 1130686 - Implement client.focus. r=baku 2015-04-07 16:25:08 +03:00
Catalin Badea
508285a0f7 Bug 1130686 - Refactor PromiseHolder in the service worker clients code. r=nsm 2015-04-07 16:25:08 +03:00
Nikhil Marathe
d7cc97f872 Bug 931249 - Patch 16 - Keep ServiceWorker alive during installation steps. r=baku 2015-04-01 16:46:49 -07:00
Nikhil Marathe
4f85aaddf3 Bug 931249 - Patch 15 - assert later. r=baku 2015-03-27 13:29:40 -07:00
Nikhil Marathe
d1f7689273 Bug 931249 - Patch 14 - kungfuDeathGrip. r=baku 2015-03-27 10:00:59 -07:00
Nikhil Marathe
6a4b4fe84e Bug 931249 - Patch 13 - Fix finish condition in CacheScriptLoader::Fail. r=baku 2015-03-26 15:56:02 -07:00
Nikhil Marathe
22fef8f572 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
2015-03-24 17:11:57 -07:00
Nikhil Marathe
cd4d99dc4e Bug 931249 - Patch 11 - Remove unused cacheName. r=bkelly 2015-03-19 17:25:28 -07:00
Nikhil Marathe
3e40984cf7 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.
2015-03-19 16:41:55 -07:00
Nikhil Marathe
0e53f07496 Bug 931249 - Patch 9 - Use ServiceWorker cache name as part of it's unique name. r=khuey
When a SW script is updated (it gets a new cache), if there was already an existing running worker with the same scope and script, that would be reused and the update wouldn't happen.
2015-03-19 16:40:52 -07:00
Nikhil Marathe
723adde330 Bug 931249 - Patch 8 - Provide direct getter to the fact that we are loading a worker instead of relying on cache name. r=khuey 2015-03-19 16:39:01 -07:00
Nikhil Marathe
317b3be3e5 Bug 931249 - Patch 7 - Call Done() after Succeed() when cache and network match. r=bkelly 2015-03-19 15:03:49 -07:00
Nikhil Marathe
6a8958c98d Bug 931249 - Patch 6 - Fix abort condition in CompareCache::OnStreamComplete. r=bkelly 2015-03-19 14:57:27 -07:00
Nikhil Marathe
57360a65ea Bug 931249 - patch 5 - set redirection limit back to zero. r=bkelly 2015-03-18 13:55:33 -07:00
Nikhil Marathe
58e43dddbd Bug 931249 - Patch 4.1 - Fix addref/release declarations on Windows builds. r=baku 2015-03-24 15:54:25 -07:00
Nikhil Marathe
500cb35c0a Bug 931249 - patch 4 - comparison. r=nsm 2015-03-18 09:52:54 -07:00
Nikhil Marathe
e78a135394 Bug 931249 - patch 3 - tests. r=bkelly 2015-03-18 09:47:19 -07:00
Nikhil Marathe
1cc6129f6d Bug 931249 - patch 2.2 - purge old active worker cache when activating new worker. r=baku 2015-03-18 14:05:00 -07:00
Nikhil Marathe
e3b4a90a6e Bug 931249 - patch 2.1 - reuse cache name between updating and installing worker. r=baku 2015-03-18 14:02:51 -07:00
Nikhil Marathe
78f3fb24db Bug 931249 - patch 2 - cachename integration. r=nsm 2015-03-18 09:46:38 -07:00
Nikhil Marathe
2b06988afc Bug 931249 - Patch 1.1 - Set baseURI when script is obtained from cache. r=khuey 2015-03-18 16:14:30 -07:00
Nikhil Marathe
dff9cac1c8 Bug 931249 - patch 1 - Scriptloader use cache if needed. r=khuey 2015-03-19 11:41:42 -07:00
Ehsan Akhgari
eec21e7426 Bug 1148854 - Part 1: Relax the assertion in ServiceWorkerManager::DispatchFetchEvent; r=nsm,jdm 2015-04-02 17:58:22 -04:00
Eddy Bruël
64d3e01c66 Bug 1092102 - Implement WorkerDebugger.isFrozen;r=khuey 2015-04-01 20:32:20 +02:00
Eddy Bruël
8e0dc8b734 Bug 1092102 - Rename Suspend/Resume to Freeze/Thaw;r=khuey 2015-04-01 11:00:19 +02:00
Ryan VanderMeulen
1c1b4aff3f Merge m-c to inbound. a=merge
CLOSED TREE
2015-03-31 15:01:26 -04:00
Ryan VanderMeulen
e765b8e962 Merge inbound to m-c. a=merge 2015-03-31 14:08:52 -04:00
Daniel Holbert
a1b139a472 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
4e2b950fd0 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
d00b267216 Bug 1092102 - Implement WorkerDebuggerGlobalScope.createSandbox;r=khuey 2015-03-31 12:22:40 +02:00
Carsten "Tomcat" Book
1c12053f95 Backed out changeset 71abbf190d53 (bug 1092102) for static analysis build bustage on a CLOSED TREE 2015-03-31 11:14:46 +02:00
Eddy Bruël
2f0b9d1497 Bug 1092102 - Implement WorkerDebuggerGlobalScope.createSandbox;r=khuey 2015-03-31 10:19:04 +02:00
Ehsan Akhgari
31c13b72d8 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
2d40ea6715 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
33006d41ae Bug 1092102 followup: Add missing 'override' annotation on DebuggerImmediateRunnable::IsDebuggerRunnable(). rs=ehsan 2015-03-30 10:18:07 -07:00
Titi_Alone
fb85145435 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
6a0a053602 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
6a9cd1f8a1 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
ea7bfac941 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
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