Commit Graph

67 Commits

Author SHA1 Message Date
Ehsan Akhgari
9866f9b2f3 Bug 1125178 - Mark some functions in dom as override; r=baku 2015-01-23 14:27:12 -05:00
Nikhil Marathe
b3142e434f Bug 1119026 - Respect skip serviceworker flag. r=baku,bkelly 2014-12-24 02:08:41 -08:00
Nikhil Marathe
56ee4c22b8 Bug 1112922 - Implement request referrer correctly in Fetch API. r=bkelly 2014-12-23 07:56:19 -08:00
Tejas Srinivasan
5ae8e2697a Bug 1120652 - Remove MainThreadFetchResolver::OnResponseEnd() and provide an empty definition in the parent class FetchDriverObserver. r=nsm 2015-01-14 23:59:00 -05:00
Nikhil Marathe
1e6026c30a Bug 1119021 - CORS support. r=baku,bkelly
Use nsCrossSiteListenerProxy.h helpers to implement CORS support.
Several CORS fixes and lots of CORS tests.

Fixes:
Use empty string stream if response has no stream.
Parse Access-Control-Expose-Headers correctly.
Copy over remaining InternalRequest constructor attributes and set unsafe request flag.
Call FailWithNetworkError() in more cases.
Add non-simple Request headers to unsafeHeaders list for CORS check.
Do not AsyncOpen channel directly when CORS preflight is required.
Fix check for simple request method (was checking the opposite condition).
2015-01-07 15:50:54 -08:00
Nikhil Marathe
78f4e1e161 Bug 1115214 - Fetch API: Always consume body asynchronously. r=baku 2014-12-23 21:47:17 -08:00
Nikhil Marathe
ae3687ddd0 Bug 1039846 - Patch 7: Create channel with a loadgroup. r=baku,bkelly 2015-01-08 08:55:05 -08:00
Nikhil Marathe
cc47db65bc Bug 1039846 - Patch 5: FetchDriver basic HTTP fetch support. r=baku,bkelly
This patch has the following big pieces:
HTTP support in FetchDriver, which requires the principal of the caller to be passed.
Managing worker lifetime when a fetch() call is in progress.
Managing worker lifetime when a Response body is being read.
Using nsIPipe to link network streams to Request/Response body streams.
Using nsIInputStreamPump to convert Request/Response body streams into respective types.

Folded:
Bug 1039846 - Fetch API: Use a pipe to immediately start writing HTTP body data to InternalResponse.
Bug 1039846 - Assert bodystream can be set only once
Bug 1039846 - Add feature when handling fetch responses on workers
Bug 1039846 - Try to retarget http fetch delivery off main thread.
Bug 1039846 - Safely consume body using nsIInputStreamPump on workers and main thread.
Bug 1039846 - Retarget body reading to stream transport service.
2014-12-10 00:51:59 -08:00
Andrea Marchesini
cb2d10da86 Bug 1057994 - DataStore should not dispatch runnables in a worker when it is shutting down, r=bent 2014-12-17 14:49:36 +00:00
Andrea Marchesini
b5a05079a9 Bug 1077393 - Rename ScalarValueString to USVString. r=smaug 2014-11-20 12:58:00 +01:00
Ehsan Akhgari
adaedd07aa Bug 1090242 - Fix some more bad implicit constructors in DOM; r=baku 2014-10-10 17:28:35 -04:00
Nikhil Marathe
acfa9359fa Bug 1039846 - Fix bustage. r=bustage CLOSED TREE 2014-10-20 13:25:56 -07:00
Nikhil Marathe
056d2e760a Bug 1039846 - Patch 4: FetchDriver with about:, blob: and data: fetching. r=baku 2014-10-06 11:01:20 -07:00
Nikhil Marathe
a857566225 Bug 1071290 - Allow Blobs in Fetch BodyInit. r=baku 2014-10-09 10:52:10 -07:00
Nikhil Marathe
aab4e1765f Bug 1039846 - Split Headers into InternalHeaders. r=baku 2014-10-02 10:59:20 -07:00
Nikhil Marathe
de9c3fd921 Bug 1039846 - Response implementation. r=baku 2014-09-26 16:41:15 -07:00
Nikhil Marathe
1a8062a12f Bug 1039846 - Request implementation. r=baku 2014-09-23 22:03:20 -07:00