Ehsan Akhgari
0fad752fae
Bug 1318887 - Remove NS_GetAppInfo; r=mcmanus
...
This function is now only used to populate some write-only data members.
2016-11-21 15:00:46 -05:00
Ehsan Akhgari
5db79d7e66
Bug 1318883 - Remove the NetworkStats API and related code; r=baku,mcmanus
2016-11-21 13:33:18 -05:00
Honza Bambas
078f3bad66
Bug 1311720 - Stick HTTP connection to its channel when NTLM/Negotiate auth challenge is received more early, r=mcmanus
2016-10-21 09:49:00 +02:00
Kershaw Chang
02e0599818
Bug 1257782 - Limit the HTTP response header size, r=mcmanus
2016-10-24 09:01:00 +02:00
Patrick McManus
1d5bcef263
Bug 1301117 - update opportunisitic encryption r=hurley
2016-08-16 15:51:18 -04:00
Dragana Damjanovic
79e0168a9b
Bug 1264578 - Networking support for http with TLS 1.3. r=mcmanus
...
--HG--
extra : rebase_source : eb851624fe67c2112ed4ed1cf7f1790b41a341cd
2016-08-11 08:28:00 -04:00
Sebastian Hengst
de7e01f00d
Backed out changeset 123049a4ba35 (bug 1264578) for timing out in browser_clientAuth_connection.js. r=backout
2016-08-18 17:28:09 +02:00
Dragana Damjanovic
ff61d396de
Bug 1264578 - Networking support for http with TLS 1.3. r=mcmanus
...
--HG--
extra : rebase_source : 09ca6da3ec12db1db0520f20a7cc39c515d8b5a8
2016-08-11 08:28:00 -04:00
Nicholas Nethercote
3b0485fcdb
Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj.
...
Slightly less than half (93 / 210) of the NS_METHOD instances in the codebase
are because of the use of NS_CALLBACK in
nsI{Input,Output,UnicharInput},Stream.idl. The use of __stdcall on Win32 isn't
important for these callbacks because they are only used as arguments to
[noscript] methods.
This patch converts them to vanilla |nsresult| functions. It increases the size
of xul.dll by about ~600 bytes, which is about 0.001%.
--HG--
extra : rebase_source : c15d85298e0975fd030cd8f8f8e54501f453959b
2016-08-12 17:36:22 +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
Decky Coss
646f325157
Bug 1277019 - Change header and status parsing methods to take nsACString instead of char array. r=mayhemer
...
MozReview-Commit-ID: 7ZNwvnTMCzo
--HG--
extra : transplant_source : %E7T%DC%83%08%22%11%92%A4%2C%89G%1C%88%B3L%0D%7D%FA%FC
2016-05-31 12:42:15 -04:00
Patrick McManus
2722b75b4d
Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer
...
--HG--
extra : rebase_source : 9e00df6a46684032e62da6e2e607a7f65ff63d87
2016-05-04 17:03:59 -04:00
Wes Kocher
1806870b06
Backed out 3 changesets (bug 1267474) foor test_immutable.js failures in xpcshell jobs
...
Backed out changeset 057f3f50441f (bug 1267474)
Backed out changeset 960d93f30c66 (bug 1267474)
Backed out changeset 0c059a0e87d7 (bug 1267474)
2016-05-11 10:32:33 -07:00
Patrick McManus
7f770ceea1
Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer
...
--HG--
extra : rebase_source : 7cd8ceea26962af47daaab5fc786b24a773f3e47
2016-05-04 17:03:59 -04:00
Carsten "Tomcat" Book
79ae391df9
Backed out changeset 81d69d7cf909 (bug 1267474) for bustage on a CLOSED TREE
2016-05-11 16:10:51 +02:00
Patrick McManus
5bce2b10a7
Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer
2016-05-04 17:03:59 -04: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
Valentin Gosu
c8a94789bb
Bug 1262326 - Make test_user_agent_overrides.html work in e10s r=nwgh
...
* Rename SchedulingContext to RequestContext
* Move SetLoadGroupUserAgentOverride to nsHttpChannel
* Cache the userAgentOverride in RequestContext instead of LoadGroup
MozReview-Commit-ID: FQS9uSRR8kd
--HG--
rename : netwerk/base/SchedulingContextService.cpp => netwerk/base/RequestContextService.cpp
rename : netwerk/base/SchedulingContextService.h => netwerk/base/RequestContextService.h
rename : netwerk/base/nsISchedulingContext.idl => netwerk/base/nsIRequestContext.idl
2016-04-21 16:59:17 +02:00
J. Ryan Stinnett
5bede71f0d
Bug 1238160 - Rename nsILoadContext::GetIsInBrowserElement. r=smaug,mayhemer
...
This change renames nsILoadContext::GetIsInBrowserElement to
GetIsInIsolatedMozBrowserElement. Other methods that pass these values around
also have name changes.
Tokens such as "isInBrowserElement" have previously been serialized into cache
keys, used as DB column names, stored in app registries, etc. No changes are
made to any serialization formats. Only runtime method and variable names are
updated.
No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations. These are corrected in subsequent patches
focused on behavior.
MozReview-Commit-ID: CUttXANQjSv
2016-03-02 10:35:56 -06:00
Patrick McManus
677082b660
Bug 1241906 - Spdy deadlock on suspended channel r=hurley
...
--HG--
extra : rebase_source : 5c61ce077ba3b6ff5e68b379ac0efda304424e1b
2016-01-29 11:47:58 -05:00
Nate Hughes ext:(%2C%20Valentin%20Gosu%20%3Cvalentin.gosu%40gmail.com%3E)
7e19134192
Bug 1154309 - Add New Resource Timing Fields r=bz,hurley
2015-07-24 08:49:25 -07:00
Patrick McManus
06d7c103e1
bug 1215552 - nsHttpConnectionMgr::PostEvent shouldnt manually ref count r=hurley
2015-10-16 11:36:59 -04: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
Patrick McManus
53b6eb3848
bug 1187239 - ontransportstatus SENDING_TO should not use request stream re-entrantly r=hurley r=bz
2015-09-15 18:12:37 -04:00
Patrick McManus
60d6db97ae
bug 1204614 - use h2 per stream flow control to deal with suspended channels r=hurley
2015-09-11 15:53:27 -04:00
Patrick McManus
0c1bb97999
bug 1196882 - dont enforce h1 framing on non 2xx r=bagder
2015-08-28 10:57:16 -04:00
Nicholas Hurley
16407ea724
Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL
...
--HG--
extra : rebase_source : 24dd37c6eaec83a1776d77632b97106e8abb8015
2015-07-31 13:50:08 -07:00
Jessica Jong
3d60b78a00
Bug 1167132 - Part 13: [NetworkManager] Move network information into a separate interface (Necko/NetStats). r=ethan
2015-07-29 02:14:00 -04: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
Patrick McManus
152d8038bf
bug 1157280 - dont getSockName from main thread r=hurley
2015-04-29 18:39:06 -04:00
Andrea Marchesini
e6f385fb3d
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00: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
Valentin Gosu
b197d037c7
Bug 1132572 - Fix data race for nsHttpTransaction's timing info r=mcmanus
2015-02-25 20:23:23 +02:00
Daniel Stenberg
7421e0dc52
Bug 237623 - introduce "soft" checks for HTTP framing errors, r=mcmanus
...
--HG--
extra : rebase_source : a920948bc393de14a17d903c4604fd4c61356293
2015-02-25 01:16:00 +01:00
Patrick McManus
0f9824c683
bug 1133177 - https tunnel of h1 without pconn inside h2 session stall r=hurley
2015-02-19 13:50:15 -05:00
Patrick McManus
d0b1783640
bug 1133177 - network logging and cleanups (part 1) r=hurley
2015-02-19 12:21:03 -05:00
Patrick McManus
fe6f2cfa3b
bug 1133156
backout 7abb1cb9739e (bug 237623) for regression r=backout
2015-02-13 22:57:03 -05:00
Patrick McManus
f6e7bab9dc
bug 1132212 - nshttptransction.cpp dont play with data race fire r=sworkman
...
--HG--
extra : rebase_source : 9c36261b9ce11598664932f2e40693eee735b498
2015-02-12 15:00:18 -05:00
Daniel Stenberg
2d47b873af
Bug 237623 - Introduce "soft" checks for HTTP framing errors. r=mcmanus
2015-02-11 05:17:00 -05:00
Ethan Tseng
dc7d20d249
Bug 1070944 - Part 2: Implementation of saving statistics. r=albert
2015-01-27 17:15:44 +08:00
Patrick McManus
175115e709
bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz
...
These scriptable interfaces use uint_64 arguments with sentinel values
of UINT64_MAX. However, UINT64_MAX exceeds MAX_SAFE_INTEGER and cannot
be gatewayed to/from javascript - so they cannot be used
correctly. Change them to use signed 64 bit numbers and -1 as the
sentinnel. C++ implementations ought to be enough to audit as the
special value could never be used correctly in JS anyhow - also
audited OnProgressChange() uses for downstream use of this data.
---
dom/base/nsXMLHttpRequest.cpp | 19 +++++++----
dom/base/nsXMLHttpRequest.h | 10 +++---
dom/plugins/base/nsPluginStreamListenerPeer.cpp | 4 +--
.../webbrowserpersist/nsWebBrowserPersist.cpp | 14 ++++----
image/src/imgLoader.cpp | 4 +--
modules/libjar/nsJARChannel.cpp | 3 +-
netwerk/base/public/nsIProgressEventSink.idl | 8 ++---
netwerk/base/public/nsITransport.idl | 8 ++---
netwerk/base/public/nsNetUtil.h | 24 ++++++++++++++
netwerk/base/src/Dashboard.cpp | 2 +-
netwerk/base/src/nsBaseChannel.cpp | 12 +++----
netwerk/base/src/nsIncrementalDownload.cpp | 4 +--
netwerk/base/src/nsSocketTransport2.cpp | 5 +--
netwerk/base/src/nsStreamTransportService.cpp | 38 +++++++++++++---------
netwerk/base/src/nsTransportUtils.cpp | 12 +++----
netwerk/protocol/file/nsFileChannel.cpp | 8 +++--
netwerk/protocol/ftp/nsFtpConnectionThread.cpp | 4 +--
netwerk/protocol/http/Http2Push.cpp | 2 +-
netwerk/protocol/http/Http2Session.cpp | 2 +-
netwerk/protocol/http/HttpChannelChild.cpp | 31 +++++++++---------
netwerk/protocol/http/HttpChannelChild.h | 6 ++--
netwerk/protocol/http/HttpChannelParent.cpp | 4 +--
netwerk/protocol/http/HttpChannelParent.h | 4 +--
netwerk/protocol/http/NullHttpTransaction.cpp | 2 +-
netwerk/protocol/http/PHttpChannel.ipdl | 2 +-
netwerk/protocol/http/SpdyPush31.cpp | 2 +-
netwerk/protocol/http/SpdySession31.cpp | 2 +-
netwerk/protocol/http/TunnelUtils.cpp | 2 +-
netwerk/protocol/http/nsAHttpTransaction.h | 4 +--
netwerk/protocol/http/nsHttpChannel.cpp | 30 +++++++++++------
netwerk/protocol/http/nsHttpConnection.cpp | 4 +--
netwerk/protocol/http/nsHttpConnectionMgr.cpp | 4 +--
netwerk/protocol/http/nsHttpPipeline.cpp | 4 +--
netwerk/protocol/http/nsHttpPipeline.h | 6 ++--
netwerk/protocol/http/nsHttpResponseHead.cpp | 2 +-
netwerk/protocol/http/nsHttpResponseHead.h | 2 +-
netwerk/protocol/http/nsHttpTransaction.cpp | 32 +++++++++---------
netwerk/protocol/http/nsHttpTransaction.h | 2 +-
netwerk/protocol/wyciwyg/WyciwygChannelChild.cpp | 2 +-
netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp | 3 +-
netwerk/test/TestIncrementalDownload.cpp | 7 ++--
uriloader/base/nsDocLoader.cpp | 14 ++++----
42 files changed, 203 insertions(+), 151 deletions(-)
2015-01-08 14:48:52 -05:00
Ehsan Akhgari
e9499ce141
Bug 1117042 - Mark virtual overridden functions as MOZ_OVERRIDE in netwerk; r=mcmanus
2015-01-02 09:04:04 -05:00
Patrick McManus
7edbeec28f
bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley
2014-12-06 14:26:50 -05:00
Nicholas Hurley
e53d01ea81
Bug 1091263
- HTTP_1_1_REQUIRED support. r=mcmanus
2014-11-06 09:26:00 -05:00
Patrick McManus
bc4244f5a9
bug 1024730 - nsIHttpPushListener r=hurley
...
co-author: ben brittain <ben@brittain.org>
2014-10-21 14:35:41 -04:00
Patrick McManus
12115897d4
bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley
2014-08-21 10:50:17 -04:00
Patrick McManus
f6a840b13e
bug 1072860 - modernize ref counting and thread asserts for nshttptransaction r=valentin
2014-09-23 19:18:47 -04:00
Wes Kocher
80f0226a8b
Backed out changeset 0b75d671af47 (bug 1072860) for b2g m3 orange
2014-09-25 16:45:14 -07:00
Patrick McManus
8eae58d009
bug 1072860 - modernize ref counting and thread asserts for nshttptransaction r=valentin
2014-09-23 19:18:47 -04:00
Valentin Gosu
d2282e76f9
Bug 1011354 - Use a mutex to guard access to nsHttpTransaction::mConnection. r=mcmanus, r=honzab
2014-09-18 22:21:59 +03:00