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

5363 Коммитов

Автор SHA1 Сообщение Дата
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
ffxbld 5005f0245a No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-07-19 09:22:42 -07:00
Nicholas Nethercote ff8375cf2e Bug 1382099 - Remove MOZ_WIDGET_GONK from security/. r=jld.
--HG--
extra : rebase_source : 8027baf7a24e5e0d91a175ab38614594c143767b
2017-07-21 10:45:42 +10:00
ffxbld a83a4b6897 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-18 09:16:36 -07:00
ffxbld 1a42bbc6f4 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-07-18 09:16:33 -07:00
ffxbld 88180977d7 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-07-17 09:25:02 -07:00
ffxbld b825b8fa10 No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-07-17 09:24:59 -07:00
ffxbld 01d27fdd39 No bug, Automated HPKP preload list update from host bld-linux64-spot-388 - a=hpkp-update 2017-07-16 09:18:06 -07:00
ffxbld 665614ab12 No bug, Automated HSTS preload list update from host bld-linux64-spot-388 - a=hsts-update 2017-07-16 09:18:03 -07:00
ffxbld 80e4a08fd4 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-07-15 09:28:04 -07:00
ffxbld b1e5771d96 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-07-15 09:28:01 -07:00
Wes Kocher ee45f814bb Merge m-c to autoland, a=merge
MozReview-Commit-ID: GOb2bgdUd36
2017-07-14 17:27:36 -07:00
Ryan VanderMeulen 418fe0e50f Merge m-c to inbound. a=merge 2017-07-14 12:46:40 -04:00
ffxbld 63892fd487 No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-07-14 09:41:09 -07:00
ffxbld a7fbfe86b2 No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-07-14 09:41:06 -07:00
Andrea Marchesini 50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
David Keeler bfdf3c3c7c bug 1375709 - avoid deadlock when shutting down NSS r=Cykesiopka,ttaubert
The deadlock fix attempted in bug 1273475 was incomplete. This should prevent
the issue by preventing nsNSSShutDownPreventionLocks from attempting to
increment the NSS activity state count when shutdown is in progress (this is
acceptible because when code that creates any nsNSSShutDownPreventionLocks then
checks isAlreadyShutDown(), it will return true because sInShutdown is true,
thus preventing that code from unsafely using NSS resources and functions).

MozReview-Commit-ID: 4o5DGbU2TCq

--HG--
extra : rebase_source : 4a611a3ad615277f9b2191919109108dd1dfde46
2017-07-10 16:25:51 -07:00
Nicholas Nethercote c86dc10505 Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk.
Most of the names passed to nsIStringBundle::{Get,Format}StringFromUTF8Name
have one of the two following forms:

- a 16-bit C string literal, which is then converted to an 8-bit string in
  order for the lookup to occur;

- an 8-bit C string literal converted to a 16-bit string, which is then
  converted back to an 8-bit string in order for the lookup to occur.

This patch introduces and uses alternative methods that can take an 8-bit C
string literal, which requires changing some signatures in other methods and
functions. It replaces all C++ uses of the old methods.

The patch also changes the existing {Get,Format}StringFromName() methods so
they take an AUTF8String argument for the name instead of a wstring, because
that's nicer for JS code.

Even though there is a method for C++ code and a different one for JS code,
|binaryname| is used so that the existing method names can be used for the
common case in both languages.

The change reduces the number of NS_ConvertUTF8toUTF16 and
NS_ConvertUTF16toUTF8 conversions while running Speedometer v2 from ~270,000 to
~160,000. (Most of these conversions involved the string
"deprecatedReferrerDirective" in nsCSPParser.cpp.)

--HG--
extra : rebase_source : 3bee57a501035f76a81230d95186f8c3f460ff8e
2017-07-12 15:13:37 +10:00
Kai Engert 10b5520799 Bug 1380706, PSM should depend on mozStorage, as a workaround for a sqlite3_config race, r=keeler 2017-07-14 15:31:30 +02:00
Mark Goodwin 13a30dd299 Bug 1390131 - Modify GenerateOCSPResponse.cpp to allow thisUpdate to be modified r=keeler
MozReview-Commit-ID: EL9E4UtZg17

--HG--
extra : rebase_source : 5b72ddc51ffd6dabeb9e3afc45b9851336b0db88
2017-08-16 10:05:03 +01:00
Nicholas Nethercote 65b902e3ea Bug 1386103 (part 1, attempt 3) - Specify nsAuto[C]String storage size via template parameter. r=dbaron. 2017-08-09 20:41:38 +10:00
Franziskus Kiefer 6b4b0e218e Bug 1396463 - add ssl_sig_rsa_pkcs1_sha1 case to getSignatureName, r=bustage
MozReview-Commit-ID: 814ZXGoesQz
2017-09-04 10:57:38 +02:00
ffxbld cef8389c68 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-07-12 09:06:29 -07:00
ffxbld 01f529a11b No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-07-12 09:06:26 -07:00
ffxbld d37d297687 No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-07-11 09:00:05 -07:00
ffxbld d3d35b9d2b No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-07-11 09:00:02 -07:00
ffxbld 5dadcbe55b No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-10 09:13:32 -07:00
ffxbld cff6343801 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-07-10 09:13:29 -07:00
ffxbld b7e531410e No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-07-09 09:02:40 -07:00
ffxbld 74998d2dd7 No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-07-09 09:02:37 -07:00
ffxbld 4aaa085139 No bug, Automated HPKP preload list update from host bld-linux64-spot-389 - a=hpkp-update 2017-07-08 09:13:56 -07:00
ffxbld 904f22f37f No bug, Automated HSTS preload list update from host bld-linux64-spot-389 - a=hsts-update 2017-07-08 09:13:53 -07:00
Wes Kocher fd4857585c Merge autoland to central, a=merge
MozReview-Commit-ID: Lf7ROINgvql
2017-07-07 17:22:00 -07:00
ffxbld 238406d4c1 No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-07-07 08:56:58 -07:00
ffxbld 08f76dfa4d No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-07-07 08:56:55 -07:00
Makoto Kato 2f3c835cd3 Bug 1372781 - Remove getdtablesize stub from android_stub.h. r=jchen
getdtablesize is unused in nss after landing bug 1346735 and bug 1370138.  So it is unnecessary to define this in android_stub.h

MozReview-Commit-ID: CHB8xVjgmw3

--HG--
extra : rebase_source : 8ef0097f975cf661019ae77581bc903beb668f79
2017-07-07 16:18:08 +09:00
Wes Kocher 19d135c982 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 4R4GFHPiij
2017-07-06 16:19:38 -07:00
ffxbld f1472e5b57 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-07-06 08:48:52 -07:00
ffxbld 9ec86dd99e No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-07-06 08:48:49 -07:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
ffxbld fe457a38af No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-07-05 08:47:53 -07:00
ffxbld 04c83f2603 No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-07-05 08:47:50 -07:00
Phil Ringnalda 22cb9f77bb Merge m-c to m-i
MozReview-Commit-ID: H6zGgEm7oOM
2017-07-04 20:32:07 -07:00
ffxbld e8f4f51cd5 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-04 08:48:12 -07:00
ffxbld 3bce5dbd2f No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-07-04 08:48:09 -07:00
Mats Palmgren 977a9e5f89 Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj
MozReview-Commit-ID: G64YQLlgm6r
2017-07-05 02:01:45 +02:00
Wes Kocher 5226f27e3e Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7LPTKLiLUcj
2017-07-03 17:37:38 -07:00
Frederik Braun 56838ddb04 Bug 1351608 - Disable warnings for existing violations to no-unsanitize rule r=Standard8.
MozReview-Commit-ID: 7cTNL5jMtRw
2017-07-03 20:07:02 +01:00
ffxbld a3a739de04 No bug, Automated HPKP preload list update from host bld-linux64-spot-309 - a=hpkp-update 2017-07-03 08:46:18 -07:00
ffxbld 28c447101f No bug, Automated HSTS preload list update from host bld-linux64-spot-309 - a=hsts-update 2017-07-03 08:46:15 -07:00
Carsten "Tomcat" Book 4529b3adc4 merge mozilla-inbound to mozilla-central a=merge 2017-07-03 10:14:42 +02:00
ffxbld 5bb6dfcb33 No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-07-02 08:40:29 -07:00
ffxbld 56ac343904 No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-07-02 08:40:26 -07:00
ffxbld a1aa8b434a No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-07-01 08:42:21 -07:00
ffxbld 688fcf9801 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-07-01 08:42:18 -07:00
Nicholas Nethercote 3e439bb4f8 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
ffxbld dde5c48035 No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-06-30 08:49:21 -07:00
ffxbld 68f3156646 No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-06-30 08:49:18 -07:00
ffxbld 17ebac6811 No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-06-29 08:52:25 -07:00
ffxbld 296804ce45 No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-06-29 08:52:22 -07:00
ffxbld e43fbfafef No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-06-28 13:55:02 -07:00
ffxbld d945533918 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-06-28 13:54:59 -07:00
Ryan VanderMeulen a8806a9105 Merge m-c to inbound. a=merge 2017-06-27 20:06:39 -04:00
ffxbld fdb811340a No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-06-27 08:39:08 -07:00
ffxbld 8a2097b4fd No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-06-27 08:39:05 -07:00
Phil Ringnalda b9099ac2ed Merge m-c to m-i
MozReview-Commit-ID: JGHd8l9bexC
2017-06-26 20:35:27 -07:00
ffxbld b425854d9b No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-06-26 08:40:01 -07:00
ffxbld 68b6a86704 No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-06-26 08:39:58 -07:00
Carsten "Tomcat" Book 259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
ffxbld 1b7b1ec949 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-06-25 08:35:48 -07:00
ffxbld cdd2e436c7 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-06-25 08:35:45 -07:00
ffxbld 0042b377da No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-06-24 08:41:00 -07:00
ffxbld f30338674d No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-06-24 08:40:57 -07:00
ffxbld 77b256dc98 No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-06-23 08:34:57 -07:00
ffxbld d9351ba8ef No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-06-23 08:34:54 -07:00
Nicholas Nethercote f1364a75ea Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows.

- nsSubstring  --> nsAString
- nsCSubstring --> nsACString

--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Nicholas Nethercote fe9268c4cd Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsAFlatString  --> nsString
- nsAFlatCString --> nsCString

--HG--
extra : rebase_source : b37350642c58a85a08363df2e7c610873faa6e41
2017-06-20 19:19:05 +10:00
Nicholas Nethercote 1572f96f5d Bug 1374580 (part 1) - Remove nsASingleFragment{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsASingleFragmentString  --> nsAString
- nsASingleFragmentCString --> nsACString

--HG--
extra : rebase_source : e6a1ddc8938fecd9a735b15e872c054edf4c7910
2017-06-20 19:18:17 +10:00
ffxbld 3291398f10 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-06-22 09:09:14 -07:00
ffxbld f3958ec1f3 No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-06-22 09:09:11 -07:00
Florian Quèze 66f6d259bc Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Nicholas Nethercote 23156fd9b3 Bug 1374920 - Change nsTokenEventRunnable::mType from |nsString| to |const char*|. r=dkeeler.
|const char*| is good enough for a field that can only take on the values
"smartcard-insert" or "smartcard-remove". And it avoids an
NS_ConvertUTF16toUTF8 conversion.
2017-06-22 15:39:15 +10:00
Wes Kocher ac0fd2038c Merge inbound to m-c a=merge
MozReview-Commit-ID: 3LXFVwSoMvs
2017-06-21 17:58:17 -07:00
Wes Kocher 7f420b59d4 Merge autoland to central, a=merge
MozReview-Commit-ID: C4bl6Ufaiwv
2017-06-21 16:54:41 -07:00
Nathan Froyd 27c58cf89f Bug 1372670 - part 3 - add spinEventLoopUntil to nsIThreadManager; r=erahm,florian 2017-06-21 12:59:28 -04:00
ffxbld ae94cfb36d No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-06-21 08:40:54 -07:00
ffxbld 00cfe814d5 No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-06-21 08:40:51 -07:00
Wes Kocher 586bef635e Merge inbound to central, a=merge
MozReview-Commit-ID: 1SvQU51m5qC
2017-06-20 17:58:46 -07:00
ffxbld e1eeddde1e No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-06-20 08:47:01 -07:00
ffxbld e22d02a6eb No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-06-20 08:46:58 -07:00
Wes Kocher 976d5437f9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6A96Fe0GPjw
2017-06-19 17:37:53 -07:00
ffxbld 2bcd258281 No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-06-19 08:39:22 -07:00
ffxbld 604ae6476d No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-06-19 08:39:19 -07:00
Carsten "Tomcat" Book 8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Nicholas Nethercote 033f83145c Bug 1375387 - Reorder and section-ify GeckoProfiler.h. r=mstange.
This patch gives some structure and order to the profiler's API.

It also renames AutoProfilerRegister as AutoProfilerRegisterThread, to match
profiler_register_thread().
2017-06-22 14:28:47 +10:00
David Keeler 52cc80c4fe Bug 1368652 - Use Mozilla string types to display OIDs in the certificate viewer. r=Cykesiopka 2017-06-01 12:26:41 -07:00
Kate McKinley 396962011a Bug 1363546 - Store and report HSTS upgrade source r=francois,keeler,mayhemer p=francois
Add a field to the HSTS cache which indicates the source of the HSTS
entry if known, from the preload list, organically seen header, or HSTS
priming, or unknown otherwise. Also adds telemetry to collect the source
when upgrading in NS_ShouldSecureUpgrade.

MozReview-Commit-ID: 3IwyYe3Cn73

--HG--
extra : rebase_source : 9b8daac3aa02bd7a1b4285fb1e5731a817a76b7f
2017-05-23 15:31:37 -07:00
David Keeler a196a1c7c3 bug 1291886 - clarify/fix locking in nsNSSComponent r=Cykesiopka,jcj
Some of the locking in nsNSSComponent was inconsistent and/or just wrong. This
clarifies what is protected by the lock and makes sure it is consistently
acquired when those resources are accessed.
This should also address potential deadlocks when other code would attempt to
acquire nsNSSComponent resources during shutdown.
This patch also removes some items in nsNSSComponent that are no longer
relevant.

MozReview-Commit-ID: 9iA5lfAixpj

--HG--
extra : rebase_source : 1c05788efe5d6345256cca505b089198bd7e4a20
2017-06-08 14:49:13 -07:00
Kate McKinley a809b5b8d6 Bug 1374453 - turn HSTS priming on in Beta r=ckerschb
MozReview-Commit-ID: JHc47g8cDmb

--HG--
extra : rebase_source : cb67f51ac7fef74f43cc05d02bac4ef13c3ded15
2017-06-19 14:46:48 -07:00
Kate McKinley 9108666ee6 Bug 1374443 - Decrease HSTS priming timeout to 2s r=ckerschb
MozReview-Commit-ID: 7brYAUXwHvE

--HG--
extra : rebase_source : 4ef6f27cc855b828ac742f2990dc12668bd910aa
2017-06-19 14:35:27 -07:00
Paolo Amadini 10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Carsten "Tomcat" Book de892834ed Merge mozilla-central to mozilla-inbound 2017-06-20 11:31:34 +02:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng d1637b9c5a Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Bill McCloskey 6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
ffxbld 7cc377ce3f No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-06-18 08:24:54 -07:00
ffxbld a6c7ba400c No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-06-18 08:24:51 -07:00
ffxbld b95a1a9583 No bug, Automated HPKP preload list update from host bld-linux64-spot-305 - a=hpkp-update 2017-06-17 08:38:30 -07:00
ffxbld 091d02c281 No bug, Automated HSTS preload list update from host bld-linux64-spot-305 - a=hsts-update 2017-06-17 08:38:27 -07:00
ffxbld b2d072aa58 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-06-16 08:37:44 -07:00
ffxbld 870c286510 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-06-16 08:37:41 -07:00
David Keeler 0b2a439e7e bug 1373068 - fix the ctypes declaration of SSL_ClearSessionCache in head_psm.js r=Cykesiopka
SSL_ClearSessionCache is `void SSL_ClearSessionCache()`. In head_psm.js it was
being declared as `SECStatus SSL_ClearSessionCache()` and the "return value" was
being checked, which was incorrect. This apparently wasn't causing failures on
any of our test runs, but with tsan enabled the check would fail.

MozReview-Commit-ID: 6KosOVPu8K4

--HG--
extra : rebase_source : 73addb80a5ab5263a182207a0f4277daf8ae32a5
2017-06-14 15:10:28 -07:00
Andrew Halberstadt c9beaa56b4 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr

--HG--
extra : rebase_source : 9df32258cadff5d27a0e72113c57f782756c0b18
2017-06-15 12:10:59 -04:00
ffxbld c365df1999 No bug, Automated HPKP preload list update from host bld-linux64-spot-382 - a=hpkp-update 2017-06-15 08:38:35 -07:00
ffxbld fc60e8619a No bug, Automated HSTS preload list update from host bld-linux64-spot-382 - a=hsts-update 2017-06-15 08:38:32 -07:00
ffxbld c49a70b53f No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-06-14 08:33:27 -07:00
ffxbld b98ce20b57 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-06-14 08:33:24 -07:00
ffxbld 13bca384b3 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-06-13 08:37:54 -07:00
ffxbld cdd7ceaa16 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-06-13 08:37:50 -07:00
ffxbld 687bfe6a46 No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-06-12 08:25:15 -07:00
ffxbld 1d51d00cbc No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-06-12 08:25:12 -07:00
ffxbld d840ebd585 No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-06-11 08:31:38 -07:00
ffxbld 19a63c3db3 No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-06-11 08:31:35 -07:00
ffxbld fee636af73 No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-06-10 08:28:28 -07:00
ffxbld 494c299b4c No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-06-10 08:28:25 -07:00
ffxbld cb712cd137 No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-06-09 08:28:37 -07:00
ffxbld 005b20e0a4 No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-06-09 08:28:34 -07:00
Wes Kocher 1be06aea28 Merge m-c to autoland, a=merge
UPGRADE_NSS_RELEASE

MozReview-Commit-ID: ItWcUAUYyaj

--HG--
extra : amend_source : fc43f23f0e12d5f88d72be9526a953d8015e6975
2017-06-08 18:44:32 -07:00
ffxbld 9b5314f2d1 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-06-08 09:27:12 -07:00
ffxbld ecdb9dfade No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-06-08 09:27:09 -07:00
David Keeler e426fddb4a bug 1369911 - gather telemetry on the prevalence of 3rd party PKCS#11 modules r=bsmedberg,Cykesiopka data-review=bsmedberg
MozReview-Commit-ID: Dw99Jm64QNU

--HG--
extra : rebase_source : 9e9f6c5342f992c9040e85b0eab129d7751e9887
2017-06-02 16:44:06 -07:00
Ryan VanderMeulen e886d1846a Merge inbound to m-c. a=merge
UPGRADE_NSPR_RELEASE UPGRADE_NSS_RELEASE

--HG--
extra : amend_source : a7800e9214d5a8325af0d1f5e5dcc77273f4ce95
2017-06-07 22:52:40 -04:00
ffxbld 086a61dfbf No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-06-07 08:36:43 -07:00
ffxbld 9286331337 No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-06-07 08:36:40 -07:00
ffxbld cd09b99007 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-06-06 08:39:25 -07:00
ffxbld 12a027af8e No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-06-06 08:39:22 -07:00
Franziskus Kiefer 9a70331f36 Bug 1345368 - Disable test_broken_fips on all platforms other than mac, r=keeler
--HG--
extra : rebase_source : 67201c5646f3d1c8abe5122051cddaee148c418a
2017-06-07 09:16:45 +02:00
ffxbld 61528d699c No bug, Automated HPKP preload list update from host bld-linux64-spot-030 - a=hpkp-update 2017-06-05 08:39:51 -07:00
ffxbld b6a127253e No bug, Automated HSTS preload list update from host bld-linux64-spot-030 - a=hsts-update 2017-06-05 08:39:48 -07:00
Cykesiopka ab8411f21d Bug 1368107 - Make SSLErrorMessageType an enum class. r=keeler
Enum classes are safer and nicer.

MozReview-Commit-ID: FDT3Gb1t9w1

--HG--
extra : rebase_source : 92d67db5f7ea4a64e3101b0e3a93e9fccbfa132e
2017-06-03 13:36:41 +08:00
Cykesiopka 0ac2ac7fa3 Bug 1368107 - Make some TransportSecurityInfo nsresult functions return void. r=keeler
These functions in practice are all infallible and are unchecked by callers, so
there's no point in having them return nsresult.

MozReview-Commit-ID: BOypKLUZZBi

--HG--
extra : rebase_source : 95c8e9ca6d74d04f2836aea2bcdb1c751d3e9308
2017-06-03 13:36:16 +08:00
Cykesiopka 875885fbf4 Bug 1368107 - Remove fallible version of TransportSecurityInfo::GetPort(). r=keeler
The function is infallible in pratice, and so is unnecessary when there's an
actual infallible version.

MozReview-Commit-ID: FTuVyqwjZ8O

--HG--
extra : rebase_source : 88f511d730bb02b5e28a86cb366ae1c915e0a8b1
2017-06-03 13:36:04 +08:00
Cykesiopka 0adca03a5d Bug 1368107 - Remove TransportSecurityInfo::GetHostNameRaw(). r=keeler
GetHostNameRaw() returns a char* string, which is less safe and ergonomic
compared to the Mozilla string classes. GetHostName() can be used instead.

MozReview-Commit-ID: GYvTnISNN35

--HG--
extra : rebase_source : da257f5fba2c26cd92d932c3d1d363458b84a65b
2017-06-03 13:35:51 +08:00
ffxbld 507743376d No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-06-04 08:18:02 -07:00