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

69 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book a993b36b4a Backed out changeset dc42de66de8c (bug 1243791) landing with wrong bug number
--HG--
extra : rebase_source : b016defba5a12065b401d0d59b3f03e8b1d7cbe1
2016-05-10 12:50:15 +02:00
Tom Tung 15b89607c6 Bug 1243791 - P1 implement response.redirected - Fetch API & Cache API & ServiceWorker changed. r=bkelly, r=baku. 2016-05-03 09:48:40 +08:00
Andrea Marchesini 513590a1ac Bug 1267904 - Add telemetry for WorkerMainThreadRunnable, r=khuey 2016-05-03 09:09:47 +02:00
Marcos Caceres f7ad23868a Bug 1250048 - CSP manifest-src doesn't override default-src. r=ckerschb,bkelly,ehsan
MozReview-Commit-ID: Ceu3sYUcML4
2016-04-07 14:13:09 -07:00
Ehsan Akhgari 24fbc15619 Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-11 14:40:53 -05:00
Ehsan Akhgari 09a89f85f6 Bug 1255636 - Give a better error message when the Request constructor fails because of a cross-origin referrer URL; r=bkelly 2016-03-10 21:11:30 -05:00
Ryan VanderMeulen e98112b9bd Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)

CLOSED TREE
2016-03-10 20:20:05 -05:00
Ehsan Akhgari 8508bae9bf Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-10 17:29:11 -05:00
Wes Kocher 53011a6a05 Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)

MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Ehsan Akhgari 017bf0f2b6 Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-09 16:45:01 -05:00
Ehsan Akhgari 38637e2005 Bug 1251872 - Part 1: Implement Request.referrerPolicy; r=jdm 2016-03-03 16:43:55 -05:00
Ehsan Akhgari 36207d26f5 Bug 1251448 - Add support for RequestInit.referrer; r=jdm 2016-03-02 18:18:27 -05:00
Ehsan Akhgari eeaaec0d28 Bug 1250985 - Part 2: Prevent copy constructing a Request object with navigate mode if a RequestInit member is present; r=bzbarsky 2016-02-25 19:49:06 -05:00
Ehsan Akhgari 40429e1dd8 Bug 1250987 - Make RequestInit.body nullable; r=bzbarsky 2016-02-25 09:12:42 -05:00
Ehsan Akhgari d08dcc913c Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly 2016-01-19 17:46:10 -05:00
Thomas Kuyper 2ae35fec9a Bug 1184550 - Move the check for bodyUsed before the check for a null body so subsequent fetches with the same Request fail. r=bkelly 2016-01-14 08:57:00 -05:00
Boris Zbarsky 58f083c12c Bug 1224596 part 14. Switch URL to using the new WorkerMainThreadRunnable::Dispatch signature. r=baku 2015-11-24 00:04:21 -05:00
Andrea Marchesini 9dc9655c9e Bug 1213815 - dom/webidl/HTMLHyperlinkElementUtils and URL don't need to throw exceptions as we did before, r=bz 2015-11-23 20:05:26 +00:00
Boris Zbarsky df75080cc3 Bug 1226479. Change ErrorResult::ThrowTypeError/ThrowRangeError to take string references, not pointers. r=mccr8 2015-11-20 13:36:46 -05:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ehsan Akhgari 383397be38 Bug 1216697 - Unship Request.cache until the implementation is finished; r=bzbarsky 2015-10-23 15:38:47 -04:00
Jonas Sicking 7bf7cbbd1a Bug 1215746: Remove RequestMode::Cors_with_forced_preflight. r=bkelly 2015-10-19 18:24:36 -07:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrew McCreight 5171450b27 Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-05 09:38:14 -07:00
Wes Kocher f0d829220d Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE 2015-10-02 16:17:05 -07:00
Andrew McCreight 35cd15b8de Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-02 15:09:02 -07:00
Andrew McCreight 7a2c6267d4 Backed out changeset 6fa9cdf4002b for breaking the build. 2015-10-02 10:49:28 -07:00
Andrew McCreight 404740a102 Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-02 10:42:08 -07:00
Jon Droniak be9cbbe318 Bug 1199796 - Refactor Request and XHR request method validation. r=nsm
--HG--
extra : commitid : 264lZKhsGRV
extra : rebase_source : ad9ff02f24f648b87da4d00b03dfdfd9e26d45e7
2015-09-11 11:26:33 -07:00
Ben Kelly a5977168ff Bug 1184607 P2 Update Request and Response DOM objects for new redirect model. r=nsm 2015-08-31 14:26:29 -07:00
Emilio Cobos Álvarez aa45c6c3e7 Bug 1195820 - Request constructor should throw TypeError if URL has credentials or parse fails. r=bkelly 2015-08-24 22:54:52 +02:00
Antonio de Luna Lopez e8bd6361a0 Bug 1134609 -Make Fetch Request constructor less destructive to input on error r=bkelly 2015-08-10 12:06:00 -07:00
Antonio de Luna Lopez f24373495b Bug 1110476 - Stripped url fragment from Request::GetUrl() by calling either nsIURI::SetRef() or workers::URL::SetHash() in Request's url getter utility methods. Stripped url fragment from Response::GetUrl() by adding the method InternalRequest::StripFragmentAndSetUrl() which calls nsIURI::SetRef(). Added a test in dom/tests/mochitest/fetch/test_request.js for Request::GetUrl(). Removed manual url stripping from dom/cache/TypeUtils.cpp. r=bkelly
--HG--
extra : histedit_source : 034dc90148e27780a1f9a512a513ee30f26dce92
2015-08-13 08:22:19 -07:00
Ehsan Akhgari aeacbc159a Bug 1188062 - Unship Request.context; r=baku 2015-07-30 08:14:00 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Nikhil Marathe 6486d5d604 Bug 1154268 - Fetch Request should not allow creating a GET request with a body by copying a PUT request. r=bkelly
--HG--
extra : rebase_source : fba56297a7ceb194d4ef82e055a58afd6d37bfd6
2015-05-13 15:15:23 -07:00
Nikhil Marathe e91bba2a3a Bug 1162411 - Fix Request CORS bug. r=bz
--HG--
extra : rebase_source : 5397f75a16865378949a4f30dd045f8c6a85b16e
2015-05-07 15:39:13 -07:00
Wes Kocher 5c59035182 Backed out changeset 8635863a78c0 (bug 1162411) for mochitest-1 orange CLOSED TREE 2015-05-08 10:10:18 -07:00
Nikhil Marathe 23b76b8dc6 Bug 1162411 - Fix Request CORS bug. r=bz
--HG--
extra : transplant_source : %E6b%5CaV%3C%15%8Co%85%C5%08%07%E7%E5%D7r%80%3C%AB
2015-05-07 15:39:13 -07:00
Boris Zbarsky b99f99143f Bug 1161625. Use nsIURI, not dom::URL, to create URIs on main thread in fetch code. Also, use the entry settings document's base URI, not the callee document's document URI, as the base. r=nsm 2015-05-07 11:08:34 -04:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04: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
Nikhil Marathe c9908ee8be Bug 1109751 - Request and Response constructors should set mime type. r=baku
--HG--
extra : rebase_source : 8efaf2edd3f3c5d1cd7c49615ac735805a4f4e84
2015-02-03 12:59:32 -08:00
Wes Kocher e73d6e8c9e Backed out 2 changesets (bug 1109751) for asan mochitest-3 failures
Backed out changeset 269ce19afa43 (bug 1109751)
Backed out changeset add6d1bd2e52 (bug 1109751)
2015-04-03 12:22:47 -07:00
Nikhil Marathe 403581f769 Bug 1109751 - Request and Response constructors should set mime type. r=baku
--HG--
extra : transplant_source : %F3%C3Z%D1%E4%ABTte%80%0D%F5%A9%9AI%B5J%A8W%24
extra : histedit_source : 33c98443b879f7d29fff3e98b640a22c77f462c6
2015-02-03 12:59:32 -08: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
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
Ehsan Akhgari 3ae4ca6b18 Bug 1126819 - Part 1: Respect the RequestInit.cache member in Request's constructor; r=nsm 2015-03-23 15:46:57 -04:00
Nikhil Marathe ac84e104df Bug 1143857 - Add FormData serialize support to Fetch API. r=ehsan
--HG--
extra : rebase_source : e971be3409e5c8de982e8ffcfcc87dcebb4c3867
2015-03-17 08:32:04 -07:00
Ben Kelly e3f6f3f034 Bug 1073231 Implement Request and Response Clone() methods. r=nsm r=baku 2015-02-19 20:24:24 -05:00