Edouard Oger
ee0f18811d
Bug 1416842 - Allow fetch to reject with nsresult in chrome code. r=bkelly
...
MozReview-Commit-ID: FD2NUJZtAhT
--HG--
extra : rebase_source : cff033ea3d7e9581112392e7725290819fbec18b
2017-11-15 14:53:42 -05:00
Ben Kelly
9d8fb37a12
Bug 1380255 P2 Don't fire FetchDriverObserver::OnDataAvailable() for every FetchDriver ODA callback. r=baku
2017-10-12 19:23:16 -07:00
Catalin Badea
6a9fd06ae6
Bug 1380255 - FetchDriver should have threadsafe refcounting. r=baku
2017-09-26 11:53:00 +01:00
Ben Kelly
47571637f3
Bug 1391693 P4 Don't count internal redirects towards Response.redirected r=tt
2017-10-09 10:03:40 -07:00
Andrea Marchesini
157334f4b0
Bug 1397627 - Fetch API and other components should pass the length of the stream to necko when known, r=smaug
2017-09-08 16:06:26 +02:00
Tom Tung
a1e22fa9e7
Bug 1290481 - P5: Implement a function to generate padding size. r=bkelly
...
MozReview-Commit-ID: 6poDeyErBjc
--HG--
extra : rebase_source : 982139c536c17a6699d700df7c8b3071939bb3c0
2017-07-10 17:03:24 +08:00
Sebastian Hengst
e2f54c0cd7
merge mozilla-central to autoland. r=merge a=merge
2017-09-01 10:43:32 +02:00
Honza Bambas
8d492fe637
Bug 1395525 - Make all changes landed as part of tracker request tailing preferrable. r=dragana
2017-08-31 06:07:00 -04:00
Tom Tung
f3b0f175ac
Bug 1393439 - P2: Correct the variable naming. r=bkelly
...
MozReview-Commit-ID: 1DblOV82nEd
--HG--
extra : rebase_source : e03fc7b091d7aa4a6076660416f2c9514ad8894b
2017-08-29 16:00:35 +08:00
Tom Tung
85b52e428b
Bug 1393439 - P1: Don't return TypeError for no-cors mode and don't check SRI for the hidden opaque body. r=bkelly
...
MozReview-Commit-ID: 1IspF2IlqqP
--HG--
extra : rebase_source : acee9a04c1be416fa8c779308062d3aebdba8b6a
2017-08-25 16:36:59 +08:00
Honza Bambas
4263c50db2
Bug 1358060 - Allow postponing of unimportant resources opening during page load, class-of-service Tail flag. r=dragana
...
--HG--
extra : rebase_source : 1ab691fe066e641c948aa5f42827305411579708
2017-08-30 09:32:00 -04:00
Andrea Marchesini
3e5de60a22
Bug 1378342 - AbortSignal/AbortController - part 9 - Request.signal should not be a reference of RequestInit.signal, r=bkelly
2017-08-29 11:31:07 +02:00
Andrea Marchesini
186795d3eb
Bug 1378342 - AbortSignal/AbortController - part 2 - Renaming FetchController/FetchSignal, r=bkelly
...
--HG--
rename : dom/abort/FetchController.cpp => dom/abort/AbortController.cpp
rename : dom/abort/FetchController.h => dom/abort/AbortController.h
rename : dom/abort/FetchSignal.cpp => dom/abort/AbortSignal.cpp
rename : dom/abort/FetchSignal.h => dom/abort/AbortSignal.h
rename : dom/abort/tests/file_fetch_controller.html => dom/abort/tests/file_abort_controller.html
rename : dom/abort/tests/test_fetch_controller.html => dom/abort/tests/test_abort_controller.html
rename : dom/abort/tests/worker_fetch_controller.js => dom/abort/tests/worker_abort_controller.js
rename : dom/webidl/FetchController.webidl => dom/webidl/AbortController.webidl
rename : dom/webidl/FetchSignal.webidl => dom/webidl/AbortSignal.webidl
2017-08-29 11:31:06 +02:00
Sebastian Hengst
ffe4336403
Backed out changeset e5c6f95530f2 (bug 1378342)
...
--HG--
rename : dom/abort/AbortController.cpp => dom/abort/FetchController.cpp
rename : dom/abort/AbortController.h => dom/abort/FetchController.h
rename : dom/abort/AbortSignal.cpp => dom/abort/FetchSignal.cpp
rename : dom/abort/AbortSignal.h => dom/abort/FetchSignal.h
rename : dom/abort/tests/file_abort_controller.html => dom/abort/tests/file_fetch_controller.html
rename : dom/abort/tests/test_abort_controller.html => dom/abort/tests/test_fetch_controller.html
rename : dom/abort/tests/worker_abort_controller.js => dom/abort/tests/worker_fetch_controller.js
rename : dom/webidl/AbortController.webidl => dom/webidl/FetchController.webidl
rename : dom/webidl/AbortSignal.webidl => dom/webidl/FetchSignal.webidl
2017-08-29 09:17:21 +02:00
Sebastian Hengst
db728bce54
Backed out changeset 4c41e61d6763 (bug 1378342)
2017-08-29 09:16:43 +02:00
Andrea Marchesini
b89d4f379a
Bug 1378342 - AbortSignal/AbortController - part 9 - Request.signal should not be a reference of RequestInit.signal, r=bkelly
2017-08-29 07:30:21 +02:00
Andrea Marchesini
9b66f91da8
Bug 1378342 - AbortSignal/AbortController - part 2 - Renaming FetchController/FetchSignal, r=bkelly
...
--HG--
rename : dom/abort/FetchController.cpp => dom/abort/AbortController.cpp
rename : dom/abort/FetchController.h => dom/abort/AbortController.h
rename : dom/abort/FetchSignal.cpp => dom/abort/AbortSignal.cpp
rename : dom/abort/FetchSignal.h => dom/abort/AbortSignal.h
rename : dom/abort/tests/file_fetch_controller.html => dom/abort/tests/file_abort_controller.html
rename : dom/abort/tests/test_fetch_controller.html => dom/abort/tests/test_abort_controller.html
rename : dom/abort/tests/worker_fetch_controller.js => dom/abort/tests/worker_abort_controller.js
rename : dom/webidl/FetchController.webidl => dom/webidl/AbortController.webidl
rename : dom/webidl/FetchSignal.webidl => dom/webidl/AbortSignal.webidl
2017-08-29 07:30:19 +02:00
Dragana Damjanovic
12f55eee14
Bug 1379631 - Turn off OMT delivery for FetchDriver until bug 1380255 lands. The fix for this bug makes some test fail because of FetchDriver. r=mayhemer
...
--HG--
extra : rebase_source : f8e24ea564d5783d0ab44832423aac61bbe39354
2017-08-01 15:05:51 -04:00
Andrew Sutherland
9138402fac
Bug 1374943 - Fetch needs to handle redirect=error not resulting in NS_FAILED. r=bkelly
...
The included test crashes without the included fix if run with --disable-e10s.
e10s doesn't crash because HttpChannelChild examines the return value of the
call to the listener's OnStartRequest method and invokes Cancel() if it
NS_FAILED. This is a divergence between e10s and non-e10s. See the bug for
more details and discussion.
--HG--
extra : rebase_source : 9da386b0f1c0b349728170b301f62b0175c2c571
2017-06-21 08:28:34 -04:00
Bill McCloskey
f115503a0b
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405
)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
ea1b86680c
Backed out changeset 9846de3bd954 (bug 1372405
)
...
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Boris Zbarsky
c1c59ec073
Bug 1369619. Use ReadSegments in the SRI case in FetchDriver::OnDataAvailable. r=bkelly
...
This avoids some buffer copies and is arguably more readble.
2017-06-06 00:49:32 -04:00
Bevis Tseng
b5230ddca8
Bug 1363318 - Part 3: Label FetchDriver. r=baku
2017-05-16 18:27:01 +08:00
Kershaw Chang
8b2e612d40
Bug 1312515 - Part 2: Lower the channel's priority if this Fetch is created from tracking script. r=baku
...
If the Fetch request is created by a tracking script, we want to lower the priority of the http channel.
--HG--
extra : rebase_source : fc258770a2f58a503777dec8a05fd2aeab2ff889
2017-05-19 01:29:00 -04:00
Tom Tung
b1a0b88c98
Bug 1348050 - Part 1: Mark channel as urgent-start when the Fetch and XHR are triggered by user input events. r=baku,mayhemer
...
Raise the urgent-start flag in the ClassOfService when the Fetch and XHR are
triggered by user input events. The urgent-start classification will tell the
network requests scheduler to perform it with the highest priority and also
ignoring any parallelism or overall connection limits.
MozReview-Commit-ID: 2YavWbuFaln
--HG--
extra : rebase_source : 40f41d1a4b9e323c0cf5710c6d5f2a1e45e93076
2017-04-21 13:29:31 +08:00
Andrea Marchesini
0ef3f36c49
Bug 1341738 - Implement FetchController and FetObserver - part 5 - Dispatching observer events, r=bkelly
2017-03-22 11:07:27 +01:00
Andrea Marchesini
e6ad00d782
Bug 1341738 - Implement FetchController and FetObserver - part 3 - FetchSignal in Fetch API, r=bkelly
2017-03-22 11:06:08 +01:00
Wei-Cheng Pan
510ba75c20
Bug 1310127 - Part 17: Use MOZ_MUST_USE in netwerk/protocol/http r=smaug
...
MozReview-Commit-ID: 5gvVZtsa3yS
--HG--
extra : rebase_source : 5e1ab2fc06ae58f18abb8909ac93f9512abbe220
2016-12-20 11:49:32 +08:00
Ben Kelly
d304b8453f
Bug 1337543 P5 Move code to fill InternalHeaders from an nsIChannel response into utility method. r=baku
2017-02-14 10:06:39 -05:00
Sebastian Hengst
c88c3d119a
Backed out changeset a8b7ae2ed577 (bug 1337543)
2017-02-13 18:59:48 +01:00
Ben Kelly
7529d95c7c
Bug 1337543 P5 Move code to fill InternalHeaders from an nsIChannel response into utility method. r=baku
2017-02-13 12:15:59 -05:00
Tim Huang
756cf900c9
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
...
--HG--
extra : rebase_source : 22149fd540fd02119afe9fe5c9a815d01cf959c1
2017-02-07 11:49:34 +08:00
Boris Zbarsky
dbb8879a4c
Bug 1328761 part 2. Update some FetchDriver comments to more clearly reflect reality. r=bkelly
2017-01-14 22:43:17 -05:00
Thomas Nguyen
d1229b6f90
Bug 1304623 - Create a pref to control the default referrer policy - part 1. r=bkelly
...
MozReview-Commit-ID: 6R7kLB6jvhP
2017-01-05 11:30:07 +08:00
Thomas Nguyen
b169621e2e
Bug 1264792 - Update request'referrer policy when redirect.r=bkelly,dragana.
...
MozReview-Commit-ID: 3V6W0fuRomZ
--HG--
extra : rebase_source : 4b708f9646ea42ef40c60ba0b7a86e14edf621e3
2016-11-14 15:15:32 +08:00
Tom Tung
a63de77d6a
Bug 1264178 - Part 1: Expose URL fragment to request but not response. r=bkelly
...
--HG--
extra : rebase_source : ee0cac184ac64b1fa9185f912753f10b61a55383
2016-11-07 10:16:34 +08:00
Andrea Marchesini
50b8aabe39
Bug 1312410 - Fetch API should use MutableBlobStorage to store big Blobs on disk, r=qdot
2016-10-26 09:07:25 +02:00
Saurabh Singhal
0a5645d30d
Bug 1278275 - Update Headers::GetAll and Headers::Get to match the specification. r=jdm, r=bkelly
2016-10-10 22:50:14 +05:30
Tom Tung
a167b66e90
Bug 1187335 - P4 - Integrate fetch and cache with SRI & add nsIConsoleReportCollector to show console report. r=bkelly.
2016-09-07 10:20:23 +08:00
Nicholas Nethercote
34dcc7b852
Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
...
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.
In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.
> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.
> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");
This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
be true" sense used in assertions.
A common variation on the side-effect-free case is the following.
> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Kan-Ru Chen
b6d880aca1
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Thomas Nguyen
d90a1c6522
Bug 1264164 - Support Referrer Policy HTTP header. r=jdm
...
MozReview-Commit-ID: GANRqgAZQ5C
2016-07-19 15:38:26 +08:00
Thomas Nguyen
64fdf9d702
Bug 1251378 - Use referrer policy of worker instead of default. r=ehsan
...
MozReview-Commit-ID: I8X8nMkaS9V
2016-04-01 11:52:28 +08:00
Christoph Kerschbaumer
19ac7d31c1
Bug 1274170 - Remove unnecessary includes of nsCorsListenerProxy. r=jkingston
...
--HG--
extra : rebase_source : 488864e497a7e6c127a98e05efd17d1d0580e000
2016-06-21 12:54:03 +02:00
Jarda Snajdr
b57da2dc12
Bug 1278778 - Show JS stack traces of Fetch requests in Netmonitor r=bkelly
2016-06-14 04:08:00 +01:00
Jonas Sicking
32162d33c2
Bug 1273279 - Changes in preparation for FlyWeb landing. Change InternalResponse handling to track body size. r=baku f=bkelly
...
--HG--
extra : amend_source : 257331b8f4b86d6e1c7608ca6866526ce6aa645a
2016-06-01 17:02:29 -04:00
Tom Tung
842431d95a
Bug 1243792 - P1 implement response.redirected - Fetch API & Cache API & ServiceWorker changed. r=bkelly, r=baku.
...
--HG--
extra : rebase_source : 29ec29361738c6d2446b410a98bd4876a689ce99
2016-05-03 09:48:40 +08:00