Граф коммитов

5308 Коммитов

Автор SHA1 Сообщение Дата
J.C. Jones 9ade50e63c Bug 1245527 - Remove NSS U2F SoftToken. r=ttaubert, r=jed
The nsIU2FToken and its implementors are no longer needed; the soft token was
re-implemented into dom/webauthn/U2FSoftTokenManager.cpp during the WebAuthn
implementation. When the dom/u2f/ code changed to the implementation from
WebAuthn, the old synchronous version became dead code.

This patch removes the dead code.

MozReview-Commit-ID: 2yDD0tccgZr

--HG--
extra : transplant_source : %B3%96Te%E7%02%08%98%1A%B2%FA%1C%40%C4J%BC%B2%85j%81
2017-09-05 12:32:42 -07:00
J.C. Jones 50501cbead Bug 1245527 - Rewrite U2F.cpp to use U2FTokenManager. r=keeler, r=ttaubert
- This patch reworks the U2F module to asynchronously call U2FManager,
  which in turn handles constructing and managing the U2FTokenManager
  via IPC.
- Add U2FTransaction{Parent,Child} implementations to mirror similar ones for
  WebAuthn
- Rewrite all tests to compensate for U2F executing asynchronously now.
  - Used async tasks, used the manifest parameters for prefs and scheme,
    and generally made these cleaner.

NOTE TO REVIEWERS:
 Since this is huge, I recommend the following:

 keeler - please review U2F.cpp/h, the tests, and the security-prefs.js. Most
          of the U2F logic is still in U2F.cpp like before, but there's been
          some reworking of how it is called.

 ttaubert - please review U2FManager, the Transaction classes, build changes,
            and the changes to nsGlobalWindow. All of these should be very
            similar to the WebAuthn code it's patterned off.


MozReview-Commit-ID: C1ZN2ch66Rm

--HG--
extra : transplant_source : %EA%98%D2%87C%FD%CC%A5%3D%B5%9B%1C%DA%A5J%CD%05%94%13%0D
2017-09-05 12:32:42 -07:00
Honza Bambas 43860c7a61 Bug 910207 - Prevent client certificate pop-up coming from a speculative connection, r=dkeeler
MozReview-Commit-ID: IHKzHwsJUiQ
2017-09-01 10:42:00 +02:00
ffxbld d29c832536 No bug, Automated HPKP preload list update from host bld-linux64-spot-309 - a=hpkp-update 2017-09-08 10:17:35 -07:00
ffxbld df6782f918 No bug, Automated HSTS preload list update from host bld-linux64-spot-309 - a=hsts-update 2017-09-08 10:17:31 -07:00
Andrew Halberstadt 7527e600f0 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : b78cbf7913fc1b0a27dfa085c38957e2bc2467d0
2017-08-22 16:56:02 -04:00
Sebastian Hengst 5d9781d9f8 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6Nq2hl5g0a5
2017-09-07 23:50:27 +02:00
ffxbld 44c6939142 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-09-07 10:13:01 -07:00
ffxbld e280855418 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-09-07 10:12:58 -07:00
David Keeler a42d5a4889 bug 1397471 - nsNSSCertificateDB::GetCerts needs to wait until the loadable roots have been loaded r=Cykesiopka
This was missed in the original implementation of bug 1372656.

MozReview-Commit-ID: 8Sm26YlxZ7l

--HG--
extra : rebase_source : 6613fea8b292cc1645073539e110a53369c78886
2017-09-06 14:29:17 -07:00
ffxbld 67f38de244 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-09-06 10:37:57 -07:00
ffxbld ae7a4f2407 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-09-06 10:37:54 -07:00
David Keeler 5938a7bd62 bug 1393143 - remove a few unused attributes and methods on PKCS#11 interfaces r=Cykesiopka
MozReview-Commit-ID: FKO6G6ZKjAZ

--HG--
extra : rebase_source : 265ca140aa62ebf0694849d44d3d7574c0496309
2017-08-17 16:11:57 -07:00
Sebastian Hengst 4d2231acf0 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 23:58:08 +02:00
ffxbld 4d8e389498 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-09-05 10:36:00 -07:00
ffxbld 1fe438ee01 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-09-05 10:35:56 -07:00
Sebastian Hengst a17af05f6f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
ffxbld f2a1911ad3 No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-09-04 10:22:51 -07:00
ffxbld 2c66811b63 No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-09-04 10:22:48 -07:00
David Keeler 179d6cf432 bug 1396137 - update broken fips pkcs#11 module db handling code for when we use the sqlite-backed databses r=jcj
This handles the different error code returned by NSS and that the pkcs#11
module db has a different filename.

MozReview-Commit-ID: HJK4zsf6IS0

--HG--
extra : rebase_source : eec55c21861137d83b2f1cc5a9a654b9c47dc42f
2017-09-01 15:54:40 -07:00
ffxbld 999385a5e8 No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-09-03 10:37:46 -07:00
ffxbld 58548e3fc5 No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-09-03 10:37:42 -07:00
Franziskus Kiefer c8e80e7425 Bug 1396463 - add ssl_sig_rsa_pkcs1_sha1md5 case to getSignatureName, r=bustage
MozReview-Commit-ID: 1SxJjt41NOj
2017-09-04 15:24:03 +02:00
Sebastian Hengst a4afd66862 Backed out changeset 2b0d4df90489 (bug 1396137) for build bustage, at least on Android at security/manager/ssl/nsNSSComponent.cpp:1915: 'savedPRErrorCode1' was not declared in this scope etc. r=backout on a CLOSED TREE 2017-09-05 19:08:12 +02:00
David Keeler a65554ff32 bug 1396137 - update broken fips pkcs#11 module db handling code for when we use the sqlite-backed databses r=jcj
This handles the different error code returned by NSS and that the pkcs#11
module db has a different filename.

MozReview-Commit-ID: HJK4zsf6IS0

--HG--
extra : rebase_source : ac73b91cc1c3336c493d448ee5a54a50cc74fab3
2017-09-01 15:54:40 -07:00
ffxbld e377ab3c1a No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-09-02 10:25:38 -07:00
ffxbld 90e3618163 No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-09-02 10:25:35 -07:00
ffxbld 5aab2615c9 No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-09-01 10:19:33 -07:00
ffxbld caa62fadaa No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-09-01 10:19:29 -07:00
Wes Kocher e9c837e8b6 Merge inbound to central, a=merge
MozReview-Commit-ID: FBt5lm2sDFe
2017-08-31 16:26:40 -07:00
ffxbld 3cb0f28c74 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-08-31 10:27:40 -07:00
ffxbld c8ab0fae8f No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-08-31 10:27:36 -07:00
Franziskus Kiefer 6aa0aa4140 Bug 1304923 - adding key exchange group and signature scheme details to devtools view, r=keeler, Honza
This patch adds the group used for TLS key exchange and the siganture scheme of the certificate to SSLStatus and displays it in devtools.

MozReview-Commit-ID: 7aTj0U5GIvo

--HG--
extra : rebase_source : 7afe39dcf2a13d9ca9e35e45c333a1bcba424729
2017-08-28 15:29:19 +02:00
Sajjad Arshad f9ecfce269 Bug 1391506 - Creating max version, fallback limit, and alt server hello flag values for the tlsFlags r=keeler
Additional-Author: Patrick McManus <mcmanus@ducksong.com>

MozReview-Commit-ID: AmsvDtvDGPt

--HG--
extra : rebase_source : fc537ef1a50db23b9e77cd48d3941d7e32228bec
2017-08-29 09:04:08 -04:00
Sebastian Hengst 558aede67b merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-08-29 20:36:12 +02:00
ffxbld 51b3d67a5e No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-08-29 10:26:53 -07:00
ffxbld 43dc7fc074 No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-08-29 10:26:49 -07:00
Honza Bambas 5b733e5887 Bug 705755 - Handle SSL short-write correctly to save CPU looping. r=keeler
--HG--
extra : rebase_source : 9a8a68da1f60340c3565ef614bf95177111ed2f3
2017-08-29 09:34:00 -04:00
ffxbld cd82cacec2 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-08-28 10:24:57 -07:00
ffxbld 118d3feddb No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-08-28 10:24:53 -07:00
ffxbld 18c16ebf81 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-08-27 10:15:50 -07:00
ffxbld d4ecdb7fe4 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-08-27 10:15:46 -07:00
Ryan VanderMeulen 89e125b817 Backed out changeset 121e4d470c11 (bug 1391703) for breaking periodic HSTS/HPKP updates. 2017-08-25 10:16:27 -04:00
Wes Kocher 4ea67d0e07 Backed out changeset e774700fe070 (bug 1392787) for build bustage a=backout CLOSED TREE
MozReview-Commit-ID: FRRUDa6rIuS
2017-08-24 13:58:52 -07:00
Andrew Halberstadt cae249f833 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : d907a5b2192687d86e3291a936c943948ed6793f
2017-08-22 16:56:02 -04:00
David Keeler d11da41c16 bug 1389664 - centralize on-demand empty pin initialization of the user's NSS database r=Cykesiopka,jcj
The sqlite-backed NSS database implementation requires explicitly setting some
kind of pin (password, really). To maintain behavior compatibility with the old
database implementation, we set the pin to the empty string as necessary.
Previously this would only happen on Android (NSS_DISABLE_DBM builds), but
because we're moving towards using the sqlite-backed implementation on all
platforms, we should enable this code everywhere and move it to a more central
location.

This also fixes some now-unnecessary test behavior.

MozReview-Commit-ID: KKtxmvOZt78

--HG--
extra : rebase_source : 0de061928bf63b62386a4e244b326610d32cd122
2017-07-18 15:05:58 -07:00
Wes Kocher fb8abb94c7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07:00
Wes Kocher bc3395b5c6 Merge autoland to central, a=merge
MozReview-Commit-ID: BBXcBGQQdeo
2017-08-23 16:06:56 -07:00
ffxbld d0bae45c35 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-08-23 10:20:57 -07:00
ffxbld 0afa0876cf No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-08-23 10:20:54 -07:00
Sebastian Hengst 99e5cb9c14 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSKVB94r7Kk
2017-08-23 16:29:51 +02:00
Nicholas Nethercote f582d96b98 Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
This is straightforward, with only two notable things.

- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
  throughout, because all nsXPIDLString.h did was include nsString.h. The
  exception is for files which already include nsString.h, in which case the
  patch just removes the nsXPIDLString.h inclusion.

- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
  cover some of its ground, e.g. testing Adopt(nullptr).

--HG--
extra : rebase_source : 452cc4a08046a1adb1a8099a7e85a1917de5add8
2017-08-17 15:29:03 +10:00
Eric Rahm a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
David Major 406287685a Bug 1391420: Set NO_PGO on a bunch of binaries that we don't ship. r=ted 2017-08-23 15:05:40 -04:00
Sebastian Hengst 142b3bf28b Backed out changeset 109e89a7d561 (bug 1391420) for busting Linux pgo builds. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 6a4421254e4de31071785b73abdd1186638e31f2
2017-08-23 18:12:46 +02:00
David Major 8cb2cb650a Bug 1391420: Set NO_PGO on a bunch of binaries that we don't ship. r=ted 2017-08-23 11:10:39 -04:00
Mark Banner a53020d022 Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop
MozReview-Commit-ID: 35MaseieNUk

--HG--
extra : rebase_source : 98eaec6a67fd3b30ea6b0be641f26c3911012fab
2017-08-20 18:52:05 +01:00
Wes Kocher 655a23a70a Merge m-c to autoland, a=merge
MozReview-Commit-ID: CxIXNml1xZW
2017-08-22 17:24:16 -07:00
ffxbld a5363edfb5 No bug, Automated HPKP preload list update from host bld-linux64-spot-305 - a=hpkp-update 2017-08-22 10:07:25 -07:00
ffxbld 3d0753d911 No bug, Automated HSTS preload list update from host bld-linux64-spot-305 - a=hsts-update 2017-08-22 10:07:21 -07:00
Wes Kocher 168eaceb20 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IHPBV4z9vPi
2017-08-22 17:14:32 -07:00
Nicholas Nethercote 092af8e0a1 Bug 1390428 (part 5) - Remove more nsXPIDLCString uses. r=erahm.
These are all simple cases, with similarities to previous patches in this
series.

--HG--
extra : rebase_source : 6ef36382df9fef217d5cb737e218d65ac062f90a
2017-08-16 14:07:18 +10:00
Cykesiopka 8d84ab1d10 Bug 1391703 - Introduce common JSM for security/manager/tools/ scripts. r=keeler
PSM has various xpcshell scripts under the security/manager/tools/ folder. At
the moment, these scripts:
  1. Duplicate code.
  2. Aren't testable.

This patch introduces a common, unit tested JSM that these scripts can use.

MozReview-Commit-ID: 5NKRUeJgG8f

--HG--
extra : rebase_source : 5cfdf7fb72f3c0880bcaaf2060c7fcc6645f296a
2017-08-23 14:46:37 +08:00
David Keeler 542dc08306 bug 1391404 - fold nsIPKCS11 into nsIPKCS11ModuleDB r=Cykesiopka
This also moves the implementation of nsIPKCS11ModuleDB into its own file.

MozReview-Commit-ID: LYXixzbx3Ia

--HG--
rename : security/manager/ssl/PKCS11.cpp => security/manager/ssl/PKCS11ModuleDB.cpp
rename : security/manager/ssl/PKCS11.h => security/manager/ssl/PKCS11ModuleDB.h
extra : rebase_source : 4df9260809590c8d15432ab4b48d4ca370e7c3a7
2017-08-16 17:06:59 -07:00
ffxbld 48ea452803 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-08-21 10:16:06 -07:00
ffxbld e66765550e No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-08-21 10:16:02 -07:00
Franziskus Kiefer 018c7a6e79 Bug 1397833 - don't assert on custom TLS key-exchange groups, r=keeler
MozReview-Commit-ID: 8oztPlzw3PB

--HG--
extra : rebase_source : f7f54d7d59baa3a3b1eed5a207f93b799d80da5e
2017-09-08 11:53:11 +02:00
J.C. Jones 554acaea86 Bug 1245527 - Remove NSS U2F SoftToken. r=ttaubert, r=jed
The nsIU2FToken and its implementors are no longer needed; the soft token was
re-implemented into dom/webauthn/U2FSoftTokenManager.cpp during the WebAuthn
implementation. When the dom/u2f/ code changed to the implementation from
WebAuthn, the old synchronous version became dead code.

This patch removes the dead code.

MozReview-Commit-ID: 2yDD0tccgZr

--HG--
extra : rebase_source : 0f14d8de8f62599a41c13aa4d8fc9cdbc1fd79c7
2017-09-05 12:32:42 -07:00
J.C. Jones 2afc1ad18b Bug 1245527 - Rewrite U2F.cpp to use U2FTokenManager. r=keeler, r=ttaubert
- This patch reworks the U2F module to asynchronously call U2FManager,
  which in turn handles constructing and managing the U2FTokenManager
  via IPC.
- Add U2FTransaction{Parent,Child} implementations to mirror similar ones for
  WebAuthn
- Rewrite all tests to compensate for U2F executing asynchronously now.
  - Used async tasks, used the manifest parameters for scheme, and generally
    made these cleaner.
- The mochitest "pref =" functionality from Bug 1328830 doesn't support Android
  yet, causing breakage on Android. Rework the tests to go back to the old way
  of using iframes to test U2F.


NOTE TO REVIEWERS:
 Since this is huge, I recommend the following:

 keeler - please review U2F.cpp/h, the tests, and the security-prefs.js. Most
          of the U2F logic is still in U2F.cpp like before, but there's been
          some reworking of how it is called.

 ttaubert - please review U2FManager, the Transaction classes, build changes,
            and the changes to nsGlobalWindow. All of these should be very
            similar to the WebAuthn code it's patterned off.


MozReview-Commit-ID: C1ZN2ch66Rm

--HG--
extra : rebase_source : 5a2c52b0340c13f471af5040b998eb7e661b1981
2017-09-11 12:56:59 -07:00
Chris Manchester fab07bc443 Bug 1386876 - Replace all uses of NO_VISIBILITY_FLAGS with a template and remove NO_VISIBILITY_FLAGS. r=glandium
MozReview-Commit-ID: 194U1WMCAM0

--HG--
extra : rebase_source : 365b68b0a1772d238ae9b84966e53dcd1197fd85
2017-05-01 18:12:35 -07:00
ffxbld b258e6864e No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-08-20 10:09:42 -07:00
ffxbld 2e52859c9d No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-08-20 10:09:39 -07:00
ffxbld 7d43c93d35 No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-08-19 10:10:48 -07:00
ffxbld 22960f90f0 No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-08-19 10:10:45 -07:00
Wes Kocher b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Wes Kocher 5fa2384aeb Merge autoland to central, a=merge
MozReview-Commit-ID: IhZjTRz0dA5
2017-08-18 13:10:54 -07:00
ffxbld 5327d60f27 No bug, Automated HPKP preload list update from host bld-linux64-spot-309 - a=hpkp-update 2017-08-18 10:33:38 -07:00
ffxbld 5e356769cf No bug, Automated HSTS preload list update from host bld-linux64-spot-309 - a=hsts-update 2017-08-18 10:33:34 -07:00
Sebastian Hengst 153fae058e merge mozilla-central to mozilla-inbound. r=merge a=backout on a CLOSED TREE 2017-08-17 19:34:04 +02:00
ffxbld 04391741c9 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-08-17 10:13:33 -07:00
ffxbld a012130123 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-08-17 10:13:29 -07:00
Nicholas Nethercote 025461bde7 Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm.
These are all easy cases where an nsXPIDLCString local variable is set via
getter_Copies() and then is only used in ways that nsCStrings can also be used
(i.e. no null checks or implicit conversions to |char*|).

In every case the patch trivially replaces the nsXPIDLCString with an
nsCString. (Also, there are a couple of unused nsXPIDLCString variables that
the patch simply removes.)
2017-08-16 13:58:35 +10:00
Wes Kocher 9aa04a95f3 Merge autoland to central, a=merge
MozReview-Commit-ID: Fv1T41t9Gof
2017-08-16 15:30:39 -07:00
ffxbld 5ce320a16f No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-08-16 10:10:45 -07:00
ffxbld 8b97f39049 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-08-16 10:10:42 -07:00
Nicholas Nethercote a83fefd956 Bug 1390036 (part 1) - Remove most remaining uses of nsXPIDLString. r=erahm.
CompareCacheHashEntry::mCrit[] is the only case where the nsXPIDLString-ness
was important. The patch adds an explicit SetIsVoid() call to that class's
constructor and changes some null checks to IsVoid() checks.

--HG--
extra : rebase_source : e68befcde4dd098bac2a550bc666eaf3bf1298d7
2017-08-11 18:31:22 +10:00
ffxbld 13148faaa9 No bug, Automated HPKP preload list update from host bld-linux64-spot-309 - a=hpkp-update 2017-08-15 10:02:09 -07:00
ffxbld e0eb15e049 No bug, Automated HSTS preload list update from host bld-linux64-spot-309 - a=hsts-update 2017-08-15 10:02:05 -07:00
Wes Kocher cb3e58d017 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ENNd2QVktmQ
2017-08-16 17:07:52 -07:00
Sajjad Arshad 404facfbbc Bug 1388925 - Add an opaque flags to have a fine-grained control over TLS configurations. r=mcmanus, r=keeler
This flags is added in the http channel interface by which developers can control the TLS
connections from JavaScript code (e.g. Add-ons). Basically, all the changes accounted for
plumbing this TLS flags from JavaScript level to C++ code responsible for calling NSS
module. We also added a unit test to make sure that separate connections are created if we
use different tlsFlags. Basically we used a concrete set of flag values that covers the
edge cases and check the hashkey generated in the connection info.

--HG--
rename : netwerk/test/unit/test_separate_connections.js => netwerk/test/unit/test_tls_flags_separate_connections.js
2017-08-16 12:41:16 -07:00
Mark Goodwin f798c65a8e Bug 1183008 - Modify test_ocsp_caching.js to use modified thisUpdate rather than sleep. r=keeler
MozReview-Commit-ID: K9JKCkWOO31

--HG--
extra : rebase_source : ea4c2997652695c2fbff35f238690843ed591ca2
2017-08-17 17:36:04 +01:00
Wes Kocher c1383cebf3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KLrOCT1a7El
2017-08-17 16:23:45 -07:00
David Keeler c159b14d02 bug 1390688 - reenable OCSP fetching for DV certificates in Nightly r=jcj
MozReview-Commit-ID: LoN42uSK2UM

--HG--
extra : rebase_source : 946928752ea76718115afa0ca9751d928d2b40d1
2017-08-15 16:11:09 -07:00
ffxbld b77afd2c11 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-08-14 09:59:28 -07:00
ffxbld d0c4829b5f No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-08-14 09:59:24 -07:00
ffxbld 6482c8a5fa No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-08-13 09:49:25 -07:00
ffxbld 6d190703c8 No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-08-13 09:49:22 -07:00
Sebastian Hengst bd7d50ff49 Bug 1382001 - bustage fix after merge. r=merge a=merge
MozReview-Commit-ID: 2Z29PK680wh
2017-08-13 01:19:52 +02:00
Sebastian Hengst 56c035fa36 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4cZJ3qFjvPY
2017-08-12 23:49:21 +02:00
Sebastian Hengst b2605622c5 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BmMg9p7mWJ0
2017-08-12 23:34:39 +02:00
ffxbld c81edf0315 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-08-12 09:55:08 -07:00
ffxbld 1d0ed4dc67 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-08-12 09:55:04 -07:00
ffxbld 33295c6f4d No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-08-11 10:04:30 -07:00
ffxbld 2efc5037da No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-08-11 10:04:27 -07:00
Eric Rahm 37dd2606b7 Bug 1382001 - Part 2: Use a DAFSA for kSTSPreloadList. r=keeler
This switches the STS preload list over to a more compact representation by
using a DAFSA. `getHSTSPreloadList.js` is updated to output data in the gperf
format expected by `make_dafsa.py`. We then add a generated file that gets
created by pumping `nsSTSPreloadList.inc` through `make_dafsa.py`.

`nsSiteSecurityService` is updated to use the DAFSA which either returns -1
(kNotFound) if an entry is not present or (0, 1) indicating whether or not to
use subdomains.

`nsSTSPreloadList.inc` is an automated conversion to the new gperf-like format.
2017-08-11 14:12:04 -07:00
Geoff Brown b4e75f8c50 Bug 1183008 - Disable test_ocsp_caching.js on slow platforms, for ongoing intermittent failures; r=me,test-only 2017-08-11 14:30:27 -06:00
Masatoshi Kimura 5b97708fef Bug 1387800 - Remove [deprecated] nsIFilePicker.show(). r=qdot
MozReview-Commit-ID: 81ZkeYdSPVW

--HG--
extra : rebase_source : 2f30565b8d5986ef6265027562f9842d0db2688e
2017-08-06 13:15:31 +09:00
ffxbld 6aed1d8839 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-08-10 17:59:41 -07:00
ffxbld ef01c1bdc7 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-08-10 17:59:38 -07:00
Ryan VanderMeulen 6eb7aef00e Merge m-c to autoland. a=merge 2017-08-09 18:51:26 -04:00
Cykesiopka eccc7f0dd3 Bug 1388088 - Fix incorrect Cu.import() URL to unbreak HSTS periodic updates. r=keeler
The preload script currently imports XPCOMUtils.jsm like so:
> Cu.import("resource:///modules/XPCOMUtils.jsm");

As explained in Bug 1383215 comments [21, 24], this has been incorrect for
years, but happened to work.

The import URL is changed so it points at the correct thing now:
> Cu.import("resource://gre/modules/XPCOMUtils.jsm");

MozReview-Commit-ID: J6j594sJs60

--HG--
extra : rebase_source : 402808439e5fba8b4909dee9a96f1e44debfa6f0
2017-08-08 00:44:02 +08:00
Cykesiopka a18f826382 Bug 1387853 - Update Google roots in PreloadedHPKPins.json to fix periodic Static HPKP updates. r=keeler
Some entries in the existing list referred to roots that were removed from in
upstream NSS in Bug 1380941 (the equivalent change landed in Firefox's copy of
NSS in Bug 1370890). This broke the periodic HPKP script because it would still
try to find the roots within our built-in roots.

Running dumpGoogleRoots.js and pasting the output into the appropriate section
of PreloadedHPKPins.json fixes this.

MozReview-Commit-ID: Ck6WobCk9gl

--HG--
extra : rebase_source : 676e39c7e447f8e2db2cdb52bacaa57d20088a46
2017-08-08 07:38:23 +08:00
Valentin Gosu 3b95ce67d2 Bug 1380617 - Fix tests that use nsIURI.host expecting unicode domain name r=smaug,honzab
MozReview-Commit-ID: GKnbpc8GMb2
2017-08-09 17:44:06 +02:00
Wes Kocher 223f322400 Merge m-c to autoland a=merge
MozReview-Commit-ID: 2qLtb79Nlhs
2017-08-08 15:26:30 -07:00
Carsten "Tomcat" Book e02df09b7c Merge mozilla-central to mozilla-inbound 2017-08-08 13:23:59 +02:00
Evan Tseng 4697753e00 Bug 1382135 - Remove all colon signs on sub-dialogs because we already removed them all on each category pane and we should make same thing for sub-dialogs. r=jaws
MozReview-Commit-ID: 8md6CFBSM3B

--HG--
extra : rebase_source : 80bff2dec6a20d7710aa3252c3e2fb295286b294
2017-08-01 11:54:54 +08:00
Nicholas Nethercote 1a6f1a62fa Bug 1387381 - Remove nsXPIDLString local variables. r=erahm.
nsXPIDLStrings are marked as VOIDED upon initialization. Most of these local
nsXPIDLString variables are immediately set via getter_Copies(), which will
either assign a string value (using Adopt()) or do SetIsVoid(). These can be
trivially converted to nsString, which will get the same treatment.

The patch suitably converts the remaining nsXPIDLString local variable as well.

--HG--
extra : rebase_source : 5fff9f2c6844559198f601853f8db08564add7d5
2017-08-08 16:07:55 +10:00
David Keeler 8b85837b61 bug 1372656 - load loadable roots on a background thread r=Cykesiopka,jcj
In a profile, loading the loadable roots PKCS#11 module (i.e. the built-in root
CA module) accounted for about 60% of the time to initialize PSM/NSS. Since we
only need the roots module loaded when we're actually looking for an issuing
certificate or querying a certificate's trust, we can do the load
asynchronously (where it hopefully finishes before we actually need it, because
otherwise we'll have to wait anyway).

MozReview-Commit-ID: JyY6NtpQAUj

--HG--
extra : rebase_source : f63a697b18a409dd042289afa2b727b09f81f19f
2017-06-08 16:10:00 -07:00
Carsten "Tomcat" Book a24b9505f9 Merge mozilla-central to autoland 2017-08-07 13:16:54 +02:00
Nicholas Nethercote f941156987 Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.

--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Henry Chang a93f3d2ba4 Bug 1375277 - Move Safe Browsing UI events to a separate telemetry probe. r=francois
MozReview-Commit-ID: KDAklsznekw

--HG--
extra : rebase_source : 20d81369b18b12d9b5f6670d92bf3c7215c8c9a9
extra : intermediate-source : a2d99a6b07bb015f0bdc5c1687e250086ed09a5c
extra : source : 5460dbfebee4f99580b306a9b0ec754b890f5959
2017-08-02 14:01:44 +08:00
Masatoshi Kimura 8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
David Keeler f60f796fb1 bug 1356623 - remove now-unnecessary CNNIC certificate whitelist r=jcj
As a result of CNNIC issuing an unconstrained intermediate certificate that
misissued an end-entity certificate for google.com (see bug 1146026 and
bug 1177209), we implemented a system that would in theory enable Firefox to
continue to trust certificates that were valid at the time but not newly issued
certificates. This consisted of a whitelist added in bug 1151512. The CNNIC
roots have since been removed from NSS in bug 1380868. We can now remove the
whitelist in Firefox.

MozReview-Commit-ID: 7VXOuvwzbct

--HG--
extra : rebase_source : 20e6e39c40417a9b7f2962e06cf9de85e3e08ee8
2017-08-03 16:17:11 -07:00
J.C. Jones da58b95dbc Bug 1386754 - Deprecate 3DES on nightly builds r=dveditz
3DES usage is well below 1% [1]. A recent TLS Canary run with
"security.ssl3.rsa_des_ede3_sha" disabled showed 825 of 500,000 sites being
affected by deprecating 3DES [2]. This starts the deprecation by disabling the
3DES cipher suite preference in nightly builds.

[1] https://mzl.la/2uNt0BP
[2] https://tlscanary.mozilla.org/runs/2017-08-01-17-07-49/

MozReview-Commit-ID: C9cobeOqGLj

--HG--
extra : rebase_source : 07b433efff1b5e3812a0dd54569bbe4198981328
2017-08-02 11:03:39 -07:00
Kate McKinley 906940697c Bug 1385035 - Turn on HSTS priming in EARLY_BETA_OR_EARLIER. r=ckerschb
MozReview-Commit-ID: CnLY4HC3Eb4
2017-07-27 11:51:00 -04:00
Nicholas Nethercote d4f9aa5530 Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj.
--HG--
extra : rebase_source : 6c24fbacb03d4adebe5f22b5e7fc60b069913f20
2017-07-31 14:23:50 +10:00
Nicholas Nethercote 581214bd8b Bug 1384835 (part 1, attempt 2) - Use nsA[C]String references instead of pointers for outparams of Get*String() pref functions. r=froydnj.
--HG--
extra : rebase_source : fe566945a55c281d8290634a5b55bed19415c839
2017-07-31 10:52:51 +10:00
Sebastian Hengst d7527a414d Backed out changeset 07b534f44740 (bug 1384835) for failing xpcshell's security/manager/ssl/tests/unit/test_cert_sha1.js checkCertErrorGenericAtTime on Linux x64 debug. r=backout 2017-07-28 10:30:29 +02:00
Sebastian Hengst 1d708511f0 Backed out changeset 5df4d8778602 (bug 1384835) 2017-07-28 10:29:29 +02:00
Nicholas Nethercote 0574a6b496 Bug 1384835 (part 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj.
Because we want to remove nsAdoptingString. We have other variants that don't
use nsAdoptingString, which can be used instead. There are three basic
patterns.

1. The easiest case is when we don't check for success.

> nsAdoptingString s = Preferences::GetString("foo");
> foo(s);

becomes:

> nsAutoString s;
> Preferences::GetString("foo", s);
> foo(s);

2. The next case is when we check if the result is empty.

> nsAdoptingString s = Preferences::GetString("foo");
> if (s.IsEmpty()) { ... }

becomes:

> nsAutoString s;
> Preferences::GetString("foo", s);
> if (s.IsEmpty()) { ... }

3. The final case is when we null check the result.

> nsAdoptingString s = Preferences::GetString("foo");
> if (s) { ... }

becomes:

> nsAutoString s;
> nsresult rv = Preferences::GetString("foo", s);
> if (NS_SUCCEEDED(rv)) { ... }

The patch also avoids some UTF8/UTF16 conversions in a few places.

--HG--
extra : rebase_source : f339b1a3dda4dc93979d38c30c001fbe77485b55
2017-07-25 20:36:14 +10:00
Nicholas Nethercote f314cbcbe5 Bug 1384835 (part 1) - Use nsA[C]String references instead of pointers for outparams of Get*String() pref functions. r=froydnj.
This is basically a cosmetic change; references are the normal way to do string
outparams.

--HG--
extra : rebase_source : ffc5945f269bdcd3d4116755b56713e87a44b6cd
2017-07-25 19:12:56 +10:00
Julian Seward 408d24da56 Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm.
This patch replaces four functions of the name AssignWithConversion which
are essentially wrappers around CopyASCIItoUTF16 and LossyCopyUTF16toASCII
with direct calls to the latter two functions.  The replaced functions are:

  void nsCString::AssignWithConversion( const nsAString& aData )
  void nsString::AssignWithConversion( const nsACString& aData )

  void nsTString_CharT::AssignWithConversion(
                            const incompatible_char_type* aData,
                            int32_t aLength = -1);

The last of the three exists inside the double-included nsTString* world and
so describes two functions, giving four in total.

This has two advantages:

* it removes code

* at the call points, it makes clear (from the replacement name) which
  conversion is being carried out.  The generic name "AssignWithConversion"
  doesn't make that obvious -- one had to infer it from the types.

The patch also removes two commented out lines from
editor/composer/nsComposerCommands.cpp, that appear to be related.  They are
at top level, where they would never have compiled.  They look like
leftovers from some previous change.

--HG--
extra : rebase_source : fb47bf450771c3c9ee3341dd14520f5da69ec4f5
2017-07-24 19:23:52 +02:00
David Keeler e3018d572d bug 1382866 - prompt for authentication when changing certificate trust fails r=Cykesiopka,jcj
MozReview-Commit-ID: 3ryUyAfbNCs

--HG--
rename : security/manager/ssl/tests/unit/test_certDB_import.js => security/manager/ssl/tests/unit/test_certDB_import_with_master_password.js
extra : rebase_source : ad39258078c1084166f0c59250352cd899b10507
2017-07-21 16:58:42 -07:00
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Wes Kocher fd09155f06 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
ffxbld ef646e1a27 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-24 09:28:36 -07:00
ffxbld fedef7afe3 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-07-24 09:28:32 -07:00
ffxbld 8040d0c385 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-07-23 09:19:42 -07:00
ffxbld 2374a8dca9 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-07-23 09:19:39 -07:00
ffxbld 39bc5ffdf3 No bug, Automated HPKP preload list update from host bld-linux64-spot-388 - a=hpkp-update 2017-07-22 09:24:29 -07:00
ffxbld f2b288f21a No bug, Automated HSTS preload list update from host bld-linux64-spot-388 - a=hsts-update 2017-07-22 09:24:26 -07:00
Wes Kocher d45eb771f0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ah48RzFU8Mt
2017-07-21 18:20:46 -07:00
ffxbld fe79f566df No bug, Automated HPKP preload list update from host bld-linux64-spot-309 - a=hpkp-update 2017-07-21 09:18:15 -07:00
ffxbld 9681568945 No bug, Automated HSTS preload list update from host bld-linux64-spot-309 - a=hsts-update 2017-07-21 09:18:11 -07:00
Sebastian Hengst 367f0ac5a2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IWRTFZdtzaE
2017-07-21 12:56:44 +02:00
ffxbld 6aae95fab2 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-07-20 09:22:20 -07:00
ffxbld eaa9f8ab1b No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-07-20 09:22:17 -07:00
Tristan Bourvon 64e1ded43a Bug 1382994 - Fix UAF in InitializeNSSWithFallbacks. r=keeler
MozReview-Commit-ID: 6OYl5wlPy5W

--HG--
extra : rebase_source : fce3e52edc55c970feca67a82c71fa2bb2b5d9b7
2017-07-21 12:14:38 +02:00
Sylvestre Ledru 7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
ffxbld 3a3af33f51 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-07-19 09:22:45 -07:00