Ben Kelly
9338a75577
Bug 1217501 P2 Send */* for fetch() default Accept header. r=ehsan
2015-10-26 08:25:16 -07:00
Wes Kocher
3ac77ec6f9
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)
--HG--
extra : commitid : DHpgGALANW2
2015-10-26 11:52:23 -07:00
Ben Kelly
ac1df23ecf
Bug 1217501 P2 Send */* for fetch() default Accept header. r=ehsan
2015-10-26 08:25:16 -07:00
Ben Kelly
07f46d6f8c
Bug 1212904 P3 Make FetchDriver look for the channel Tainting value. r=ehsan
2015-10-22 11:07:32 -07:00
Ben Kelly
6907b44f9a
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
7bf7cbbd1a
Bug 1215746
: Remove RequestMode::Cors_with_forced_preflight. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
29c134000d
Bug 1195167 part 6: Some code simplification since necko handles fetch recursion. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
d3a92a7fa1
Bug 1195167 part 5: Make FetchDriver use AsyncOpen2. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
3f1ac1dbe1
Bug 1195167 part 4: Remove FetchDriver::BasicFetch since it is empty. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
c21e611fda
Bug 1195167 part 3: Remove more scheme-specific handling from FetchDriver. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
531997fc91
Bug 1195167 part 2: Remove redundant aCORSFlag argument and instead use mCORSFlagEverSet. r=bkelly
2015-10-19 18:24:36 -07:00
Jonas Sicking
be2deca017
Bug 1195167 part 1: Let necko handle all protocols. r=bkelly
2015-10-19 18:24:36 -07:00
Ben Kelly
8a3900afa1
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
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
Jonas Sicking
1b8726e80b
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
c276fc4a03
Bug 1206124
P1 Fix "same-origin" CORS credentials in FetchDriver. r=ehsan
2015-10-07 14:33:31 -07:00
Ben Kelly
5522a3ae19
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
6841a351b6
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
57574d5cbd
Bug 1199049 - Part 8: Use Necko-level CORS preflights in fetch; r=jdm
2015-09-12 19:21:05 -04:00
Wes Kocher
bab9b5abf4
Backed out changeset 132aa442af95 (bug 1198544) for browser_ManifestObtainer_obtain.js failures CLOSED TREE
2015-09-11 11:53:52 -07:00
Josh Matthews
7e4893bc7a
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
0d3d9044a6
Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm
2015-09-09 07:53:50 -04:00
Nigel Babu
2ac21d8fc7
Backed out changeset 3555d4b1ab1e (bug 815299) for M4 bustage.
2015-09-09 09:12:31 +05:30
Ehsan Akhgari
4d0639bd0c
Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm
2015-09-08 20:08:31 -04:00
Ben Kelly
eead67fbf9
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
b930db3a55
Bug 1196592: Make retargeting Fetch to another thread actually work. r=nsm
...
--HG--
extra : rebase_source : 24801ef2546f6aa3d74b9193a104bb35e8103699
2015-08-28 13:49:07 -07:00
Nikhil Marathe
a366626964
Bug 1193128 - Fix base64 decoding when fetching data URIs. r=baku
...
--HG--
extra : commitid : JynL4X6HT8W
extra : rebase_source : e8c021affdcca580887fc4aa6b8eb3465e843108
2015-08-13 13:08:43 -07:00
Ryan VanderMeulen
ad4abd6428
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
a266c8fb39
Bug 1193128 - Fix base64 decoding when fetching data URIs. r=baku
...
--HG--
extra : commitid : IGLyluSxhi2
extra : rebase_source : db4e929ea0c34db4f0d18db7ac258bcc66d3c3cc
2015-08-13 13:08:43 -07:00
Ehsan Akhgari
05cf773043
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
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
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
Emanuel Hoogeveen
7d1e52f2ff
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Nikhil Marathe
b52b66ebf5
Bug 1169044 - Patch 3 - Store and set principal with script URI on ServiceWorkers. r=ehsan
...
The ServiceWorkerRegistrationInfo's principal is the principal of the document
that called register(). If we create WorkerPrivate instances based off of
this, they have a valid principal in terms of security and same-origin-ness,
but the URI path is wrong. When fetching the script from the network, the
channel's principal is used to update the worker principal. We need to do the
same when the script is loaded from Cache. This patch adds support to store the
channel principal in the cache.
--HG--
extra : rebase_source : e7d527335aa4f0d4ee52e58915c8b0ef4ad26983
2015-06-04 21:39:34 -07:00
Nikhil Marathe
bd1323708a
Bug 1169044 - Patch 1 - Refactor setting referrer and referrer policy between fetch and XHR. r=khuey
...
--HG--
extra : rebase_source : 8b004536dab18706ae4b8c3f0c574f8769c05638
2015-06-04 14:05:00 -07:00
Fernando Jimenez
9d27d75942
Bug 1174078 - Calling "fetch" inside Service Worker's "onfetch" handler in b2g causes "onfetch" again that leads to an infinite loop. r=nsm
2015-06-17 11:50:07 +02:00
Ehsan Akhgari
b7b9afe158
Bug 1170937 - Set the URL on the Response object created from a fetch() properly if the underlying channel gets redirected; r=baku
2015-06-09 20:07:48 -04:00
Wes Kocher
4d5ff3adfe
Backed out changeset ec31f39d4df8 (bug 1170937) for mochitest-e10s-4 permafail CLOSED TREE
2015-06-09 15:16:42 -07:00
Ehsan Akhgari
65e7f38303
Bug 1170937 - Set the URL on the Response object created from a fetch() properly if the underlying channel gets redirected; r=baku
2015-06-09 17:17:52 -04:00
Fernando Jimenez
1ef20e0010
Bug 1169613 - Use content type of synthesized response for JAR channel requests if available. Part 2: Set Content-Type for JAR Channel requests on Fetch API responses. r=nsm
2015-06-05 12:53:58 +02:00
Ehsan Akhgari
4017e4028f
Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
...
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book
1f0ef48e79
Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE
2015-05-27 14:50:43 +02:00
Ehsan Akhgari
c66a858d3a
Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
...
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 08:25:03 -04:00
Andrea Marchesini
61b9bd0496
Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan
2015-05-19 15:36:37 +01:00
Andrea Marchesini
f4538bb921
Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
...
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-12 13:11:03 +01:00
Wes Kocher
6b003ab737
Backed out changeset 56e4c68dc3da (bug 1163387) for build bustage CLOSED TREE
...
--HG--
rename : dom/base/MultipartBlobImpl.cpp => dom/base/MultipartFileImpl.cpp
rename : dom/base/MultipartBlobImpl.h => dom/base/MultipartFileImpl.h
2015-05-11 13:17:58 -07:00
Andrea Marchesini
49a0ee6938
Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
...
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-11 18:50:54 +01:00
Fernando Jimenez
bcad085e95
Bug 1161288 - Support app:// origins on Fetch API. r=baku,nsm
2015-05-07 20:42:07 +02:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
1540774b0c
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