Commit Graph
42 Commits
Author SHA1 Message Date
Julian Descottes 0a5f0d1bda Bug 1903060 - Expose an observer notification when a data channel is created in the content process r=necko-reviewers,webdriver-reviewers,Sasha,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D216165
2024-07-23 14:14:37 +00:00
Julian Descottes fe8cf8bfd9 Bug 1903212 - [necko] Expose a nsIDataChannel interface to JS r=necko-reviewers,kershaw
This interface does not expose any additional API but allows to easily check if a channel is a data channel from privileged JS.

Differential Revision: https://phabricator.services.mozilla.com/D214077
2024-06-18 18:02:56 +00:00
Thomas Wisniewski 70221d18ca Bug 1847358 part 3: add a fullMimeType attribute to nsIBaseChannel and use it to make our Data URI content-type header parsing standards-compliant for XHR and Fetch; r=dlrobertson,necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D203380
2024-03-04 21:34:27 +00:00
dylan c4dd294c99 Bug 1870293 - added an observer notification to nsDataChannel. r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D196696
2023-12-20 15:36:42 +00:00
Thomas Wisniewski 489aea0550 Bug 1845006 - store the fully-serialized MimeType on data url channels so XHR and fetch may use it for content-type response headers, and clean up the data url parsing code to better match the spec. r=kershaw,sunil,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184713
2023-08-02 23:41:24 +00:00
Narcis Beleuzu 701fed4368 Backed out changeset f96e24bbd71c (bug 1845006) for bustages on nsDataHandler.cpp 2023-08-02 22:39:40 +03:00
Thomas Wisniewski 453464c0ca Bug 1845006 - store the fully-serialized MimeType on data url channels so XHR and fetch may use it for content-type response headers, and clean up the data url parsing code to better match the spec. r=kershaw,sunil,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184713
2023-08-02 16:33:41 +00:00
Cristina Horotan 8c78774d7d Backed out changeset 8d98996f824c (bug 1845006) for causing build bustage at FetchDriver.cpp CLOSED TREE 2023-08-02 17:22:58 +03:00
Thomas Wisniewski 4faa886152 Bug 1845006 - store the fully-serialized MimeType on data url channels so XHR and fetch may use it for content-type response headers, and clean up the data url parsing code to better match the spec. r=kershaw,sunil,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184713
2023-08-02 13:39:48 +00:00
Honza Bambas 8cd3f53192 Bug 1513470 - Block redirect content from being shown when target data URL is broken, r=dragana 2018-12-12 11:10:00 +02:00
Tooru Fujisawa 5ef6d9cc06 Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Sylvestre Ledru e5a134f73a Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Eric Rahm 5de1290a69 Bug 1435899 - Use nsStringStream for the data channel buffer. r=bz
A pipe is no longer used for the input stream, instead we use a string stream
which in most cases will be able to share the string data buffer rather than
copying it.
2018-02-02 12:42:55 -08:00
Valentin Gosu 7621447682 Bug 1476928 - Remove nsIURI.CloneIgnoringRef and nsIURI.CloneWithNewRef r=JuniorHsu
The patch introduces NS_GetURIWithNewRef and NS_GetURIWithNewRef which perform the same function.

Differential Revision: https://phabricator.services.mozilla.com/D2239
2018-07-23 11:28:47 +00:00
Andrea Marchesini c8b49ba5dd Bug 1446933 - Remove 'using namespace mozilla::net' from BackgroundUtils.h, r=qdot 2018-05-30 21:21:17 +02:00
Andi-Bogdan Postelnicu 99cba2dd23 Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin
MozReview-Commit-ID: 666LNaHyiuQ
2018-04-30 19:46:04 +03:00
Eric Rahm 066aeeba44 Bug 1333899 - Part 3: Avoid extra copies in nsDataChannel::OpenContentStream. r=bz
This switches over to cloning the URI without it's ref which will most likely
avoid a copy. The new |ParsePathWithoutRef| is used, again to avoid needing a
copy of the path substring.
2018-02-02 12:59:38 -08:00
Sylvestre Ledru 9d4a84d778 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Nicholas Nethercote 0b067811a6 Bug 1262359 (part 5) - Add a missing rv check for call to nsDataHandler::ParseURI(). r=jduell. 2016-04-06 17:23:56 +10:00
Nicholas Nethercote 315a2b1990 Bug 1262359 (part 2) - Make the filling in of two parameters optional in nsDataHandler::ParseURI(). r=jduell. 2016-04-06 17:19:14 +10:00
Nicholas Nethercote 938e5f9ac0 Bug 1262359 (part 1) - Remove unused |hashRef| parameter from nsDataHandler::ParseURI(). r=jduell. 2016-04-06 17:18:45 +10:00
Nathan Froyd 023e3d5c3f Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan 2015-03-31 10:03:49 -04:00
Ehsan Akhgari deb5a6a21b Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
Trevor Saunders c81e3dd3ea reland the part of bug 801466 backed out in 02a65951d77d since it wasn't at fault 2012-12-10 03:19:02 -05:00
Trevor Saunders 5bf9f2e569 partially backout c0715c079f1e bug 801466 part 4 to se if it fixes top crashes 2012-12-08 05:50:11 -05:00
Trevor Saunders 92656ec226 bug 801466 - remove some usage of prmem in intl/ and network/ r=jduell 2012-12-04 18:04:39 -05:00
Ed Morley 0966cd9dbc Backout 3d411a8554e0 (bug 801466) for build failures 2012-12-04 23:34:40 +00:00
Trevor Saunders 4202aca18e [PATCH] bug 801466 - remove some usage of prmem in intl/ and
From 9dadb8c05ecddfe60c415c1ff62627e998148c77 Mon Sep 17 00:00:00 2001
 network/ r=jduell
---
 intl/strres/src/nsStringBundle.cpp         |    2 --
 intl/uconv/src/nsConverterInputStream.cpp  |    8 +++---
 intl/uconv/src/nsConverterInputStream.h    |    6 +++--
 netwerk/base/public/nsReadLine.h           |   38 +++-------------------------
 netwerk/base/src/nsFileStreams.cpp         |    9 +++----
 netwerk/base/src/nsFileStreams.h           |    3 ++-
 netwerk/base/src/nsSerializationHelper.cpp |   31 +++++------------------
 netwerk/base/src/nsSocketTransport2.cpp    |    1 -
 netwerk/cache/nsCacheMetaData.cpp          |    3 +--
 netwerk/cache/nsCacheMetaData.h            |    3 ++-
 netwerk/protocol/data/nsDataChannel.cpp    |   24 +++++++-----------
 11 files changed, 36 insertions(+), 92 deletions(-)
2012-12-04 18:04:39 -05:00
Nick Hurley 0f1168cbdd Bug 536324 part 3 - Change consumers of nsIChannel. r=sworkman 2012-10-22 10:51:07 -07:00
Isaac Aggrey 990e90e88a Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Randell Jesup 3b4961b603 Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari 243c878d26 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
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ehsan Akhgari 478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu 0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Daniel Holbert 50cee70ab5 Bug 658949 patch 1: Teach nsDataHandler::ParseURI about #ref, and transfer 'isRefValid' flag in nsSimpleURI::Clone. r=bz 2011-05-24 17:40:10 +02:00
Mounir Lamouri 6f7e1c9944 Back out bug 658949 because of perma orange on Windows Reftests. 2011-05-24 15:36:32 +02:00
Daniel Holbert 1567ca4491 Bug 658949 patch 1: Teach nsDataHandler::ParseURI about #ref, and transfer 'isRefValid' flag in nsSimpleURI::Clone. r=bz 2011-05-24 03:37:54 -07:00
Dan Witte 30593559ea Back out Bug 536324 part 3. 2010-08-30 13:20:39 -07:00
Dan Witte 282953ea05 Bug 536324 - e10s HTTP: refactor nsHashPropertyBag. Part 3: contentLength consumers. r=jduell, a=beta5+ 2010-08-21 00:31:35 -07:00
Mitchell Field bc63774d7e Bug 542222 - Reduce recursion in netwerk makefiles. 2010-06-05 21:18:12 -04:00