Граф коммитов

65 Коммитов

Автор SHA1 Сообщение Дата
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 08a57b8a9e Bug 1133763 - Part 1: Remember the security info associated with HTTP fetches and record it inside InternalResponse; r=nsm 2015-03-13 14:37:14 -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
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
Nikhil Marathe 0d98f28d93 Bug 1133861 - Bustage fix. a=bustage CLOSED TREE
--HG--
extra : amend_source : 1d8fb16c11df16569d02e746cf43e0c6bbf717fe
extra : transplant_source : %5C%16%00%88%FBM%01%7D%C5%C9%0C%C97%0E%07%29%81%3E%07L
2015-03-05 12:16:18 -08:00
Nikhil Marathe bb3a858a03 Bug 1139665 - Check content load policy in FetchDriver. r=baku
--HG--
extra : rebase_source : 134db04670b090ae98d584ba190300773d9148f2
2014-10-14 16:36:58 -07:00
Honza Bambas b013cc108a Bug 1130803 - Use non-blocking input for Fetch synthetization pipe, r=bkelly,ehsan
--HG--
extra : rebase_source : 9e668e214efe646548c290b4348985caf35a0883
2015-03-03 10:16:00 +01:00
Ben Kelly 92807f390b Bug 940273 -Part 1 - Fetch changes from maple twig to support Service Worker Cache. r=nsm,ehsan 2015-03-02 14:08:00 +01: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
Dhi Aurrahman 5b8f79fc23 Bug 1125766 - Throw proper error types for TextEncoder(), TextDecoder() and TextDecoder.decode(). r=bz 2015-02-04 18:46:26 +07:00
Nikhil Marathe 058dd6da1c Bug 1124638 - Allow chrome to set Request context. r=baku
--HG--
extra : rebase_source : d47b0304a5558d613ab0a0993dd47da771da5783
2015-01-27 16:02:12 -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
Mike Hommey a35dbaeebf Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09: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 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 ee8771017b Bug 1122258 - Fetch API: Set anonymous flag on channel if no credentials are to be passed.
--HG--
extra : rebase_source : d61f26886eda2c0495b75b00cdb66a997ad8de59
2015-01-15 14:28:14 -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 1fe9e0929e Bug 1121682 - fetch() should reject with TypeError
--HG--
extra : rebase_source : 9e8d5e193695b856280c769dccc128c4ce4797d3
2015-01-14 13:43:27 -08:00
Ehsan Akhgari 2ba1b3c041 Bug 1125178 - Mark some functions in dom as override; r=baku 2015-01-23 14:27:12 -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
Nikhil Marathe ebb4d89793 Bug 1119026 - Respect skip serviceworker flag. r=baku,bkelly
--HG--
extra : rebase_source : 569b51af36fd8c19b59c5d01b88dadddc84d4153
2014-12-24 02:08:41 -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
Tejas Srinivasan f0e5ba672c 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 fe2215618d Bug 1119021 - Implement fetch() redirects correctly. r=bkelly
--HG--
extra : rebase_source : 763d1052fae35a101a6859548b9cb137066dd1c6
2015-01-07 13:47:18 -08:00
Nikhil Marathe 3dec526aa5 Bug 1119021 - CORS credentials tests. r=bkelly
Allow request to continue when useCredentials is set.

--HG--
extra : rebase_source : c39f6a4ebbf779e91f2bf380e4410fe1cf25daa1
2015-01-05 15:43:54 -08:00
Nikhil Marathe dbe1b78cc2 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).

--HG--
extra : rebase_source : 4b08f6a5959e470394c88249b39464b3b7d20948
2015-01-07 15:50:54 -08:00
Nikhil Marathe f64d3931ba Bug 1112073 - Linux non-unified build bustage fix. a=bustage 2015-01-14 14:01:02 -08: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
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
Nikhil Marathe 44ee86f815 Bug 1115214 - Fetch API: Always consume body asynchronously. r=baku
--HG--
extra : rebase_source : a6957286f500278ab5a55770b453a21244e9befa
extra : amend_source : aaaff1a0af422a046b4b3a116593a911cbcacef9
2014-12-23 21:47:17 -08:00
Nikhil Marathe 992f9b1a98 Bug 1109574 - Check for null body before setting bodyUsed in Request constructor. r=bkelly
--HG--
extra : transplant_source : %07%B8%B0%D1%ED%D4%C6N%09%09%86%04g%BD%ECs%B2%C6%09%18
2014-12-23 02:25:17 -08:00
Nikhil Marathe 824a826c42 Bug 1039846 - Patch 7: Create channel with a loadgroup. r=baku,bkelly
--HG--
extra : rebase_source : 2d2eb74428a28dac2cda779cc48dae1ed1367f26
2015-01-08 08:55:05 -08:00
Nikhil Marathe 53a141db68 Bug 1039846 - Patch 5.1: Set request upload stream and headers. r=baku,bkelly
--HG--
extra : rebase_source : 2ae652d0c1da9b59accfa5990361f7a62187456c
2014-12-09 22:35:22 -08:00
Nikhil Marathe b1aa271f55 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.

--HG--
extra : rebase_source : 809c4e799835ad6fd153b673cad70109d257ab6c
2014-12-10 00:51:59 -08:00
Ehsan Akhgari 4354953b4f Bug 1118486 - Part 1: Use `= delete` instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -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_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Ehsan Akhgari b7431d5633 Bug 1118430 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/fetch; r=baku 2015-01-06 16:35:24 -05:00
Andrea Marchesini 8e36934a09 Bug 1057994 - DataStore should not dispatch runnables in a worker when it is shutting down, r=bent
--HG--
rename : dom/datastore/tests/file_basic_worker.html => dom/datastore/tests/file_worker_close.html
rename : dom/datastore/tests/test_basic_worker.html => dom/datastore/tests/test_worker_close.html
2014-12-17 14:49:36 +00:00
Andrea Marchesini 9d30f59efd Bug 1077393 - Rename ScalarValueString to USVString. r=smaug
--HG--
rename : dom/bindings/parser/tests/test_scalarvaluestring.py => dom/bindings/parser/tests/test_usvstring.py
rename : dom/bindings/test/test_scalarvaluestring.html => dom/bindings/test/test_usvstring.html
2014-11-20 12:58:00 +01:00
Ehsan Akhgari f453170f6b Bug 1090242 - Fix some more bad implicit constructors in DOM; r=baku
--HG--
extra : rebase_source : 22f80376a2ce9415dc9d7fdd2444405d3cd7e011
2014-10-10 17:28:35 -04:00
Nikhil Marathe a4c280a3c0 Bug 1082924 - Add CSP type for fetch API. r=tvyas,baku
--HG--
extra : transplant_source : i%D8%5C%7C%9D%FEQL%C1G%B8%3B2%06%AA%AE%3A%09%29%7E
2014-10-13 15:09:58 -07:00
Nikhil Marathe f559eb4a4b Bug 1039846 - Fix morebustage. r=bustage CLOSED TREE 2014-10-20 13:59:01 -07:00
Nikhil Marathe 0927af9189 Bug 1039846 - Fix bustage. r=bustage CLOSED TREE
--HG--
extra : amend_source : b68f2c23ae47c334e4caedf5f74b4a82bbc90df2
2014-10-20 13:25:56 -07:00
Nikhil Marathe 36db9eff13 Bug 1039846 - Patch 4: FetchDriver with about:, blob: and data: fetching. r=baku
--HG--
extra : transplant_source : o%29%0E%5D%90%11%FA%1ExO%26%7E%9D_%F2%E7%0B%FE%21%B2
2014-10-06 11:01:20 -07:00
Peter Van der Beken d76c717d3c Bug 1068740 - Consider putting union types in the binding files where they're used. r=bz.
--HG--
extra : rebase_source : 7e0b1e2f60757b7758704dab3672ee829f3e4085
2014-10-01 20:43:26 +02:00