Commit Graph

119 Commits

Author SHA1 Message Date
Honza Bambas
4c4b8503c1 Bug 1320999 - Avoid double NTLM proxy auth prompt by not keeping nsHttpChannelAuthProvider::mProxyIdent when the sticky connection is threw away during NTLM WWW authentication prompt, r=jduell 2016-11-29 10:44:00 +01:00
Honza Bambas
775c6d17ce Bug 1315332 - Don't reuse the connection for conn-based auth schemes when asking user for credentials. r=mcmanus 2016-11-15 11:00:00 -05:00
Honza Bambas
c64aa7d6bd Bug 1309438 - Don't reuse sticky connection after authentication failure. r=jduell 2016-11-25 03:33:00 -05:00
Sebastian Hengst
ba8c4c8fda Backed out changeset 132bb5e7c5b8 (bug 1315332) for bustage. r=backout 2016-11-27 22:02:43 +01:00
Honza Bambas
17299fde33 Bug 1315332 - Don't reuse the connection for conn-based auth schemes when asking user for credentials, r=mcmanus 2016-11-27 21:24:43 +01:00
Honza Bambas
c4413a2fa8 Bug 1312695 - Let authprompt level reflect proxy security and not origin server security. r=mcmanus 2016-10-25 04:32:00 -04:00
Jan Horak
5089c65707 Bug 1277213 - Reset state after cancel. r=mayhemer 2016-07-28 10:09:32 -04:00
Jan Horak
a56656388f Bug 890908 - Move Negotiate auth off main thread. r=mayhemer 2016-07-14 03:32:00 -04:00
Dragana Damjanovic
6e72a11bb8 Bug 1230462 - Change the authentiation dialog message. r=mayhemer,dolske,margaret,tanvi 2016-06-06 01:06:00 +02:00
Carsten "Tomcat" Book
529f945807 Backed out changeset 490d3460a197 (bug 1230462) for test failures in test_modal_prompts.html 2016-06-05 11:26:57 +02:00
Dragana Damjanovic
570b31b4cc Bug 1230462 - Change the authentiation dialog message. r=mayhemer,dolske,margaret,tanvi 2016-06-03 09:09:00 +02:00
Carsten "Tomcat" Book
bc3f5ce221 Backed out changeset 1fe1c3b03d08 (bug 890908) on developer request 2016-06-03 05:51:06 +02:00
Jan Horak
74d18066d6 Bug 890908 - "Move Negotiate auth off main thread". r=mayhemer 2016-05-20 06:07:00 +02:00
Carsten "Tomcat" Book
32b42c0b0a Backed out changeset e3f130f1eb76 (bug 890908) for suspicion that something in this push caused failing Crashtests and Android/Valgrind issues on a CLOSED TREE 2016-05-23 11:37:57 +02:00
Jan Horak
a62f07ac7c Bug 890908 - "Move Negotiate auth off main thread". r=mayhemer 2016-05-20 06:07:00 +02:00
Adam Roach [:abr]
9d8e583d68 Bug 1266571 - Add telemetry to measure incidence of non-TLS use of HTTP AUTH. r=mayhemer 2016-04-30 17:58:34 -05:00
Andrea Marchesini
690ff75c6d Bug 1241565 - nsIHttpChannelInternal should be a builtinclass, r=honzab.moz 2016-01-22 11:55:54 +00:00
Andrea Marchesini
690125fc21 Bug 1221320 - XMLHttpRequest authentication should not require auth prompt dialog, r=honzab.moz 2015-12-30 18:47:55 +00:00
Honza Bambas
47f2c8795e Bug 1064378 - Don't rewrite custom Authorization header set on a channel by cached credential. r=jduell 2016-01-21 09:33:00 -05:00
Yoshi Huang
47c69d1edb Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
Honza Bambas
42f7805c8f Bug 1213577 - Use OriginAttributes in nsHttpAuthManager, r=mcmanus 2015-10-29 10:43:00 +01:00
Jonas Sicking
bb0dc3507b Bug 1182571: Fix nsILoadInfo->GetContentPolicyType API to be less ambigious. Audit and fix all users of it. r=ckerschb 2015-10-19 11:14:54 -07: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
Wes Kocher
4f2d5be924 Backed out 2 changesets (bug 1182571) for being a likely cause of the Android S4 errors
Backed out changeset e2b3064dcace (bug 1182571)
Backed out changeset 8153ae231d16 (bug 1182571)
2015-10-15 14:07:06 -07:00
Jonas Sicking
d5e39db15b Bug 1182571: Fix nsILoadInfo->GetContentPolicyType API to be less ambigious. Audit and fix all users of it. r=ckerschb 2015-10-15 12:18:20 -07:00
9035d111ab Bug 1202421 - Rename the network.auth.allow-subresource-auth pref. r=michal 2015-09-08 08:21:19 -07:00
Dragana Damjanovic
d373c2aacb Bug 979359 - Add telemetry to to collect stats about how often Http Authentication occurs and how often it is for top-level doc, cross-origin, etc. r=jduell 2015-08-27 07:50:00 -04:00
Birunthan Mohanathas
a29151dc87 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
Emanuel Hoogeveen
b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Dragana Damjanovic
6b693dc9f7 Bug 647010 - Limit when HTTP authentication dialog is shown. Block cross-origin http auth prompts with pref. r=mayhemer, r=tanvi 2015-04-01 06:56:00 -04:00
Birunthan Mohanathas
eeb9aaaa94 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Daniel Stenberg
cc1ab82660 Bug 676358 - HTTP auth realm parameter parsed as quoted-string doesn't get unescaped r=jduell 2014-01-24 15:07:37 -08:00
Patrick McManus
d93b7ba831 bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
Ehsan Akhgari
68bfe70f09 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ehsan Akhgari
deb5a6a21b Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
Patrick McManus
dfdc63bf95 bug 897503 - part 2 use smart pointers for nsHttpHandler references r=sworkman 2013-08-13 15:36:58 -04:00
Nicholas Nethercote
f7d6f07d24 Bug 898914 (part 1) - Remove JSBool. 2013-08-08 15:53:04 -07:00
Jason Duell
1c8005d335 Bug 558623 - Split out HTTP LOG macro definition from nsHttp.h r=jdm 2013-06-22 09:01:06 -07:00
Patrick McManus
6343782b40 bug 871289 [1 of 2] standardize netwerk/protocol/http on moz_assert r=jduell 2013-05-16 09:30:41 -04:00
Patrick McManus
197ae4fce5 bug 804605 - backout 766973 767158 785050 r=backout a=akeybl 2013-01-22 11:59:01 -05:00
Chris Peterson
c6ea259f45 Bug 829344 - Part 4: Fix gcc -Wlogical-op warnings from PRBool/bool conversion. r=ehsan 2013-01-10 17:56:51 -08:00
Ehsan Akhgari
486ddcd1fd Backed out changeset 66a7359f9be2 (bug 791546) because it broke the build 2013-01-03 18:36:16 -05:00
Shriram Kunchanapalli
ff3af78fae Bug 791546: Removes nsCRT::strcmp(const PRUnichar* s) from nsCRT.h and replaces it occurrences with NS_strcmp; r=bsmedberg 2012-12-24 08:47:18 +05:30
Josh Matthews
3c2753816d Bug 814247 - Add auth cache jars for separate apps. r=mayhemer 2012-12-05 02:33:20 -05:00
Ed Morley
859dd33a28 Backout 3bcd9a5a33a2 (bug 814247), d9546d42054c & 8b6edf9f6b87 (bug 814638) for failures in test_bug814638.xul and also crashes on a CLOSED TREE 2012-12-19 23:46:07 +00:00
Josh Matthews
2d88328b90 Bug 814247 - Add auth cache jars for separate apps. r=mayhemer,bsmedberg 2012-12-05 02:33:20 -05:00
Ed Morley
40b70b540e Backout 4faa85ebbbf7 (bug 814247) for build bustage on a CLOSED TREE 2012-12-19 20:20:30 +00:00
Josh Matthews
8ed0e9a74d Bug 814247 - Add auth cache jars for separate apps. r=mayhemer,bsmedberg 2012-12-05 02:33:20 -05:00
Josh Matthews
c5acc3845e Bug 769283 - Add a separate HTTP auth cache for private channels. r=mayhemer 2012-10-29 16:20:03 -04:00
Honza Bambas
bb88ec7ce9 Bug 654348 - Make XMLHttpRequest prefer explicit credentials (in the URL) over cached credentials, r=cbiesinger 2012-10-24 16:05:13 +02:00