Commit Graph

391 Commits

Author SHA1 Message Date
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
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
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
Ehsan Akhgari
7f68257bc6 Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly 2015-10-01 18:47:04 -04:00
Miko Mynttinen
155f3d3bc5 Bug 1187011 - Don't allow response body with null body status. r=bkelly 2015-09-30 21:50:10 +03:00
Catalin Badea
d327e60f64 Bug 1207850 - Temporary fix for canceling the pump used by FetchBody. r=nsm 2015-09-30 19:11:04 -04:00
Wes Kocher
2f2b59e28b Backed out changeset 026a924b9228 (bug 1207850) for test_fetch_cors failures CLOSED TREE 2015-09-30 11:11:34 -07:00
Catalin Badea
4472620ee6 Bug 1207850 - Temporary fix for canceling the pump used by FetchBody. r=nsm 2015-09-30 10:14:34 -04:00
Christoph Kerschbaumer
f69e2b393b Bug 1048048 - add preload content policy types (r=ehsan)
--HG--
extra : source : 740ab1ecd0794b5a304b93ef528c8aa4c68ca417
2015-09-20 14:55:44 -07:00
Wes Kocher
cd079d2bf9 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
319984decc Bug 1048048 - add preload content policy types (r=ehsan) 2015-09-20 14:55:44 -07:00
Bobby Holley
73f8a27244 Bug 1189668 - Expose GetUnfilteredUrl on InternalResponse. r=ehsan 2015-09-20 00:32:14 -07:00
Kit Cambridge
cc7189cb64 Bug 1149195 - Expose push message data accessors. r=nsm,dragana,smaug
--HG--
extra : commitid : 10hopC95zuL
extra : rebase_source : c3c9cfac62d1acb234bba2f16b443783354c43a4
2015-09-17 05:10:42 -07:00
Phil Ringnalda
92751c5b3e Back out 3 changesets (bug 1204596) for b2g test_fetch_cors.html failures
Backed out changeset 2662a1ad4cad (bug 1204596)
Backed out changeset cfc4c4ecbbf5 (bug 1204596)
Backed out changeset d10c6f32ce46 (bug 1204596)
2015-09-16 20:51:17 -07:00
Ehsan Akhgari
b2a35e80cb Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly 2015-09-16 20:38:19 -04:00
Ehsan Akhgari
59c135c176 Bug 1198078 - Add support for TYPE_INTERNAL_SERVICE_WORKER; r=ckerschb,tanvi 2015-09-16 19:15:30 -04: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
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
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
Andrea Marchesini
cd4473d62f Bug 1203426 - Rename StructuredCloneIPCHelper to StructuredCloneData, r=smaug
--HG--
rename : dom/ipc/StructuredCloneIPCHelper.cpp => dom/ipc/StructuredCloneData.cpp
rename : dom/ipc/StructuredCloneIPCHelper.h => dom/ipc/StructuredCloneData.h
2015-09-10 21:50:58 +01: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
Nikhil Marathe
d96bead5dd Bug 1197421 - Fetch resolver uses PromiseWorkerProxy. r=catalinb
The logic was very similar and PromiseWorkerProxy is well tested.  We defy
convention a bit by calling CleanUp() in another runnable later in time after
resolving the Promise, but it does not violate any invariants.

--HG--
extra : commitid : 6YhT7k9KrJ1
extra : rebase_source : 5ca90f54951853021f03e81531dbbfa4f2552d7e
2015-09-02 15:04:17 -07:00
Ben Kelly
3cc300f189 Bug 1184967 P1 Set RequestMode based on LoadInfo securityMode and client request content policy. r=nsm 2015-09-01 07:58:34 -07:00
Ben Kelly
5c4f9e0a97 Bug 1184607 P7.7 Allow new Response() to be used in xpcshell tests. r=ehsan
--HG--
extra : source : 066e84750afdc77c760c1b6563cf932e1f283b11
extra : histedit_source : 395e75ce1b96ca80448ab53d5d18bf57c94581e2
2015-08-31 14:26:30 -07:00
Ryan VanderMeulen
6e496147ac Backed out changeset 066e84750afd for landing with the wrong bug number.
--HG--
extra : histedit_source : c17fe1a5597236723dddd26d164c0ced6e7c0499
2015-08-31 18:36:48 -04:00
Ben Kelly
15e3127540 Bug 1184067 P7.7 Allow new Response() to be used in xpcshell tests. r=ehsan 2015-08-31 14:26:30 -07: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
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
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -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
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
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
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
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
Nikhil Marathe
b5681e95be Bug 1193911 - Ensure synthetic Responses gets a valid channel info. r=ehsan
Right now, synthetic Responses did not have a valid channel info. When these
were saved in the Cache, and then restored, the restored Response did have
a ChannelInfo, but that ChannelInfo did not have a valid security info.
Passing this to respondWith() then caused the interception to fail.

This patch modifies Response::Constructor() to initialize its ChannelInfo from
the global. ChannelInfo can now initialize itself from a nsIDocument. All
workers now store their ChannelInfo on the WorkerLoadInfo.

--HG--
extra : commitid : L1wltwPICd8
extra : rebase_source : 8dab4c414eb50e02a00dd2cb3ee848b811060e70
2015-08-17 15:08:58 -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
Christoph Kerschbaumer
1c05a94924 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan) 2015-08-06 11:17:24 -07:00
Carsten "Tomcat" Book
7d6f90f702 Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Christoph Kerschbaumer
cb37e46dd2 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource - IGNORE IDL (r=sicking,ehsan) 2015-08-05 12:58:05 -07:00
Ehsan Akhgari
aeacbc159a Bug 1188062 - Unship Request.context; r=baku 2015-07-30 08:14:00 -04:00
Bobby Holley
97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Ehsan Akhgari
3d45149452 Bug 1148030 - Correctly reflect object and embed RequestContext values; r=smaug
Note that these elements cannot be intercepted for now.  See bug
1168676 for the background.
2015-07-18 16:44:28 -04:00
Ehsan Akhgari
020deeb507 Bug 1148044 - Correctly reflect frame and iframe RequestContext values; r=smaug 2015-07-18 13:18:06 -04:00
Ben Kelly
1d8798cbc9 Bug 1173912 Fail opaque responses for client requests. r=ehsan 2015-07-14 13:11:26 -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
Wes Kocher
14b97c87b1 Backed out changeset df6593df027b (bug 1173912) 2015-07-10 15:58:24 -07:00
Ben Kelly
e0d5d6632a Bug 1173912 Fail opaque responses for client requests. r=ehsan 2015-07-10 14:28:32 -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
Ehsan Akhgari
a7e0f3e102 Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-30 18:52:42 -04:00
Ryan VanderMeulen
c4367148d1 Backed out changeset 07bf31cca660 (bug 1148935) for Werror bustage.
CLOSED TREE
2015-06-30 15:53:43 -04:00
Ehsan Akhgari
d560d3dcf3 Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-30 15:30:08 -04:00
Andrea Marchesini
fc9a4cb52f Bug 1177916 - URLSearchParams::GetParentObject should not return nullptr, r=smaug 2015-06-29 17:02:53 +01:00
Cameron McCormack
860a9f7d1a Back out bug 1177916 (changeset d4c34d7fb112) for test_urlSearchParams.html failure. 2015-06-27 12:18:19 +10:00
Andrea Marchesini
d55095b632 Bug 1177916 - URLSearchParams::GetParentObject should not return nullptr, r=smaug 2015-06-26 17:44:34 -07: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
8dccad6eaa Bug 1169044 - Patch 2 - Split URLSearchParams parsing logic into non-CCed URLParams. r=baku
--HG--
extra : rebase_source : f68696ff1b2f2fabbb0ed015509477c65573768d
2015-06-04 13:45:24 -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
Andrea Marchesini
46ed66e379 Bug 1174731 - patch 1 - Make searchParams attribute readonly, r=smaug 2015-06-24 12:15:59 -07:00
Michal Novotny
671167c884 Bug 1173378 - crash in mozilla::net::HttpBaseChannel::OverrideSecurityInfo(nsISupports*), r=ehsan 2015-06-17 13:16:33 +02: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
2a127a2d67 Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug 2015-06-16 21:18:08 -04:00
Wes Kocher
3ae1cac20c Backed out changeset f46a712edf7e (bug 1147668) for assertion failures in test_access_control.html CLOSED TREE 2015-06-16 14:48:15 -07:00
Ehsan Akhgari
103e06656c Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug 2015-06-16 14:49:58 -04:00
Ehsan Akhgari
aeecf7b38d Backed out changeset 7210dfe7ad78 (Bug 1147668) for test failure 2015-06-15 23:20:02 -04:00
Ehsan Akhgari
0096b1db1f Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug 2015-06-15 22:08:06 -04:00
Ehsan Akhgari
cd8eec31d9 Bug 1174868 - Avoid storing RequestContext inside InternalRequest; r=nsm,bkelly,smaug
We are going to infer all RequestContext types from the corresponding
nsContentPolicyType. It no longer makes sense to store both of these on
InternalRequest.  This has the extra benefit that we don't need to worry
about keeping them in sync any more.
2015-06-15 21:36:04 -04:00
Ehsan Akhgari
fe838f3834 Bug 1174849 - Remove "serviceworker" from RequestContext; r=smaug,bkelly 2015-06-15 21:36:01 -04:00
Ben Kelly
a3be126ba9 Bug 1167808 P0 Cache.put() should use internal body of opaque Response. r=nsm 2015-06-12 18:59:01 -07:00
Andrea Marchesini
dcdcd94a06 Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley 2015-06-04 19:51:57 +01:00
Ehsan Akhgari
3f5c9c69fd Bug 1173029 - Remove mFinalURL from InternalResponse; r=baku a=KWierso 2015-06-09 20:08:09 -04: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
Wes Kocher
08b17ee9a2 Backed out changeset e33db57c3fec (bug 1173029) 2015-06-09 15:16:30 -07:00
Ehsan Akhgari
ed54538c7f Bug 1173029 - Remove mFinalURL from InternalResponse; r=baku a=KWierso 2015-06-09 17:17:59 -04: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
Ehsan Akhgari
eb1a39d536 Bug 1164397 - Part 4: Add infromation about whether a channel was redirected to ChannelInfo; r=jdm 2015-06-05 15:57:42 -04:00
Carsten "Tomcat" Book
e7e949f08a Backed out changeset bc305c9b5d05 (bug 1155153) for b2g xpshell test failure on a CLOSED TREE 2015-06-05 13:07:51 +02: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
Andrea Marchesini
42cd5b397c Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley 2015-06-04 19:51:57 +01:00
Marcos Caceres
8fc79cb285 Bug 1089255 - Implement and test manifest-src CSP directive. r=bholley, r=dveditz, r=ckerschb
---
 dom/base/nsContentPolicyUtils.h                    |   1 +
 dom/base/nsDataDocumentContentPolicy.cpp           |   3 +-
 dom/base/nsIContentPolicy.idl                      |   2 +-
 dom/base/nsIContentPolicyBase.idl                  |   7 +-
 dom/base/nsISimpleContentPolicy.idl                |   2 +-
 dom/base/test/csp/browser.ini                      |   4 +
 dom/base/test/csp/browser_test_web_manifest.js     | 265 +++++++++++++++++++++
 .../csp/browser_test_web_manifest_mixed_content.js |  55 +++++
 dom/base/test/csp/file_CSP_web_manifest.html       |   6 +
 dom/base/test/csp/file_CSP_web_manifest.json       |   1 +
 .../test/csp/file_CSP_web_manifest.json^headers^   |   1 +
 dom/base/test/csp/file_CSP_web_manifest_https.html |   4 +
 dom/base/test/csp/file_CSP_web_manifest_https.json |   1 +
 .../csp/file_CSP_web_manifest_mixed_content.html   |   9 +
 .../test/csp/file_CSP_web_manifest_remote.html     |   8 +
 dom/base/test/csp/file_csp_testserver.sjs          |  14 +-
 dom/base/test/csp/mochitest.ini                    |   7 +
 dom/base/test/moz.build                            |   5 +-
 dom/fetch/InternalRequest.cpp                      |   3 +
 dom/fetch/InternalRequest.h                        |   2 +-
 .../security/nsIContentSecurityPolicy.idl          |   3 +-
 dom/ipc/manifestMessages.js                        |  25 +-
 dom/security/nsCSPUtils.cpp                        |   7 +
 dom/security/nsCSPUtils.h                          |  10 +-
 dom/security/nsMixedContentBlocker.cpp             |   1 +
 dom/webidl/CSPDictionaries.webidl                  |   1 +
 extensions/permissions/nsContentBlocker.cpp        |   6 +-
 netwerk/mime/nsMimeTypes.h                         |   1 +
 28 files changed, 439 insertions(+), 15 deletions(-)
 create mode 100644 dom/base/test/csp/browser.ini
 create mode 100644 dom/base/test/csp/browser_test_web_manifest.js
 create mode 100644 dom/base/test/csp/browser_test_web_manifest_mixed_content.js
 create mode 100644 dom/base/test/csp/file_CSP_web_manifest.html
 create mode 100644 dom/base/test/csp/file_CSP_web_manifest.json
 create mode 100644 dom/base/test/csp/file_CSP_web_manifest.json^headers^
 create mode 100644 dom/base/test/csp/file_CSP_web_manifest_https.html
 create mode 100644 dom/base/test/csp/file_CSP_web_manifest_https.json
 create mode 100644 dom/base/test/csp/file_CSP_web_manifest_mixed_content.html
 create mode 100644 dom/base/test/csp/file_CSP_web_manifest_remote.html
2015-06-02 15:42:19 -04: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
Martin Thomson
b87ff904d8 Bug 1155898 - Fetch support for running outside of window/worker. r=nsm
--HG--
extra : transplant_source : %90P%A2O%7F%89%06%BF%AE_Q%0D%95%BEI%CC%85%E1%B2%40
2015-05-20 14:26:31 -07:00
Andrea Marchesini
61b9bd0496 Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Andrea Marchesini
3aa189b5ff Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan
--HG--
rename : dom/base/nsIDOMFile.idl => dom/base/nsIDOMBlob.idl
2015-05-18 14:52:26 +01:00
Neil Rashbrook
cf42e317ab Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan 2015-05-16 09:07:10 +01:00
Wes Kocher
3c714c42eb Backed out changeset 17cfad44e12b (bug 1155963) for breaking b2g builds 2015-05-14 16:35:18 -07:00
Neil Rashbrook
ae441fafa2 Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan 2015-05-15 00:00:33 +01: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
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
Andrea Marchesini
368a198972 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher
983fcabeef Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07: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
Andrea Marchesini
91a8a35606 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen
2390c704f8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE

--HG--
extra : histedit_source : a6c24f88b9c5a0cbcf2d44189fd359ddb20757b4%2C46613cfc309a9f0531e8c2475ac17877f606f231
2015-05-11 11:43:59 -04:00
Andrea Marchesini
48ecacaa74 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01: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
Fernando Jimenez
bcad085e95 Bug 1161288 - Support app:// origins on Fetch API. r=baku,nsm 2015-05-07 20:42:07 +02: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
Mike Hommey
924c9eb636 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Ehsan Akhgari
03b15b61fd Bug 1156847 - Part 1: Add the Response::GetSecurityInfo() helper method; r=nsm 2015-04-29 20:22:26 -04:00
Ben Kelly
a874312867 Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
David Major
ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -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
Boris Zbarsky
5c1c07ceb9 Bug 1157754 part 2. Convert consumers of ErrorResult::ClearMessage() to the new better APIs we have for suppressing exceptions on ErrorResult. r=bkelly 2015-04-26 22:38:17 -04:00
Ben Kelly
af39e9ec5a Bug 1153484 - Fetch should ignore invalid headers, but still process later headers. r=nsm
--HG--
extra : rebase_source : ec8eebe558a2b32d196658e32722b156855285f8
2015-04-23 10:45:00 -04:00
Boris Zbarsky
9cbb1e7539 Bug 1157451. Make nsCORSListenerProxy::Init take an enum, not a boolean, to indicate what to do with data: URIs. And make it required, not defaulted to disallowing. r=smaug 2015-04-22 20:30:10 -04:00
Andrea Marchesini
789ad8312d Bug 1156632 - Remove unused forward class declarations - patch 3 - dom/{events,xbl,xslt,xul} and others, r=ehsan 2015-04-22 08:29:18 +02:00
Ben Kelly
704dc9cd25 Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm 2015-04-16 12:00:15 -07:00
Carsten "Tomcat" Book
27b9a7bc7c Backed out changeset 1bbb1ec38652 (bug 1110485) 2015-04-15 09:54:45 +02:00
Ben Kelly
f2457b58e4 Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm 2015-04-14 17:11:19 -07:00
Wes Kocher
aa0620b663 Backed out changeset 565246a02797 (bug 1110485) 2015-04-14 15:27:45 -07:00
Ben Kelly
51344894db Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm 2015-04-14 12:21:14 -07:00
Wes Kocher
164426c724 Backed out 3 changesets (bug 1110485) for wpt-3 bustage
Backed out changeset e8bd3bf404ff (bug 1110485)
Backed out changeset fa29dbb49a66 (bug 1110485)
Backed out changeset 12deb121d126 (bug 1110485)

--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-13 15:18:19 -07:00
Ben Kelly
f9a0328ec7 Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm 2015-04-13 14:05:57 -07: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
Nikhil Marathe
9b5f6b134f Bug 1109751 - Consume FormData support in Fetch API. r=baku
--HG--
extra : __touch-noise__ : 2181078256
extra : transplant_source : %A4%7F%FF%9CV%9F%2C%F7%C1%A0%BBoc%CC%BB%0E%8E%F5%80%C1
2015-04-03 22:55:15 -07: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
Wes Kocher
7199133545 Backed out changeset 4b4656732ca8 (bug 1109751) 2015-04-03 12:22:22 -07:00
Nikhil Marathe
5fd11f09af Bug 1109751 - Bustage fix. r=bustage 2015-04-03 09:41:10 -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
Nikhil Marathe
dd5c91927a Bug 1109751 - Consume FormData support in Fetch API. r=baku
--HG--
extra : transplant_source : %B0%0F%AB%E9%DBV%D1%86%980%28L%EC%CBI%0A%09%26%FDS
extra : histedit_source : 39fe8278cf135aa63a59ef4024432fab9ce5c7ee
2015-04-02 10:51:13 -07:00
Mike Hommey
c39e359c7d Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09: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
Andrea Marchesini
e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00: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
Nikhil Marathe
5e45307f84 Bug 1146059 - Remove Response.finalURL. r=ehsan
--HG--
extra : rebase_source : 6b22c835c2599d20d625b7b0706c625b06080b23
2015-03-21 17:49:29 -07:00
Ehsan Akhgari
1835ea57f2 Bug 1126819 - Part 2: Persist the Request.cache attribute in DOM Cache; r=bkelly 2015-03-23 15:46:58 -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
Ben Kelly
e4e847d142 Bug 1110814 P0 Fully initialize Response before resolve Fetch promise. r=nsm 2015-03-22 02:52:12 -04:00
Ehsan Akhgari
883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -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_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
dc24477d79 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Nikhil Marathe
f01e92414c Bug 1144249 - fix fetch no-cors mode. r=bkelly
A no-cors mode request should not go through a nsCORSProxyListener, which can only handle same-origin and cors mode.

The test for no-cors was passing allowOrigin, which was converting it into a CORS request, which is why it was passing.

I also realized that it is port 8888 and not 8000, so fixed that in some of the redirect tests.

--HG--
extra : rebase_source : a959877e9fc65ae177dfd480258d164d7b2e6af5
2015-03-17 08:47:04 -07:00
Nikhil Marathe
011987e024 Bug 1143155 - Filtered response stores internal response and allows access to headers. r=bkelly
--HG--
extra : rebase_source : 3fcc1d7de76e679f5055382af1159f004dd5372c
2015-03-17 08:47:01 -07: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
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