Commit Graph

11543 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
975e251aff merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02:00
Wes Kocher
4f3c2d9829 Merge m-c to autoland, a=merge
MozReview-Commit-ID: DPzfAm14Tdx
2017-04-20 15:52:28 -07:00
Nathan Froyd
35bd9439ac Bug 1357741 - make nsCertOverrideService's locking more efficient; r=keeler
nsCertOverrideService uses a ReentrantMonitor to protect its inner
state.  However, there's no way for nsCertOverrideService's methods to
be re-entered when calling outside code.  The use of ReentrantMonitor
appears to be compensating for an unclear division of locking
responsibilities, by enabling every method to simply lock the
ReentrantMonitor upon entrance without care for who might have locked it
beforehand.

Using Mutex is cheaper than ReentrantMonitor, and also forces us to
make explicit who's required to do locking, and who needs to do work
with the lock held.
2017-04-20 10:02:19 -04:00
David Keeler
af0ce9fbd6 bug 1357226 - work around a library inefficiency with EC keys when verifying ECDSA signatures r=fkiefer,jcj
Calling VFY_VerifyDigestDirect causes the provided SECKEYPublicKey to be
reimported to the softoken regardless of if it already exists on it. EC keys
must be verified upon import (to see if the point is on the curve to avoid some
small subgroup attacks), and so repeatedly doing this with a static key (say,
for example, a key corresponding to a built-in certificate transparency log) is
inefficient. This patch alters the certificate transparency implementation to
import these keys each once and then use PK11_Verify for ECDSA signature
verification, which doesn't have the same drawback.

Since this change causes CertVerifier to hold an NSS resource (via its
MultiLogCTVerifier having a list of CTLogVerifier, each of which now has a
SECKEYPublicKey), nsNSSComponent has to make sure it goes away before shutting
down NSS. This patch ensures this happens in nsNSSComponent::ShutdownNSS().

MozReview-Commit-ID: 6VSmz7S53y2

--HG--
extra : rebase_source : 4994db9de80a6c1aec3d7e322ff30d040140ce92
2017-04-11 14:11:28 -07:00
Sebastian Hengst
380838cbce merge mozilla-central to autoland. r=merge a=merge 2017-04-19 18:57:30 +02:00
ffxbld
305510c8ee No bug, Automated HPKP preload list update from host bld-linux64-spot-305 - a=hpkp-update 2017-04-19 08:02:50 -07:00
ffxbld
9847509d90 No bug, Automated HSTS preload list update from host bld-linux64-spot-305 - a=hsts-update 2017-04-19 08:02:47 -07:00
Mike Hommey
34e619d1c1 Bug 1357323 - Remove support for gonk in the build system. r=gps
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).

--HG--
extra : rebase_source : 9f0aeeb7eea8417fa4e06d662d566d67ecaf2a24
2017-04-18 16:56:09 +09:00
Cykesiopka
150742ba74 Bug 641120 - Enhance PKCS #11 module load dialog. r=keeler
This changes does several things:
1. Changes some titles to include the word "driver" for better clarity.
2. Moves and cleans up the JS implementation of load_device.xul. Having a
   cleaner implementation in a separate file makes the code easier to discover
   and maintain.
3. Removes code that tries to show a special case message if a module was
   already loaded.
3A. The backend code doesn't provide distinction from this case and failure to
    add in general.
3B. The backend code would only return the error code being checked for if a
    blank module name was provided.
4. Adds tests.

MozReview-Commit-ID: 8BxKWKw5rvp

--HG--
extra : rebase_source : 15a29bf7d46f523a11eac37c9f0c6efb2b5d0114
2017-04-18 22:18:53 +08:00
Wes Kocher
be39489f68 Merge m-c to autoland, a=merge 2017-04-18 14:40:48 -07:00
ffxbld
672628fae3 No bug, Automated HPKP preload list update from host bld-linux64-spot-305 - a=hpkp-update 2017-04-18 07:50:59 -07:00
ffxbld
52a0317e95 No bug, Automated HSTS preload list update from host bld-linux64-spot-305 - a=hsts-update 2017-04-18 07:50:56 -07:00
Jed Davis
e6622cfe8a Bug 1355273 - Allow inotify_init alongside inotify_init1. r=Alex_Gaynor,gcp
MozReview-Commit-ID: 5hAapLdbmeh

--HG--
extra : rebase_source : 2646d97dbdbf8803468c7115b50ae9ab91eae1ca
2017-04-14 16:17:39 -06:00
David Keeler
07f34ebd2f bug 1352262 - make OCSP timeout values configurable r=Cykesiopka,jcj
The default OCSP timeout for soft-fail DV is still 2 seconds. This patch makes
it configurable on the interval (0, 5] seconds.

The default OCSP timeout for EV and hard-fail DV is still 10 seconds. This patch
makes it configurable on the interval (0, 20] seconds.

MozReview-Commit-ID: CPd8pwYrJhj

--HG--
extra : rebase_source : 45bd7d06ea013f0a776ea18be9408dedb18271d8
2017-03-31 15:21:40 -07:00
Sebastian Hengst
8bd051237a merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JpAhOPjgvkF
2017-04-15 19:59:24 +02:00
Alex Gaynor
82705afe91 Bug 1354678 - Switch our sandbox policies to use C++ raw strings and put them in a new header file r=haik
r=haik

MozReview-Commit-ID: Fr5liCjcJtg

--HG--
extra : rebase_source : 3e90f7075e4e5b410ba0b8a08b0c6e403eb925f6
2017-04-14 13:12:09 -04:00
Wes Kocher
20dd5f52c2 Merge m-c to autoland, a=merge 2017-04-13 17:35:34 -07:00
Wes Kocher
514e230373 Merge inbound to central, a=merge 2017-04-13 17:24:01 -07:00
Wes Kocher
4fab232444 Merge autoland to central, a=merge 2017-04-13 13:03:43 -07:00
ffxbld
32e6a63b97 No bug, Automated HPKP preload list update from host bld-linux64-spot-362 - a=hpkp-update 2017-04-13 07:54:30 -07:00
ffxbld
cba3850a02 No bug, Automated HSTS preload list update from host bld-linux64-spot-362 - a=hsts-update 2017-04-13 07:54:28 -07:00
Wes Kocher
2986c817dc Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
David Keeler
d35dad15a5 bug 1353216 - disable certificate transparency processing for performance concerns r=jcj
MozReview-Commit-ID: 2k7FwC5RCWC

--HG--
extra : rebase_source : 00abdf845929f247bdbb1007a94928f18f8194f4
2017-04-12 10:13:29 -07:00
David Keeler
47263aefb3 bug 1349762 - handle two GlobalSign EV root transfers r=Cykesiopka,jcj
(adapted from bug 1349762 comment 0)
Google Trust Services (GTS) recently purchased two roots from GlobalSign that
are both enabled for EV treatment: "GlobalSign Root CA - R2" and "GlobalSign ECC
Root CA - R4".

However, GTS does not have an EV audit, so we are going to turn off EV treatment
for both of those root certificates.

But "GlobalSign Root CA - R2" has intermediate cert "GlobalSign Extended
Validation CA - SHA256 - G2" that continues to be controlled by GlobalSign, to
be used to migrate their customers off dependence on that root.

This patch removes EV treatment for "GlobalSign ECC Root CA - R4". It also
removes EV treatment for all chains rooted in "GlobalSign Root CA - R2" unless
the "GlobalSign Extended Validation CA - SHA256 - G2" intermediate is in the
chain.

MozReview-Commit-ID: Ej9L9zTwoPN

--HG--
extra : rebase_source : 575f1a48646cf728d879d0cf53c888654e4a32ad
2017-04-03 17:17:38 -07:00
Franziskus Kiefer
c2f4575446 Bug 1345368 - land NSS fa15eb3ce158, r=me 2017-04-12 06:01:03 +02:00
ffxbld
2fc8c8d483 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-04-11 08:57:53 -07:00
ffxbld
7f47ddac39 No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-04-11 08:57:50 -07:00
Carsten "Tomcat" Book
ee9da45454 merge mozilla-inbound to mozilla-central a=merge 2017-04-11 10:17:24 +02:00
Ehsan Akhgari
1d72f5911e Bug 1347461 - Part 2: Always initialize all DataStorage classes in the content process at initialization time; r=keeler 2017-04-10 22:44:36 -04:00
Ehsan Akhgari
c0b6db9d07 Bug 1347461 - Part 1: Add a C++ API for the list of DataStorage classes; r=keeler 2017-04-10 22:44:32 -04:00
Alex Gaynor
54bd982c43 Bug 1355083 - Switch from using a #define to alter a sandbox policy to a normal param r=haik
r=haik

MozReview-Commit-ID: KqmRra6NqPa

--HG--
extra : rebase_source : 02bf4390738f8a43ecc07c0a236a2553781df223
2017-04-10 09:53:47 -04:00
Wes Kocher
5eabc03c18 Merge m-c to autoland a=merge 2017-04-10 16:55:21 -07:00
Wes Kocher
05965b79a9 Merge inbound to central, a=merge 2017-04-10 16:32:45 -07:00
Sebastian Hengst
1828ea89ca Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and talos jobs. r=backout on a CLOSED TREE 2017-04-10 19:05:44 +02:00
ffxbld
624d25b298 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-04-10 07:41:09 -07:00
ffxbld
b365172b0d No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-04-10 07:41:06 -07:00
Franziskus Kiefer
8cab0b55cc Bug 1345368 - land NSS 7228445b43ac, r=me 2017-04-10 06:00:57 +02:00
Jed Davis
7d599256ca Bug 1354731 - Quietly fail mknod of character devices in content sandbox. r=gcp
MozReview-Commit-ID: 2aehI5V7tQp

--HG--
extra : rebase_source : ea933354e4018542e4dedda63318153c7cfbdd4e
2017-04-11 13:22:26 -06:00
Franziskus Kiefer
de3194dead Bug 1345368 - root hashes follow-up
--HG--
extra : rebase_source : 3a66b23bb951e77d67db10dfcf1703e4e3899826
2017-04-13 10:42:05 +02:00
ffxbld
eace920a03 No bug, Automated HPKP preload list update from host bld-linux64-spot-325 - a=hpkp-update 2017-04-09 08:46:38 -07:00
ffxbld
f409b0e1aa No bug, Automated HSTS preload list update from host bld-linux64-spot-325 - a=hsts-update 2017-04-09 08:46:35 -07:00
ffxbld
c4fdb67bca No bug, Automated HPKP preload list update from host bld-linux64-spot-382 - a=hpkp-update 2017-04-08 07:53:50 -07:00
ffxbld
f0ff3df6e9 No bug, Automated HSTS preload list update from host bld-linux64-spot-382 - a=hsts-update 2017-04-08 07:53:47 -07:00
ffxbld
1d4ad52861 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-04-07 08:52:29 -07:00
ffxbld
f0a8966894 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-04-07 08:52:27 -07:00
Mark Banner
585bf398ea Bug 1342459 - Enable no-undef on browser/base, and clean up unnecessary no-undef references. r=mossop
MozReview-Commit-ID: KVrAnAjMD1E

--HG--
extra : rebase_source : 7a9651c055e2c6e959d42d08e5be9de2e2265346
2017-04-03 11:46:56 +01:00
Alex Gaynor
44ae0c536b Bug 1295700 - Don't allow content processes to access the weave director on macOS r=haik
These directories contain sensitive content, and access is not necessary now that we have file content processes.

r=haik

MozReview-Commit-ID: FiRJkMnlYUx

--HG--
extra : rebase_source : 0bcdefcb1ea410fb26c3f8373673488e2a5fdd75
2017-04-06 15:20:23 -04:00
ffxbld
fcd9f1480d No bug, Automated HPKP preload list update from host bld-linux64-spot-382 - a=hpkp-update 2017-04-06 07:59:12 -07:00
ffxbld
09db00ce74 No bug, Automated HSTS preload list update from host bld-linux64-spot-382 - a=hsts-update 2017-04-06 07:59:09 -07:00
Phil Ringnalda
5da888bcd4 Merge m-c to autoland 2017-04-05 21:34:29 -07:00