Commit Graph

592 Commits

Author SHA1 Message Date
Andrea Marchesini
b92fb666a1 Bug 1375659 - FetchConsumer must check if the operation has been aborted before starting, r=bkelly 2017-07-10 22:07:44 +02:00
Andrea Marchesini
df4d5a917f Bug 1375749 - Avoid FetchConsumer::ContinueConsumeBody() to be called more than once, r=bkelly 2017-06-28 11:28:42 -07: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
Andrea Marchesini
7a1fb44a5c Bug 1374922 - FetchConsumer should not continue if the window is destroyed, r=bkelly 2017-06-22 13:16:32 +02: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
Andrea Marchesini
4b75cfc9bc Bug 1373555 - Move the Fetch consume body login in a separate class - part 3 - Move the consuming body logic from FetchBody to FetchBodyConsumer, r=bkelly 2017-06-20 17:53:21 +02:00
Andrea Marchesini
50e54e6b44 Bug 1373555 - Move the Fetch consume body login in a separate class - part 2 - Rename FetchBodyWrapper to FetchBodyConsumer, r=bkelly 2017-06-20 17:53:21 +02:00
Andrea Marchesini
349f7847d7 Bug 1373555 - Move the Fetch consume body login in a separate class - part 1 - separate files, r=bkelly 2017-06-20 17:53:21 +02:00
Andrea Marchesini
e768233bc4 Bug 1371889 - Fetch body must be kept alive using refcounting, r=bkelly 2017-06-20 17:53:20 +02: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
Bevis Tseng
d1637b9c5a Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Sebastian Hengst
593e520c55 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Oi3PA6ZpRz
2017-06-18 20:35:11 +02:00
Andrea Marchesini
4db0707bc6 Bug 1373542 - Replace AutoFreeBuffer with MakeScopeExit in Fetch.cpp, r=bkelly 2017-06-18 11:47:45 +02:00
Masatoshi Kimura
838ccc4108 Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
MozReview-Commit-ID: 5O5WtxbmATQ

--HG--
rename : dom/encoding/encodingsgroups.properties => intl/locale/encodingsgroups.properties
extra : rebase_source : 13143b43ee745b618e05ed1b6991d69781c2767d
2017-06-17 11:54:40 +09:00
Andrea Marchesini
0b97e9af19 Bug 1372888 - FetchBody<Derived>::BeginConsumeBody should check the return value of nsEventTarget::Dispatch, r=bkelly 2017-06-14 15:53:04 +02:00
Andrea Marchesini
a0d570d039 Bug 1372887 - Fetch Response type should not change if the body is consumed twice, r=bkelly 2017-06-14 15:52:46 +02:00
Henri Sivonen
432653453a Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03: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
Bevis Tseng
024ff96b5b Bug 1363318 - Part 2: Label FetchBody. r=baku 2017-05-16 18:12:24 +08:00
Bevis Tseng
93f8ac4e38 Bug 1363318 - Part 1: Label FetchSignalProxy. r=baku
Replace the use of NS_DispatchToMainThread, NS_ReleaseOnMainThread with WorkerPrivate->MainThreadEventTarget().
2017-05-16 16:59:29 +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
Tom Tung
8c93a46f2a Bug 1330297 - Part 1: Strip leading or trailing HTTP whitespace for Header value to follow the spec and share code bewteen fetch and XHR. r=baku 2017-04-10 16:15:29 +08:00
Andrea Marchesini
5ba191f3a9 Bug 1357286 - Fix warnings on release builds about unused return values from autoStream->Serialize, r=philor 2017-04-18 07:29:47 -07:00
Tom Tung
06823a6bd8 Bug 1346313 - Part 1: Modify Fetch's header handler delimiter to 0x2C 0x20 to align with spec. r=baku 2017-04-07 15:33:38 +08:00
Ben Kelly
a68b3b11fd Bug 1350433 Expose WorkerPrivate::ServiceWorkerScope() instead of using WorkerName() all over the place. r=asuth 2017-03-24 19:56:48 -04: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
cd6bd71606 Bug 1341738 - Implement FetchController and FetObserver - part 4 - FetchObserver WebIDL, r=bkelly 2017-03-22 11:06:23 +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
Andrea Marchesini
d80fbab759 Bug 1341738 - Implement FetchController and FetObserver - part 2 - Follow/Unfollow, r=bkelly 2017-03-22 11:05:10 +01:00
Andrea Marchesini
8552a5e7ba Bug 1341738 - Implement FetchController and FetObserver - part 1 - FetchController in WebIDL, r=bkelly 2017-03-22 11:04:57 +01:00
Andrea Marchesini
f9cbf66dfd Bug 1274343 - Add parent-to-child pipe streaming to IPCStream - part 2 - PParentToChild, r=smuag
--HG--
rename : ipc/glue/SendStreamAlloc.h => ipc/glue/IPCStreamAlloc.h
rename : ipc/glue/SendStreamChild.cpp => ipc/glue/IPCStreamChild.cpp
rename : ipc/glue/SendStreamParent.cpp => ipc/glue/IPCStreamDestination.cpp
rename : ipc/glue/SendStream.h => ipc/glue/IPCStreamDestination.h
rename : ipc/glue/SendStreamParent.cpp => ipc/glue/IPCStreamParent.cpp
rename : ipc/glue/SendStreamChild.cpp => ipc/glue/IPCStreamSource.cpp
rename : ipc/glue/SendStream.h => ipc/glue/IPCStreamSource.h
rename : ipc/glue/PChildToParentStream.ipdl => ipc/glue/PParentToChildStream.ipdl
2017-03-14 12:29:43 +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
26f74266ea Bug 1341678 P1 Make Request::Constructor() expect over-writing a copied body with an initializer. r=asuth 2017-03-01 09:59:01 -05:00
Andrea Marchesini
9d68a92efe Bug 1298823 - Make Request constructor throw less often, r=qdot 2017-03-01 11:44:38 +01:00
Joel Maher
f297f17181 Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt
MozReview-Commit-ID: 2HbPxGkrVfv
2017-03-01 08:20:25 -05:00
Carsten "Tomcat" Book
b0b075d2a9 Backed out changeset 6d0ac4c74fd5 (bug 1298823) for frequent failures in test_request.html 2017-03-01 14:18:32 +01:00
Andrea Marchesini
95269bdb47 Bug 1298823 - Make Request constructor throw less often, r=qdot 2017-03-01 11:44:38 +01:00
Wes Kocher
c12df814fe Backed out 2 changesets (bug 1298823) for fetch/request failures a=backout
Backed out changeset f2606ea1b31d (bug 1298823)
Backed out changeset 7a11dda7af71 (bug 1298823)

MozReview-Commit-ID: C3488SlyhiX
2017-02-28 17:53:30 -08:00
Wes Kocher
63a80f0589 Backed out 2 changesets (bug 1341678) under suspicion of causing wpt failures in test_fetch_event.html a=backout
Backed out changeset 87ea3256dd8b (bug 1341678)
Backed out changeset ccc9257cda4d (bug 1341678)

MozReview-Commit-ID: KqHfX6DZuwf
2017-02-28 17:10:23 -08:00
Andrea Marchesini
f4d88a4bee Bug 1298823 - Make Request constructor throw less often, r=qdot 2017-02-28 18:53:53 +01:00
Ben Kelly
895f116b72 Bug 1341678 P1 Make Request::Constructor() expect over-writing a copied body with an initializer. r=asuth 2017-02-28 11:48:48 -05:00
Ben Kelly
0e176007bb Bug 1322111 P1 Add TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS content policy type. r=ckerschb 2017-02-15 09:55:58 -05:00
Boris Zbarsky
063d0caa78 Bug 1330699 part 12. Actually change the key type of a record, and its corresponding conversion behavior, depending on what the IDL says. r=qdot 2017-02-15 00:01:39 -05:00
Boris Zbarsky
1471a0e8e3 Bug 1330699 part 10. Rename the MozMap C++ type to "record" and give it a template parameter for the key type. r=qdot
Also renames all the test functions to mention "Record" instead of "MozMap".

--HG--
rename : dom/bindings/MozMap.h => dom/bindings/Record.h
2017-02-15 00:01:35 -05:00
Boris Zbarsky
46964f231f Bug 1330699 part 9. Rename "MozMap" to "record" in our IDL parser and IDL files. r=qdot
The key type is unused so far.

--HG--
rename : dom/bindings/parser/tests/test_mozmap.py => dom/bindings/parser/tests/test_record.py
2017-02-15 00:00:17 -05:00
Boris Zbarsky
538d57c3f6 Bug 1330699 part 2. Change the MozMap API and data storage to more what we want record<> to look like. r=qdot,smaug 2017-02-15 00:00:00 -05: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
Carsten "Tomcat" Book
ffe70d35b2 Merge mozilla-central to mozilla-inbound 2017-02-09 11:38:08 +01:00
Andrea Marchesini
4434f5a668 Bug 1337722 - Use BufferSource in webIDL, r=qdot 2017-02-09 10:37:54 +01: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
Tom Tung
e185f7bc4c Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly. 2017-02-06 09:19:34 +08:00
Boris Zbarsky
1f816c60cf Bug 1335368 part 12. Remove the use of IsCallerChrome in FetchRequest. r=bkelly 2017-02-01 15:43:37 -05:00
Andrea Marchesini
0d8f8e4333 Bug 1329298 - Part 2 - use nsIXHRSendable instead Blob/FormData/URLSearchParams, r=smaug 2017-01-24 12:14:00 +01:00
Andrea Marchesini
20247bbf3f Bug 1329298 - Part 1 - Unify body extraction in Fetch/Beacon/XHR, r=smaug 2017-01-24 12:13:31 +01: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
Andrea Marchesini
94547f20bb Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status, r=bkelly 2017-01-05 10:05:32 +01: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
Christoph Kerschbaumer
99eda5a50b Bug 1272594 - Remove special cookie policy handling within InternalRequest (r=bkelly) 2017-01-04 21:43:39 +01:00
Boris Zbarsky
36041fae42 Bug 781782 part 1. Fix fetch code to not set a Content-Type header when it shouldn't. r=bkelly 2016-11-28 15:58:02 -05: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
8b030a7e26 Bug 1264178 - Part 2: Change URL's getter function from PassByReference to ReturnByReference. r=bkelly
--HG--
extra : rebase_source : d38a18c5856943b125d4a999091e4532a56934e2
2016-11-07 14:59:00 +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
Tim Huang
372ec56ff4 Bug 1277803 - Part 1 : Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb 2016-10-13 15:43:54 +08:00
Wes Kocher
2142de26c1 Backed out 8 changesets (bug 1277803) for browser-chrome test failures a=backout
Backed out changeset 477890efdb88 (bug 1277803)
Backed out changeset 49da326bfe68 (bug 1277803)
Backed out changeset 2d17a40a9077 (bug 1277803)
Backed out changeset b1cb0a195ca1 (bug 1277803)
Backed out changeset c7d82459d152 (bug 1277803)
Backed out changeset 3be9a06248af (bug 1277803)
Backed out changeset 8d119ca96999 (bug 1277803)
Backed out changeset be767a6f7ecd (bug 1277803)
2016-10-12 14:26:00 -07:00
Tim Huang
0ceca5575d Bug 1277803 - Part 1 : Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb 2016-10-12 17:32:03 +08:00
Nathan Froyd
9a5274a7ca Bug 1305422 - part 12 - don't call size_forward in {Body,Fetch}Util.cpp; r=bkelly 2016-09-29 22:33:57 -04:00
Xidorn Quan
f196d451ef Bug 1304302 part 7 - Break cycle reference between SRIMetadata.h and SRICheck.h. r=smaug
MozReview-Commit-ID: 8UpAEXURuSg

--HG--
extra : source : 50604098e9e374611b02d82d765fa0b230d71373
2016-09-26 22:03:25 +10:00
Andrea Marchesini
db15f776a7 Bug 1288997 - memory blob should not be shared across processes - part 1 -PSendStream should use nsIContentChild, r=jld, f=bkelly 2016-09-21 12:27:26 +02:00
Ben Kelly
c26c5533f0 Bug 1300658 P4 Make dom/fetch use the worker MainThreadTaskQueue. r=baku 2016-09-13 20:14:02 -07:00
Wes Kocher
17b9381e0b Backed out 6 changesets (bug 1300658) for frequent Windows VM Xpcshell failures a=backout
Backed out changeset 6cf3a60640cf (bug 1300658)
Backed out changeset c74062a27462 (bug 1300658)
Backed out changeset 39fbc61739ef (bug 1300658)
Backed out changeset 0b9d70b040a2 (bug 1300658)
Backed out changeset 4e921d61f036 (bug 1300658)
Backed out changeset 56496fad6494 (bug 1300658)
2016-09-12 16:34:08 -07:00
Ben Kelly
c66b226166 Bug 1300658 P4 Make dom/fetch use the worker MainThreadTaskQueue. r=baku 2016-09-12 12:32:21 -07:00
Ben Kelly
a8a4ae3c4f Backout rev 5c7368370ff9 to 980659720b86 (bug 1300118 and bug 1300658) for incorrect bug number in commit message. r=me 2016-09-12 12:29:17 -07:00
Ben Kelly
ebc2408a14 Bug 1300658 P4 Make dom/fetch use the worker MainThreadTaskQueue. r=baku 2016-09-12 11:21:02 -07:00
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
Michael Layzell
c47fca1cd7 Bug 1018486 - Part 1: Changes in dom/, r=baku
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04: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
Michael Layzell
1b457b8f4b Bug 1292293 - Part 2: Remove custom default ByteString handling logic from ResponseInit, r=bz
--HG--
extra : rebase_source : 863a852d7974b4179cf682a60894e0eb6805a574
2016-08-05 17:47:43 -04: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
Ben Kelly
9d7b33a00b Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku 2016-08-18 07:11:04 -07:00
Phil Ringnalda
4083fafafc Backed out 10 changesets (bug 1290116, bug 1293690) for build bustage
CLOSED TREE

Backed out changeset bbc14d107fca (bug 1290116)
Backed out changeset a81b6ce5c25f (bug 1290116)
Backed out changeset e0b9c25b6125 (bug 1290116)
Backed out changeset 8e9a9ba04ce5 (bug 1290116)
Backed out changeset 2d5ad5e9ed20 (bug 1290116)
Backed out changeset eb7da0dbfc72 (bug 1290116)
Backed out changeset 6a4e8c92faae (bug 1290116)
Backed out changeset 0342d98afa10 (bug 1293690)
Backed out changeset d84b0768f0ce (bug 1293690)
Backed out changeset f9f62ade9508 (bug 1293690)
2016-08-17 21:16:43 -07:00
Ben Kelly
fa520e1fdd Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku 2016-08-17 20:01:35 -07:00
Nicholas Nethercote
ca40b738e4 Bug 1294620 - Use infallible XPIDL attribute getters more. r=erahm.
This makes a lot of code more compact, and also avoids some redundant nsresult
checks.

The patch also removes a handful of redundant checks on infallible setters.

--HG--
extra : rebase_source : f82426e7584d0d5cddf7c2524356f0f318fbea7d
2016-08-12 15:19:29 +10:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06: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
Kannan Vijayan
84798b84de Bug 1287163 - Remove over-strict asserts in InternalResponse IPC code. r=sicking 2016-07-18 13:01:00 -04:00
Nicholas Nethercote
2ebfc5116b Bug 1197973 - Use MOZ_MUST_USE in AutoJSAPI. r=bz. 2016-07-14 13:18:11 +10:00
Ben Kelly
548ebdbbc0 Bug 1285502 P1 Make InternalRequest::GetRequestConstructorCopy() copy the referrer per the spec. r=asuth 2016-07-11 12:25:54 -07: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
Andi-Bogdan Postelnicu
e432d12243 Bug 1282408 - add ignore initialization check flag for variables from InternalRequest. r=jst
MozReview-Commit-ID: Fc3IlwHO3jY
2016-06-30 10:05:00 +03:00
Andrea Marchesini
6209c0d90e Bug 1269161 - Remove the separate worker bindings for URL, r=khuey 2016-06-29 07:43:44 +02:00
Andrea Marchesini
aac2306f2c Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book
47aeb86e2c Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
--HG--
rename : dom/cache/CacheWorkerHolder.cpp => dom/cache/Feature.cpp
rename : dom/cache/CacheWorkerHolder.h => dom/cache/Feature.h
rename : dom/workers/WorkerHolder.h => dom/workers/WorkerFeature.h
extra : rebase_source : 49f9e9ce0500ac441fe97878cf9308804926544f
2016-06-23 10:13:54 +02:00
Andrea Marchesini
45087a7970 Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-22 17:24:35 +02: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
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Andrew Sutherland
af016de2cb Bug 1272436 - P0: Implement "only-if-cached" RequestCache mode. r=mayhemer, r=bkelly, r=bzbarsky for WebIDL change
The fetch spec has re-introduced "only-if-cached" mode which loads only from
the cache.  There are privacy implications to this so for the time being it
is required that "same-origin" mode is used.
2016-06-08 12:10:15 -04:00
Andrea Marchesini
43a1cd6c16 Bug 1277226 - Implement MainThreadWorkerRunnable, r=sicking 2016-06-08 07:12:05 +02:00
Jonas Sicking
4ab94e9f20 Bug 1263991 part 4: Support response body. r=bkelly 2016-06-07 02:46:03 -07:00
Jonas Sicking
64a8f66145 Bug 1263991 part 3: Support incoming and outgoing requests/responses. r=baku f=bkelly 2016-06-07 02:46:03 -07:00
Carsten "Tomcat" Book
a62eba3cef Backed out changeset 5853ea69f6c4 (bug 1263991) 2016-06-07 12:10:27 +02:00
Carsten "Tomcat" Book
493f097700 Backed out changeset 9be76aad30b1 (bug 1263991) 2016-06-07 12:10:26 +02:00
Jonas Sicking
c867263f70 Bug 1263991 part 4: Support response body. r=bkelly 2016-06-07 02:46:03 -07:00
Jonas Sicking
e6c14cd4ed Bug 1263991 part 3: Support incoming and outgoing requests/responses. r=baku f=bkelly 2016-06-07 02:46:03 -07: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
Ben Kelly
f671f48c5d Bug 1273070 P1 Fix fetch() WorkerRunnable classes to allow it to work with nested Workers. r=khuey 2016-05-19 11:39:13 -07:00
Ben Kelly
23a521f80e Bug 1271493 Dispatch fetch control runnable even in opt builds. r=mccr8 2016-05-11 07:42:05 -07:00
Ben Kelly
45e5796248 Backout 212d1af61570 (bug 1271493) for winxp bustage. r=me 2016-05-10 17:38:39 -07:00
Ben Kelly
4fcf10742d Bug 1271493 Dispatch fetch control runnable even in opt builds. r=mccr8 2016-05-10 16:43:17 -07: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
Carsten "Tomcat" Book
a993b36b4a Backed out changeset dc42de66de8c (bug 1243791) landing with wrong bug number
--HG--
extra : rebase_source : b016defba5a12065b401d0d59b3f03e8b1d7cbe1
2016-05-10 12:50:15 +02:00
Tom Tung
15b89607c6 Bug 1243791 - P1 implement response.redirected - Fetch API & Cache API & ServiceWorker changed. r=bkelly, r=baku. 2016-05-03 09:48:40 +08:00
Ben Kelly
4951f23f02 Bug 1270161 Make fetch() use a control runnable to cleanup if the worker thread is shutting down. r=baku 2016-05-05 13:02:27 -07:00
Kyle Huey
941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Andrea Marchesini
513590a1ac Bug 1267904 - Add telemetry for WorkerMainThreadRunnable, r=khuey 2016-05-03 09:09:47 +02:00
Carsten "Tomcat" Book
ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Ehsan Akhgari
756a1054f9 Bug 1265941 - Rename the ReferrerPolicy "origin-only" enum value to "origin"; r=jdm 2016-04-20 14:21:34 -04:00
Stone Shih
aa7c2fc2bd Bug 1240436 - Part1: Convert UTF16 to UTF8 before generating nsStringInputStream. r=khuey 2016-04-12 16:33:53 +08:00
Marcos Caceres
f7ad23868a Bug 1250048 - CSP manifest-src doesn't override default-src. r=ckerschb,bkelly,ehsan
MozReview-Commit-ID: Ceu3sYUcML4
2016-04-07 14:13:09 -07:00
Kyle Huey
d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Kyle Huey
fe5f7b4105 Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz 2016-03-28 10:28:14 -07:00
Wes Kocher
fe9aec58c3 Backed out changeset 1d5e6c22fd3a (bug 1250048) for CSP failures/assertions in various tests/chunks CLOSED TREE
MozReview-Commit-ID: I21ELiYYqdD

--HG--
extra : amend_source : 83d8554e6046153a3cf16ffefed7d6602e822241
2016-03-21 12:42:36 -07:00
Marcos Caceres
2e3ca60562 Bug 1250048 - CSP manifest-src doesn't override default-src. r=ckerschb
--HG--
extra : rebase_source : 1f8a65dcb9ea909588991cd5e8970560c3651426
2016-03-20 23:24:00 -04:00
Shawn Huang
582371f54e Bug 918706 - Return NS_ERROR_DOM_SYNTAX_ERR if method is invalid, r=khuey 2016-03-17 15:29:42 +08:00
Ehsan Akhgari
24fbc15619 Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-11 14:40:53 -05:00
Ehsan Akhgari
a014521971 Bug 1120715 - Part 5: Treat a default cache mode Request with a revalidation header as no-store; r=bkelly 2016-03-11 14:40:49 -05:00
Ehsan Akhgari
b70a0ad138 Bug 1120715 - Part 3: Connect the Necko level cache mode parameter with the Request cache mode variable; r=bkelly 2016-03-11 14:40:41 -05:00
Eric Rahm
ec9877219e Bug 1253054 - Stop warning if request has already failed. r=bkelly 2016-03-11 11:18:07 -08:00
Ehsan Akhgari
09a89f85f6 Bug 1255636 - Give a better error message when the Request constructor fails because of a cross-origin referrer URL; r=bkelly 2016-03-10 21:11:30 -05:00
Ryan VanderMeulen
e98112b9bd Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)

CLOSED TREE
2016-03-10 20:20:05 -05:00
Ehsan Akhgari
8508bae9bf Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-10 17:29:11 -05:00
Ehsan Akhgari
53434f9639 Bug 1120715 - Part 5: Treat a default cache mode Request with a revalidation header as no-store; r=bkelly 2016-03-10 17:29:11 -05:00
Ehsan Akhgari
f08814d04f Bug 1120715 - Part 3: Connect the Necko level cache mode parameter with the Request cache mode variable; r=bkelly 2016-03-10 17:29:11 -05:00
Wes Kocher
53011a6a05 Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)

MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Ehsan Akhgari
017bf0f2b6 Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-09 16:45:01 -05:00
Ehsan Akhgari
ea3b20fae4 Bug 1120715 - Part 5: Treat a default cache mode Request with a revalidation header as no-store; r=bkelly 2016-03-09 16:44:58 -05:00
Ehsan Akhgari
d9ecb20ef6 Bug 1120715 - Part 3: Connect the Necko level cache mode parameter with the Request cache mode variable; r=bkelly 2016-03-09 16:43:33 -05:00
Jonathan Watt
a73bd8c354 Bug 1253094, part 1 - Stop using DebugOnly for class/struct members in dom/. r=baku
MozReview-Commit-ID: ErWZs9oV4WS
2016-02-26 15:52:06 +00:00
Ehsan Akhgari
38637e2005 Bug 1251872 - Part 1: Implement Request.referrerPolicy; r=jdm 2016-03-03 16:43:55 -05:00
Ehsan Akhgari
36207d26f5 Bug 1251448 - Add support for RequestInit.referrer; r=jdm 2016-03-02 18:18:27 -05:00
Boris Zbarsky
f47268eca8 Bug 1252127. Remove unnecessary JSContext argument from PromiseWorkerProxy::CleanUp. r=khuey 2016-02-29 14:52:42 -05:00
Boris Zbarsky
663b9bd562 Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey 2016-02-29 14:52:42 -05:00
Ben Kelly
1169129154 Bug 1251229 P1 Strip fragment from request URL when creating FetchEvent. r=ehsan 2016-02-29 13:21:19 -05:00
Huma Zafar
06fc8dac78 Bug 1206166 - Move FetchUtil::Consume methods into separate BodyUtil class and update Fetch.cpp and ServiceWorkerEvents.cpp accordingly. r=kitcambridge
MozReview-Commit-ID: KgEccQ2LPpC

--HG--
extra : histedit_source : 17fb2f5c022399b050a12b013f004e628ca4b9d0
2016-02-27 13:54:11 -08:00
Boris Zbarsky
7345c5edb1 Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey 2016-02-26 15:23:12 -05:00
Ehsan Akhgari
eeaaec0d28 Bug 1250985 - Part 2: Prevent copy constructing a Request object with navigate mode if a RequestInit member is present; r=bzbarsky 2016-02-25 19:49:06 -05:00
Ehsan Akhgari
40429e1dd8 Bug 1250987 - Make RequestInit.body nullable; r=bzbarsky 2016-02-25 09:12:42 -05:00
Stefan Dye
4ddfe18b64 Bug 1204520 - Remove unused return value from FetchDriver::FailWithNetworkError. r=jdm 2016-01-31 21:56:00 -05:00
Ben Kelly
1de96897ae Bug 1244764 P1 Make Cache .add()/.addAll() fail if a Response.ok() is false. r=ehsan 2016-02-04 07:59:52 -08:00
Birunthan Mohanathas
d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Ehsan Akhgari
fbf2580b8c Bug 1197379 - Remove support for intercepting app:// URIs using service workers; r=jdm 2016-01-27 15:26:27 -05:00
dimi
c21d1ebd14 Bug 1188822 - Make service-workers/service-worker/fetch-request-resources.https.html pass. r=bkelly 2016-01-25 14:18:29 +08:00
Ehsan Akhgari
d08dcc913c Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly 2016-01-19 17:46:10 -05:00
Ben Kelly
d255c137ac Bug 1237455 P5 Set headers on fetch() redirects. r=ehsan 2016-01-19 13:54:15 -08:00
Ben Kelly
e8c08705f3 Bug 1237455 P4 Create helper method to set fetch request headers. r=ehsan 2016-01-19 13:54:15 -08:00
Thomas Kuyper
2ae35fec9a Bug 1184550 - Move the check for bodyUsed before the check for a null body so subsequent fetches with the same Request fail. r=bkelly 2016-01-14 08:57:00 -05:00
Ehsan Akhgari
df420183a8 Bug 1201664 - Avoid using Request's constructor when creating FetchEvent.request; r=bkelly
This enables us to avoid a number of checks in Request::Constructor
which don't make sense for exposing FetchEvent.request.
2016-01-14 13:08:36 -05:00
Ben Kelly
66209204da Bug 1238134 P1 Provide a Response.cloneUnfiltered() method for chrome code to access internal Response state. r=ehsan 2016-01-12 12:15:12 -08:00
Andrea Marchesini
83b88d383f Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug 2016-01-12 18:16:59 +00:00
Carsten "Tomcat" Book
6692893d20 Backed out changeset 5f6a58676e87 (bug 1231378) 2016-01-12 15:48:57 +01:00
Andrea Marchesini
001e241382 Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug 2016-01-12 13:54:53 +00:00
Andrea Marchesini
4fd7346fa1 Bug 1237674 - Rename nsFormData to mozilla::dom::FormData, r=smaug
--HG--
rename : dom/base/nsFormData.cpp => dom/base/FormData.cpp
rename : dom/base/nsFormData.h => dom/base/FormData.h
2016-01-07 19:30:36 +00:00
dimi
67f0b5d3cf 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
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