Commit Graph
94 Commits
Author SHA1 Message Date
Chris Peterson 6137e4ff8b Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U
2017-09-03 22:14:11 -07:00
Kershaw Chang afe1485a93 Bug 1395472 - Don't move background transactions' streams to background group when the pref is off. r=hurley 2017-09-03 23:55:00 -04:00
Kershaw Chang 974c02c510 Bug 1377208 - Move background h2 stream into background group. r=hurley 2017-08-30 02:19:00 -04:00
Nicholas Hurley 64a5cf8c92 Bug 1367551 - Cancel pushes when we already have the item in cache. r=mayhemer,mcmanus
MozReview-Commit-ID: 24N0Jm85wcC
2017-06-28 10:34:55 -07:00
Sylvestre Ledru 576cac5ec7 Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL
2017-07-15 19:03:04 +02:00
Honza Bambas c360d7e378 Bug 1371700 - Some added network logs for better tracking, r=mcmanus 2017-07-12 08:44:00 +02:00
Nicholas Nethercote 4ce1e9c11f Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows.

- nsSubstring  --> nsAString
- nsCSubstring --> nsACString
2017-06-20 19:19:52 +10:00
Liang-Heng Chen 4cb0bfe784 Bug 1341266 - create http/2 stream for urgent-start; r=mcmanus
MozReview-Commit-ID: GIZuAmigK9n
2017-05-19 00:50:15 +08:00
Nathan Froyd a3cd9ee75a Bug 1360236 - make gSocketThread an internal implementation detail of nsSocketTransportService; r=mcmanus
This change makes the code a little cleaner and reduces the number of
places we call PR_GetCurrentThread, which is important for Quantum DOM
scheduling work.

The conversion was largely automatic, via:

find netwerk/ -name \*.cpp | \
  xargs sed -i -e 's/MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread[^;]*/MOZ_ASSERT(OnSocketThread(), "not on socket thread")/'

and related invocations, with a few manual tweaks at the end.
2017-04-27 14:34:42 -04:00
Chris Peterson 812a764aec Bug 1356843 - Fix -Wcomma warning in netwerk/protocol/http/Http2Stream.cpp. r=jhao
clang's -Wcomma warning warns about suspicious use of the comma operator such as between two statements.

netwerk/protocol/http/Http2Stream.cpp:436:59 [-Wcomma] possible misuse of comma operator here

MozReview-Commit-ID: AsmNPTjKlYB
2017-03-27 21:42:21 -07:00
Nicholas Hurley c225101a91 Bug 1352146 - Don't allow status phrases in http/2. r=mcmanus
MozReview-Commit-ID: Cf30tUivhnB
2017-04-07 13:18:20 -07:00
Patrick McManus 9f69c57165 Bug 1337791 - Part 2: http/2 origin frame extension. r=nwgh 2017-04-03 17:23:55 -04:00
Patrick McManus 367b7af3a7 Bug 1350719 injected http response header 0rtt r=dragana 2017-03-26 14:28:20 -04:00
Jonathan Hao b7fa659149 Bug 1334693 - Add origin attributes to Http2Stream::PushHashKey(). r=mcmanus
MozReview-Commit-ID: He9Ha4SOp2O
2017-03-08 18:26:08 +08:00
Wes Kocher 4f3166d144 Backed out 3 changesets (bug 1334693) for build failures a=backout
Backed out changeset 8042ff76ef53 (bug 1334693)
Backed out changeset f48b85ae4eca (bug 1334693)
Backed out changeset 85c4356eebea (bug 1334693)

MozReview-Commit-ID: 2VFn68MXSmx
2017-03-08 18:04:30 -08:00
Jonathan Hao f332811dd5 Bug 1334693 - Add origin attributes to Http2Stream::PushHashKey(). r=mcmanus
MozReview-Commit-ID: He9Ha4SOp2O
2017-03-08 18:26:08 +08:00
Wei-Cheng Pan 60a2861056 Bug 1310127 - Part 4: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
This patch contains some changes that may alter control flows.

MozReview-Commit-ID: Kcc2DWJZ8L5
2016-12-28 14:43:47 +08:00
Wei-Cheng Pan f9654c1dca Bug 1310127 - Part 2: Use MOZ_MUST_USE in netwerk/protocol/http r=Cykesiopka,mcmanus
Log failures or just ignore them, no control flow change.

MozReview-Commit-ID: D748DEjl3Fv
2016-12-27 19:05:13 +08:00
Dragana Damjanovic 7bd97c20e4 Bug 1343008 - Fix combination of H2, tls1.3 early-data and not safe http methods. r=mcmanus 2017-02-27 15:02:47 -05:00
Patrick McManus 462f1b3fe7 Bug 1322373 - TLS 1.3 early-data for HTTP/2. r=dragana,mcmanus 2017-02-21 15:19:46 -05:00
Tom Tromey a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Jinank Jain b875b54a4e Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger 2016-08-23 11:24:54 -04:00
Patrick McManus 5263088c2b Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer 2016-05-04 17:03:59 -04:00
Wes Kocher f686eb17de 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 f509d79078 Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer 2016-05-04 17:03:59 -04:00
Carsten "Tomcat" Book 0e9545802f Backed out changeset 81d69d7cf909 (bug 1267474) for bustage on a CLOSED TREE 2016-05-11 16:10:51 +02:00
Patrick McManus 04a2955285 Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer 2016-05-04 17:03:59 -04:00
Dragana Damjanovic e743f08e91 Bug 1247982 - Lock request headers. r=mcmanus 2016-05-03 00:06:00 +02:00
Valentin Gosu 684bb7e7c6 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
2016-04-21 16:59:17 +02:00
Patrick McManus 75d927a18d Bug 1259459 - h2 0 length options puts end-stream on headers r=hurley 2016-03-18 14:08:01 -04:00
Patrick McManus 743bd047cc Bug 1253358 - no flags on priority frames r=hurley 2016-03-03 13:33:04 -05:00
Patrick McManus 5b37dce997 Bug 1253358 - minor h2 push fixes r=hurley 2016-03-03 11:48:30 -05:00
Patrick McManus 2b64f578fc Bug 1249379 - H2 Push WindowUpdate not written to network r=hurley 2016-02-18 15:00:46 -05:00
Patrick McManus 4b112a6bf4 Bug 1248203 - streamline h2 stream flow control buffer r=hurley 2016-02-13 12:10:02 -05:00
Valentin Gosu 1b0d4a4e69 Bug 241788 - net_FilterURIString should filter \r\n\t from the entire URL r=honzab
* net_ExtractURLScheme now uses mozilla::Tokenizer
* net_FilterURIString also filters characters in the scheme now
* removed startPos and endPos parameters for net_FilterURIString and introduced net_IsAbsoluteURL
2016-02-05 14:45:08 +01:00
Chris Peterson dab3fbc2f4 Bug 1235298 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in netwerk/. r=mcmanus 2015-11-22 21:58:33 -08:00
Nicholas Hurley 59d24fa20e Bug 1228822 - Ensure we send out the window update when matching a pushed stream with a pull stream. r=mcmanus 2015-12-09 10:11:04 -08:00
Nathan Froyd 71fe503663 Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
Daniel Stenberg 3964d34fc6 Bug 1227931 - init Http2Stream::mReceivedData in the constructor. r=nwgh 2015-11-25 05:15:00 +01:00
Patrick McManus f377314c77 Bug 1174899 - fixup log format strings for spdy/h2 r=bagder 2015-11-20 15:33:04 -05:00
Nathan Froyd 638feef71b Bug 1219910 - make gSocketThread a relaxed atomic variable; r=mcmanus
Many places that (re-)declared gSocketThread already included
nsSocketTransportService2.h; we can delete the declaration for those
places.  For all the other places, we need to include
nsSocketTransportService2.h.
2015-11-06 12:00:37 -05:00
Dragana Damjanovic 13606abe97 Bug 1211694 - dataLength has been added twice. r=mcmanus 2015-10-05 14:58:00 +02:00
Carsten "Tomcat" Book 711773fff6 Backed out changeset 9fc04da2a662 (bug 1211694) for perma failures in B2G ICS Emulator opt C1 Tests on a CLOSED TREE 2015-10-20 16:09:13 +02:00
Dragana Damjanovic 90e0314d43 Bug 1211694 - dataLength has been added twice. r=mcmanus 2015-10-05 14:58:00 +02:00
Nathan Froyd 4e6d8f6705 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
2015-10-18 01:24:48 -04:00
Patrick McManus 3685b98fd5 Bug 1213979 - h2 packet formats. r=hurley 2015-10-12 23:56:12 -04:00
Ryan VanderMeulen 88cf80f207 Backout eab6f9c125cc (bug 1211694) to see if it fixes the crashes reported in bug 1213979. a=me 2015-10-12 18:04:55 -04:00
Dragana Damjanovic 0037e81ee0 Bug 1211694 - dataLength has been added twice. r=nwgh 2015-10-11 18:13:10 +02:00
Patrick McManus 25aaa997fb bug 1208114 - fix h2 connect tunnels r=hurley 2015-10-07 12:55:07 -04:00
Wes Kocher 384f3b4fb8 Backed out changeset 3cd86929d883 (bug 1208114) for test_video_playback.py crashes 2015-10-08 13:12:20 -07:00