Commit Graph

71 Commits

Author SHA1 Message Date
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
Patrick McManus
7edbeec28f bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
Blake Kaplan
b7672658f4 Bug 1088457 - Make nsChannelClassifier deal properly with e10s. r=mmc/sworkman 2014-11-11 15:05:55 -08:00
Valentin Gosu
2eda82e00d Bug 1064706 - Send timing info to content process r=honzab 2014-10-06 12:31:29 +03:00
Andrew McCreight
5cfdffbdb2 Back out afecbcdbe6d5 (bug 1064706 part 2) for leaking windows with e10s. 2014-10-09 13:02:18 -07:00
Valentin Gosu
0d99c53f96 Bug 1064706 - Send timing info to content process r=honzab 2014-10-06 14:33:27 +03:00
Valentin Gosu
bd28245b1f Bug 822480 - Fix e10s bits of Resource Timing implementation. r=bz, r=honzab
* Move nsITimedChannel to HttpBaseChannel which is inherited by HttpChannelChild
* Return mZeroTime instead of 0 in nsPerformanceTiming
* Pass redirect count from parent to child channel
2014-04-21 09:34:33 -04:00
Jason Duell
b7e2679c07 Bug 985230 - mStatus is not correct in HttpChannelChild::OnStartRequest r=sworkman 2014-03-31 14:43:04 -07:00
Steve Workman
c0d484b966 Bug 975338 - Enable diverting of HTTP and FTP channels back to parent process from child r=jduell 2014-03-10 23:04:28 +01:00
Ed Morley
e914d19aae Backed out changeset 97858e5c1f13 (bug 975338) 2014-03-10 17:57:53 +00:00
Steve Workman
65a4092dcf Bug 975338 - Add PChannelDiverter and new messages to PHttpChannel r=jduell 2014-03-10 18:31:05 +01:00
Nathan Froyd
61378e49b8 Bug 918651 - part 9 - remove useless includes from IPDL files; r=ehsan
These includes are no longer needed.  It's much easier to locate these
includes when they're not obscured by a bunch of other stuff.
2013-10-18 14:47:04 -04:00
Nathan Froyd
ec839c62b4 Bug 918651 - part 8 - remove redundant includes from IPDL files; r=ehsan
These include statements have been made redundant by all the qualifications
to the using statements.
2013-10-18 13:34:08 -04:00
Nathan Froyd
ebcc1e1abf Bug 918651 - part 5 - qualify all IPDL using statements with required header; r=ehsan 2013-10-01 15:25:07 -04:00
Jason Duell
a9d6a2e333 Bug 558623 - e10s HTTP: combine PHttpChannel constructor with SendAsyncOpen/SendRedirect1Begin r=jdm
--HG--
rename : netwerk/protocol/http/nsHttp.h => netwerk/protocol/http/HttpLog.h
extra : rebase_source : 80cac843f38f2237c9fd932c428e1c1fda781b50
2013-06-22 09:09:19 -07:00
Patrick McManus
2e232b4bd1 bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
Mike Perry
3c69240762 Bug 765934 - Expose XPCOM API for performing internal redirects. r=honza 2013-01-11 15:46:00 -08:00
Josh Aas
233d967af4 Bug 807678: Don't proliferate NSPR DNS types beyond the host resolver itself. Make it possible to easily hook up other host resolvers. r=sworkman 2012-12-23 16:08:43 -05:00
Ed Morley
1d05c8c189 Backout 744b40b75241 (bug 807678) on suspicion of causing Win debug xpcshell timeouts on a CLOSED TREE 2012-12-14 13:00:19 +00:00
Josh Aas
e4134b8a11 Bug 807678: Don't proliferate NSPR DNS types beyond the host resolver itself. Make it possible to easily hook up other host resolvers. r=sworkman 2012-12-13 09:18:33 -05:00
Brian Smith
5bd1df9e3f Bug 799007: Remove support for low/weak/null cipher suites, r=honzab, r=dao 2012-11-10 20:49:29 -08:00
Brian Smith
a71cf40b82 backout cset b36d5c933092 due to orange 2012-11-10 19:09:07 -08:00
Brian Smith
3c7bd35add Bug 799007: Remove support for low/weak/null cipher suites, r=honzab, r=dao
--HG--
extra : rebase_source : 822ef336a5cdeb7d6693dbe46844a26465600854
2012-11-10 18:18:14 -08:00
Jason Duell
c829bc527d Bug 794597 - mozbrowser doesn't send auth request off a redirect. r=jdm 2012-10-09 16:46:24 -07:00
Josh Matthews
22b97c746b Bug 783878 - Part 2: Allow serializing remote input streams by passing the actor reference over the wire and retrieving the original stream in the parent. r=bent 2012-09-21 13:26:13 -04:00
Makoto Kato
1356f06137 Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza 2012-09-06 11:41:02 +09:00
Ben Turner
7370f46298 Bug 784726 - 'Remove old IPC::URI'. r=cjones+khuey.
--HG--
rename : ipc/glue/IPCSerializableParams.ipdlh => ipc/glue/InputStreamParams.ipdlh
extra : transplant_source : %A6%BC%8B%8D%3A_%7Df%2B%FE%AA%94%81%AB%CAW%15K%A7%03
2012-08-23 12:33:46 -07:00
Ben Turner
8740622e89 Bug 782649 - 'Remove old IPC::InputStream'. r=cjones+khuey. 2012-08-22 19:13:54 -07:00
Ryan VanderMeulen
4369c9acf5 Backout 41a3cdf92063 (bug 782649) for Linux xpcshell failures. 2012-08-22 17:31:06 -04:00
Ben Turner
f17c803d93 Bug 782649 - 'Remove old IPC::InputStream'. r=cjones+khuey. 2012-08-22 12:19:29 -07:00
Ehsan Akhgari
e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Jason Duell
abdbb9d224 Bug 776174 - e10s: cleanup IPC nsILoader code. r=smaug, r=jdm 2012-08-06 21:47:48 -07:00
Jason Duell
f7550579ea Bug 776176 - e10s: propagate GetExtendedOrigin from child to parent process. r=jdm 2012-07-23 11:12:03 -07:00
Jason Duell
9a9096c83f Bug 775861 - e10s: propagate appId and isInBrowserElement from child to parent process r=jdm 2012-07-22 15:35:33 -07:00
Jason Duell
7f7428d402 Bug 775119 - e10s: implement nsILoadContext in ParentChannels, remove PrivateBrowsingConsumer r=jdm 2012-07-22 15:35:33 -07:00
Josh Matthews
30d7146e2c Bug 722845 - Part 1: Add private browsing information to HTTP channels. r=jduell,mayhemer 2012-05-24 16:31:53 +01:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Josh Aas
ce75b841ee Bug 646512 HttpChannelParent::OnStartRequest deep-copies nsHttpHeaderArray. r=jduell 2012-01-19 14:26:43 -08:00
Patrick McManus
aa343b934b bug 528288 - reland spdy after libxul weightloss a=khuey CLOSED TREE 2011-12-13 10:55:50 -05:00
Ed Morley
8d3d1667ec Backout SPDY to keep us under the MSVC virtual address space limit during win PGO builds (bug 709193)
Backs out 952d14a9e508 (bug 707173), c170c678c9ac (bug 708305), 0a5f66d5d8e4 (bug 707662), 3204b70435fe (bug 706236) and the main landing range 48807fde0339:0bd45ead1676 (bug 528288).
2011-12-10 22:36:26 +00:00
Patrick McManus
bba2af65d9 bug 528288 - disallow spdy from http created in nsNSSCallbacks to avoid OSCP/CRL loops with alternate-protocol sr=biesi r=honzab
patch 15
2011-12-02 10:28:57 -05:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Kyle Huey
a4b1332fbc Backout Bug 477578 because it causes us to refcount atoms off the main thread. 2011-09-22 10:43:11 -04:00
Michal Novotny
0086f64ec1 Bug 477578 - uppercase selected HTTP methods (CONNECT, DELETE, GET, HEAD, OPTIONS, POST, PUT, TRACE and TRACK) and make other methods case sensitive 2011-09-12 18:00:15 +02:00
Nick Hurley
c7f6b1cb89 Bug 637339 - Improve error handling in HttpChannelChild. r=honzab 2011-06-11 18:37:03 -07:00
Nick Hurley
bf26c8a98e bug 648878 - move get(local|remote)(address|port) to httpchannelchild r=jduell 2011-05-05 11:45:59 -04:00
Boris Zbarsky
8b85800ca4 Backed out changeset 998b91ea0ffa (bug 648878) because it doesn't build on Windows. 2011-05-03 19:34:58 -04:00
Nick Hurley
22595309e7 bug 648878 - move get(local|remote)(address|port) to httpchannelchild, r=jduell 2011-05-03 17:47:05 -04:00
Jason Duell
0ffe868d6d Bug 561694: Optimize IPDL traffic for necko OnProgress/OnStatus. r=honzab 2011-04-09 20:42:05 -07:00
Dave Townsend
d6e35158cb Backout of changeset 38d1b321c98b from bug 579846. a=bustage 2011-01-24 14:58:20 -08:00