Ehsan Akhgari
05efdf788a
Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly
2016-01-19 17:46:10 -05:00
Ben Kelly
00d4fd76e9
Bug 1237455 P5 Set headers on fetch() redirects. r=ehsan
2016-01-19 13:54:15 -08:00
Ben Kelly
2a59957f92
Bug 1237455 P4 Create helper method to set fetch request headers. r=ehsan
2016-01-19 13:54:15 -08:00
dimi
41e8cc7c63
Bug 1205288 - implement and test fetch spec changes for blob scheme with non-GET method. r=bkelly
2016-01-06 17:13:19 +08:00
Jonas Sicking
dc7114ec7f
Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb
2015-12-06 18:33:15 -05:00
Jonas Sicking
2d5d18d181
Bug 1226909 part 4: Make AsyncOpen2 set taining information on channels. Use this information in XHR and fetch(). r=bkelly
2015-12-06 18:33:15 -05:00
Jonas Sicking
736f70081e
Bug 1226909 part 3: Move logic of when to initiate CORS preflight into channels. Allow CORS preflight to happen when doing a same-origin to cross-origin redirect. r=ckerschb
2015-12-06 18:33:14 -05:00
Jonas Sicking
59d2f1fb08
Bug 1226909 part 2: Let CORS preflight logic grab information from nsILoadInfo rather than duplicate it. r=ckerschb
2015-12-06 18:33:14 -05:00
Sebastian Hengst
cdf4286868
Backed out changeset 09d64535bcda (bug 1216687), a7f1a289dd78, 4dbf06183e6c, 26318a5e3006, 9ae2af3cf86d (bug 1226909) for M(1,2,5) oranges. r=backout
2015-12-05 16:34:47 +01:00
Jonas Sicking
ed83817753
Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb
2015-12-05 01:46:21 -08:00
Jonas Sicking
43dffbee2a
Bug 1226909 part 4: Make AsyncOpen2 set taining information on channels. Use this information in XHR and fetch(). r=bkelly
2015-12-05 01:46:20 -08:00
Jonas Sicking
cd1c0c2552
Bug 1226909 part 3: Move logic of when to initiate CORS preflight into channels. Allow CORS preflight to happen when doing a same-origin to cross-origin redirect. r=ckerschb
2015-12-05 01:46:20 -08:00
Jonas Sicking
72e95852c2
Bug 1226909 part 2: Let CORS preflight logic grab information from nsILoadInfo rather than duplicate it. r=ckerschb
2015-12-05 01:46:20 -08:00
Francois Marier
f72b6077d8
Bug 1216793 - check against tracking protection list in fetch(). r=gcp
2015-11-30 16:27:56 -08:00
Jonas Sicking
ebec9b7ac5
Bug 1217456: Add a security flag for controlling redirects. Use this flag in fetch() implementation. r=bkelly,jduell
2015-11-23 18:47:10 -08:00
Jonas Sicking
de2d5b3657
Bug 1224865: Don't set a document in FetchDriver for requests in workers. r=bkelly
2015-11-16 11:43:12 -08:00
Birunthan Mohanathas
ac37dec517
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Ben Kelly
2e1255d3a6
Bug 1217501 P2 Send */* for fetch() default Accept header. r=ehsan
2015-10-26 08:25:16 -07:00
Wes Kocher
0fea81994f
Backed out 3 changesets (bug 1217501) for m(4) leaks CLOSED TREE
...
Backed out changeset f00f079f712b (bug 1217501)
Backed out changeset 86ac4feb0e38 (bug 1217501)
Backed out changeset 0c7e876a69e5 (bug 1217501)
2015-10-26 11:52:23 -07:00
Ben Kelly
03ef6710b3
Bug 1217501 P2 Send */* for fetch() default Accept header. r=ehsan
2015-10-26 08:25:16 -07:00
Ben Kelly
ee399ba406
Bug 1212904 P3 Make FetchDriver look for the channel Tainting value. r=ehsan
2015-10-22 11:07:32 -07:00
Ben Kelly
363f09bda3
Bug 1212904 P0 Do not abuse fetch response tainting to create opaqueredirect responses. r=ehsan
2015-10-22 11:07:32 -07:00
Jonas Sicking
4a42432df4
Bug 1215746: Remove RequestMode::Cors_with_forced_preflight. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
f6de4bb58c
Bug 1195167 part 6: Some code simplification since necko handles fetch recursion. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
edc2e4ab86
Bug 1195167 part 5: Make FetchDriver use AsyncOpen2. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
7814039ede
Bug 1195167 part 4: Remove FetchDriver::BasicFetch since it is empty. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
d258a5741b
Bug 1195167 part 3: Remove more scheme-specific handling from FetchDriver. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
cd52683c1f
Bug 1195167 part 2: Remove redundant aCORSFlag argument and instead use mCORSFlagEverSet. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
d15e048380
Bug 1195167 part 1: Let necko handle all protocols. r=bkelly
2015-10-19 18:24:36 -07:00
Ben Kelly
5e3d34755e
Bug 1212433 Fail fetch() calls that require preflight and also redirect. r=sicking a=abillings
2015-10-19 13:23:29 -07:00
Nathan Froyd
4e6d8f6705
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
2015-10-18 01:24:48 -04:00
Jonas Sicking
3770405522
Bug 1211751: Remove nsIChannelEventSink-forwarding from EventSource and FetchDriver. It's never needed. r=smaug
2015-10-08 13:41:38 -07:00
Ben Kelly
cd6d31f52f
Bug 1206124 P1 Fix "same-origin" CORS credentials in FetchDriver. r=ehsan
2015-10-07 14:33:31 -07:00
Ben Kelly
6208b2156e
Bug 1210941 P6 Use LOAD_BYPASS_SERVICE_WORKER instead of ForceNoIntercept in FetchDriver. r=ehsan
2015-10-06 06:37:07 -07:00
Josh Matthews
c8547fdb22
Bug 1198544 - Prevent FetchDriver from creating multiple responses if OnStopRequest yields a failing status code. r=nsm
2015-09-14 11:05:35 -04:00
Ehsan Akhgari
fc158160b9
Bug 1199049 - Part 8: Use Necko-level CORS preflights in fetch; r=jdm
2015-09-12 19:21:05 -04:00
Wes Kocher
af584d1f41
Backed out changeset 132aa442af95 (bug 1198544) for browser_ManifestObtainer_obtain.js failures CLOSED TREE
2015-09-11 11:53:52 -07:00
Josh Matthews
ab0d8d343d
Bug 1198544 - Prevent FetchDriver from creating multiple responses if OnStopRequest yields a failing status code. r=nsm
2015-09-11 13:23:29 -04:00
Ehsan Akhgari
839fb1d8a6
Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm
2015-09-09 07:53:50 -04:00
Nigel Babu
68b9335890
Backed out changeset 3555d4b1ab1e (bug 815299) for M4 bustage.
2015-09-09 09:12:31 +05:30
Ehsan Akhgari
8b19dc7930
Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm
2015-09-08 20:08:31 -04:00
Ben Kelly
b4b289d0e5
Bug 1184607 P6 Set RequestRedirect and fix various redirect bugs in FetchDriver. r=nsm
...
* * *
Bug 1184607 P6 interdiff 001
2015-08-31 14:26:29 -07:00
Kyle Huey
6a666d18ff
Bug 1196592: Make retargeting Fetch to another thread actually work. r=nsm
2015-08-28 13:49:07 -07:00
Nikhil Marathe
96027ed364
Bug 1193128 - Fix base64 decoding when fetching data URIs. r=baku
2015-08-13 13:08:43 -07:00
Ryan VanderMeulen
3bae12ba59
Backed out 7 changesets (bug 1189678, bug 1193128, bug 1189661, bug 1189644, bug 1189675) for various serviceworker mochitest and wpt failures.
...
Backed out changeset 696463139720 (bug 1189661)
Backed out changeset 7babb5b9d74a (bug 1189644)
Backed out changeset d4fa5cfc4b86 (bug 1189678)
Backed out changeset a7c27770b861 (bug 1189675)
Backed out changeset 471a45b97ce2 (bug 1189644)
Backed out changeset 4d96f2d48077 (bug 1193128)
Backed out changeset a9d5366288ff (bug 1189661)
CLOSED TREE
2015-08-24 18:09:47 -04:00
Nikhil Marathe
d35f0de75e
Bug 1193128 - Fix base64 decoding when fetching data URIs. r=baku
2015-08-13 13:08:43 -07:00
Ehsan Akhgari
4951bb0278
Bug 1196524 - Add assertions to enforce that we don't attempt to perform a CORS preflight for fetches of no-cors requests; r=nsm
2015-08-20 13:40:32 -04:00
Antonio de Luna Lopez
39879ccc63
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
2015-08-13 08:22:19 -07:00
Birunthan Mohanathas
a29151dc87
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
Emanuel Hoogeveen
b30abdc582
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00