Commit Graph

265 Commits

Author SHA1 Message Date
Jonas Sicking
0bb4231605 Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb 2015-12-06 18:33:15 -05:00
Jonas Sicking
f7193fdf30 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
28de02f687 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
0e0c8c52ea 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
774236075d 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
993136c2c9 Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb 2015-12-05 01:46:21 -08:00
Jonas Sicking
7fae3fd853 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
ff12f48c5a 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
918c689657 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
Andrea Marchesini
ae1df2b2a2 Bug 1230509 - BlobImplFile should return false in IsDateUnknown and IsSizeUnknown, r=bz 2015-12-04 21:15:46 +00:00
Wes Kocher
bdc3f1fdf0 Backed out changeset b3cfca056388 (bug 1230509) for build bustage CLOSED TREE
--HG--
extra : commitid : 6ezF1zP3n26
2015-12-04 10:50:17 -08:00
Andrea Marchesini
40373a6e18 Bug 1230509 - BlobImplFile should return false in IsDateUnknown and IsSizeUnknown, r=bz 2015-12-04 18:18:21 +00:00
Francois Marier
c18c6996e6 Bug 1216793 - check against tracking protection list in fetch(). r=gcp 2015-11-30 16:27:56 -08:00
Boris Zbarsky
68dc1d9878 Bug 1224596 part 16. Switch Fetch to using the new WorkerMainThreadRunnable::Dispatch signature. r=bkelly 2015-11-24 00:04:21 -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
Jonas Sicking
66bbe5bc72 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
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
c3bc1cdc40 Bug 1224007 part 5. Get rid of ErrorResult::StealJSException. r=peterv 2015-11-20 16:29:41 -05:00
Boris Zbarsky
fb747879e0 Bug 1224007 part 3. Push down WouldReportJSException into MaybeSetPendingException, since anyone calling the latter will propagate the JS exception as needed. r=peterv 2015-11-20 16:29:41 -05: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
Jonas Sicking
9274bbfbe1 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
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ben Kelly
34de792e6b Bug 1217501 P5 Relax guard checking on Headers with existing headers. r=ehsan 2015-10-27 09:23:34 -07:00
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
Ehsan Akhgari
6e14e2de2a Bug 1181054 - Part 2: Refactor the code to extract an HTTP header from a buffer from FormDataParser; r=bkelly 2015-10-26 12:20:22 -04:00
Ehsan Akhgari
73f866b985 Bug 1181054 - Part 1: Move FormFillIterator and FormDataParser to FetchUtil.cpp; r=bkelly
These two classes were not moved at the same time their consumer
moved from Fetch.cpp to FetchUtil.cpp.
2015-10-26 12:20:21 -04:00
Ben Kelly
ac1df23ecf Bug 1217501 P2 Send */* for fetch() default Accept header. r=ehsan 2015-10-26 08:25:16 -07:00
Ehsan Akhgari
383397be38 Bug 1216697 - Unship Request.cache until the implementation is finished; r=bzbarsky 2015-10-23 15:38:47 -04:00
Ben Kelly
d7e898d8d0 Bug 1212904 P4 Set channel tainting in FetchEvent.respondWith(). r=ehsan 2015-10-22 11:07:32 -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
Ehsan Akhgari
dd138fc5c9 Bug 1216822 - Make sure that using an invalid Content-Type when constructing a Response object doesn't throw; r=bkelly 2015-10-21 16:06:34 -04:00
Ehsan Akhgari
9d5b088d22 Bug 1189673 - Set FetchEvent.request.headers' guard to immutable before dispatching the FetchEvent; r=bkelly 2015-10-20 10:21:11 -04:00
Ehsan Akhgari
c796c19fd9 Bug 1108181 - Make Headers iterable; r=bzbarsky 2015-10-20 07:45:32 -04:00
Nigel Babu
7cb4a2efa8 Backed out changeset 4b38a09cca56 (bug 1189673) for W(4) and W(8) bustages ON A CLOSED TREE 2015-10-20 13:52:22 +05:30
Phil Ringnalda
dc19484949 Back out 069effcd9de6 (bug 1108181) for wpt bustage that shouldn't have happened 2015-10-19 21:21:56 -07:00
Ehsan Akhgari
34f6acee2f Bug 1189673 - Set FetchEvent.request.headers' guard to immutable before dispatching the FetchEvent; r=bkelly 2015-10-19 21:54:38 -04:00
Ehsan Akhgari
d4fe8c6a34 Bug 1108181 - Make Headers iterable; r=bzbarsky 2015-10-19 21:53:56 -04: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