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

13711 Коммитов

Автор SHA1 Сообщение Дата
David Keeler d4901f4908 bug 1466942 - avoid l10n string bundles in nsNSSComponent initialization r=fkiefer
Before this patch, nsNSSComponent initialization would call PK11_ConfigurePKCS11
with some localized strings, which contributed to startup time. Also,
PK11_UnconfigurePKCS11 was never called, so the memory allocated to these
strings would stick around forever. This patch addresses both of these problems
by not calling PK11_ConfigurePKCS11. This means that some properties of NSS'
internal "PKCS#11 slots/tokens" have to be localized when displaying them to the
user.

MozReview-Commit-ID: BbAgbgpFfFG

--HG--
extra : rebase_source : b633da8fea683675d0c0514a378954332afeb024
2018-06-04 17:07:06 -07:00
Narcis Beleuzu cf464eabfe Merge inbound to mozilla-central. a=merge 2018-06-06 20:00:09 +03:00
Sylvestre Ledru a3ce8a59cd Bug 1464869 - Fix flake8/pep8 issue by hand in security/ r=fkiefer
MozReview-Commit-ID: ExDsMJ9KzJQ

--HG--
extra : rebase_source : e17c44e94c371d168f3c34ecbd640fb87cd2e863
2018-05-27 10:36:45 +02:00
Sylvestre Ledru 9fa6cfa8d4 Bug 1464869 - Run autopep8 on security/ r=fkiefer
MozReview-Commit-ID: K3aWVqsO0O8

--HG--
extra : rebase_source : 6bcf97b8b4a6e70113f36d8097f26816ce4b0acf
2018-05-26 06:47:27 -07:00
Narcis Beleuzu cce21bfe40 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-06 12:52:15 +03:00
Boris Zbarsky 5945884066 Bug 1466727 part 6. Stop using nsITreeColumn in layout. r=mossop 2018-06-05 23:01:37 -04:00
Boris Zbarsky 3473c823b2 Bug 1466727 part 2. Remove use of nsITreeColumn in xpidl interfaces. r=mossop
There is one actual behavior change here, in the webidl version of
TreeBoxObject::GetCellAt.  I believe this change fixes a leak of the
nsTreeColumn, but could use careful review.

I tried to avoid changes not needed to get this compiling.  There will be a lot
more cleanup in the next few changesets.
2018-06-05 23:01:36 -04:00
arthur.iakab fd0ee7c9b8 Merge inbound to mozilla-central a=merge 2018-06-06 00:58:30 +03:00
Boris Zbarsky d20d5e61f5 Bug 1466673 part 4. Stop using nsITreeColumns in various other C++ code. r=mossop 2018-06-05 13:30:17 -04:00
Miko Mynttinen 4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
arthur.iakab 7e765f798b Backed out 2 changesets (bug 1465060) for build bustages on security/sandbox/linux/reporter/SandboxReporter.cpp
Backed out changeset 7c8905b6b226 (bug 1465060)
Backed out changeset 10446073eca8 (bug 1465060)
2018-06-03 19:25:41 +03:00
Miko Mynttinen 8d9dc85cd4 Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 619d0e0ff63a2453c80f0c4d9beb906d43fa9b01
2018-06-01 17:59:07 +02:00
Andreea Pavel 4ced6e8b2d Merge mozilla-central to autoland. a=merge 2018-06-03 07:27:01 +03:00
Emilio Cobos Álvarez 1e9c395548 Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj
Same approach as the other bug, mostly replacing automatically by removing
'using mozilla::Forward;' and then:

  s/mozilla::Forward/std::forward/
  s/Forward</std::forward</

The only file that required manual fixup was TestTreeTraversal.cpp, which had
a class called TestNodeForward with template parameters :)

MozReview-Commit-ID: A88qFG5AccP
2018-06-02 09:33:26 +02:00
ffxbld ee72038b8e No bug, Automated HSTS preload list update from task BqRcopwHQbGAhBJA_2Vuzw
Summary:
No bug, Automated HPKP preload list update from task BqRcopwHQbGAhBJA_2Vuzw

No bug, Automated blocklist update from task BqRcopwHQbGAhBJA_2Vuzw

No bug, Automated remote settings update from task BqRcopwHQbGAhBJA_2Vuzw

Reviewers: mtabara, jlund

Reviewed By: mtabara

Differential Revision: https://phabricator.services.mozilla.com/D1473

--HG--
extra : rebase_source : 8326a0602e40d57f8fb3da5dd047a5b3840bc77f
2018-06-01 15:56:55 +01:00
Franziskus Kiefer 51cc7e1f8e Bug 1460617 - land NSS 8232a58332dd UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : a35fb046aab40741eefdb1361e5b323bfa0bc607
2018-06-01 09:44:01 +02:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Tom Ritter 2313bfe0d4 Bug 1457482 Add --enable-lto that turns on LTO r=glandium
MozReview-Commit-ID: DjICW7OKqzB

--HG--
extra : rebase_source : 92c766880845ec89305ef1e66ff13223421ac152
2018-04-13 15:55:39 -05:00
David Keeler 1fa719d5ca bug 1461803 - minor cleanup in PSM: (re)move nsNSSErrors to NSSErrorsService r=jcj
Also removes displayUnknownCertErrorAlert, which was declared but never used.
Also removes some unnecessary ns(I)CertOverrideService OID stuff.

MozReview-Commit-ID: 4o7c1TkKeKJ

--HG--
extra : rebase_source : a8069b76fc847e6b4d158e4b30a75bde3e290ed9
2018-06-01 16:23:17 -07:00
David Keeler 23798b7e5f bug 1465976 - remove all find*ByName APIs from PSM PKCS#11 module/slot/token interfaces r=fkiefer,jcj
Before this patch, we exposed a few interfaces that revolved around mapping a
name to a specific PKCS#11 module, slot, or token. These APIs were all either
problematic and/or unnecessary. In theory there could be two tokens in different
modules with the same name, so nsIPK11TokenDB.findTokenByName wasn't guaranteed
to return what the consumer expected it to. In general, these APIs were used by
front-end code to go from a handle on the specific object in question to a
string identifier and then back to a handle on the object. This was unnecessary
- we can just retain the original handle.

MozReview-Commit-ID: IbqLbV4wceA

--HG--
extra : rebase_source : 05d39afd6bed0aa5e7694e1c79baf836edc03214
2018-05-31 14:46:06 -07:00
Andreea Pavel 38bcf897f1 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-31 13:04:21 +03:00
arthur.iakab f1046ac67f Merge mozilla-central to inbound 2018-05-31 01:08:35 +03:00
Andrea Marchesini 1273dc5391 Bug 1446933 - Remove 'using namespace mozilla::net' from BackgroundUtils.h, r=qdot 2018-05-30 21:21:17 +02:00
David Keeler b0ca052e73 bug 1465258 - remove load group workaround in new OCSP code r=jcj
The patch for bug 1456489 included a workaround for the issue that origin
attributes weren't honored on channels that didn't have a load group set (bug
1456742). Now that that's fixed, we don't need the workaround.

MozReview-Commit-ID: I4ExIqt6dYo

--HG--
extra : rebase_source : d323c0860989985b72933dcffd62743b9d73644d
2018-05-29 16:03:37 -07:00
David Keeler 6031c1d1be bug 1464505 - remove some unused localization helpers from nsNSSComponent r=fkiefer
nsNSSComponent::PIPBundleFormatStringFromName and ::GetNSSBundleString are now
unused. They can be removed (which means that nsNSSComponent::mNSSErrorsBundle
can be removed as well).

MozReview-Commit-ID: GAaGawSDL2n

--HG--
extra : rebase_source : 3f683a902e292c6b0cf736773e71fb893074c32b
2018-05-25 13:02:02 -07:00
David Keeler 4483c4670c bug 1464510 - test_ssl_status.js needs to be run sequentially (it uses hardcoded ports) r=mgoodwin
MozReview-Commit-ID: 7MeWq9ZCRd9

--HG--
extra : rebase_source : 421aa6246d71b3ea24f835769c8af61c7658fd02
2018-05-25 13:54:43 -07:00
David Keeler 571854a7c1 bug 1464520 - hard-code the builtin roots module name to avoid a dependency on l10n in nsNSSComponent r=fkiefer,jcj
nsNSSComponent startup and shutdown would be simpler if there were no direct
dependencies on localized strings. This patch removes a dependency on the
localized name of the builtin roots module by hard-coding the name internally
and then mapping it to/from the localized version as appropriate.

MozReview-Commit-ID: 30kbpWFYbzm

--HG--
extra : rebase_source : 3d384af5a9fa45d5ac1f78e1fcb0dd9e4b94267d
2018-05-25 11:22:48 -07:00
Haik Aftandilian 0dfa17d31a Bug 1463353 - contentSandboxRules does not explcitly list 'com.apple.fonts' mach service. r=Alex_Gaynor
Add font servers to sandbox policies instead of relying
on them to be registered before the sandbox is enabled.

MozReview-Commit-ID: IoVJhAqoEEW

--HG--
extra : rebase_source : 448cc9e556056c44cf76f79c126fbfe56e948e1e
2018-05-29 14:55:12 -07:00
Franziskus Kiefer 7eaf562442 Bug 1460617 - land NSS 3d3e34bb7517 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 45b9c45b31b55dc1f5fcc043336b2ddc386f740c
extra : histedit_source : 221357b0e59b2a82786cc83d6b980062ec2b7ce9
2018-05-28 15:45:28 +02:00
Brindusan Cristian 309ff0bd1f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-25 03:08:34 +03:00
David Keeler d0f63cd6ba bug 1463901 - re-arrange some nsNSSComponent initialization/shutdown operations to avoid hanging r=jcj
Before this patch, if nsNSSComponent initialization failed after allocating the
XPCOM object for the component but before dispatching the load loadable roots
task, BlockUntilLoadableRootsLoaded would block indefinitely in ShutdownNSS
(called from ~nsNSSComponent).

This patch re-arranges some things so that nsNSSComponent cleanup won't block on
the load loadable roots task if it never fired. It also splits the cleanup into
idempotent operations and operations that can only be run once.

Unfortunately if nsNSSComponent initialization fails, Firefox is likely to exit
or fail promptly anyway (since it is essential to so many other components).
However, quitting outright is probably a better experience than hanging
indefinitely.

MozReview-Commit-ID: RWmBUV2pEU

--HG--
extra : rebase_source : e2d06178ecc8ca8681eef18cb3af0a9ac8f83d1c
2018-05-23 15:39:38 -07:00
Haik Aftandilian fcb3b190fe Bug 1432567 - [Mac] Add a test that renders fonts from non-standard directories r=jfkthame
Adds a test to validate that content sandboxing is allowing content
processes to access fonts from non-standard locations on the
filesystem. The test copies the Fira Sans font to the root of the
home directory and renders a page that should use Fira Sans when it
is installed and registered with the OS. The test checks for the use
of the ".LastResort" font which is an indication of the the content
process failing to load the font.

MozReview-Commit-ID: GPWqHdF3vhG

--HG--
extra : rebase_source : c0ea283d496517812202d068c610bdcc0ece640d
2018-05-22 12:31:03 -07:00
David Keeler ca855468dd bug 1461037 - lossily convert invalid UTF8 in certificates for display purposes r=jcj
In debug builds, we assert if any UTF8-to-UTF16 conversion fails. If we have
invalid UTF8 in a certificate, we don't want to assert. So, we now lossily
convert invalid UTF8 in certificates for any display purposes.
This also handles fields that are supposed to be ASCII in a similar way.

MozReview-Commit-ID: 6TdVPDTmNlh

--HG--
extra : rebase_source : 17000bd0671551bbdae534a4eaf4946c1b0beb83
2018-05-15 16:41:46 -07:00
J.C. Jones 45e31a5ac7 Bug 1460617 - land NSS 328d235fc7ee UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 0a6e32201241c835e3ea05b2c7290d5a0fc811dd
2018-05-24 08:08:55 -07:00
David Keeler f4f551dca4 bug 1465562 - ensure succeededCertChain is set in TLS handshakes with session resumption r=fkiefer
When doing TLS session resumption, Firefox currently does not have enough
information to trivially reconstitute the original connection's security
information. Consequently, we have to rebuild the certificate chain in the
handshake callback. Before this patch, we determined the EV and CT status of the
connection but did not set the succeeded cert chain unless the certificate was
EV. This was insufficient. In this patch, we set the succeeded cert chain
regardless of if the certificate is EV or not (provided we found a valid chain).

MozReview-Commit-ID: AuKrlBwX1Qh

--HG--
extra : rebase_source : cafb17548666f6330038012e36fa23ef382f361a
2018-06-07 10:41:25 -07:00
ffxbld af37fd8a7f No Bug, mozilla-central repo-update HSTS HPKP remote-settings. r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D1652
2018-06-14 13:01:41 -04:00
Csoregi Natalia 2f779be8d9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-02 01:03:45 +03:00
David Keeler 0dec465e26 bug 1465933 - remove GetPIPNSSBundleString from nsINSSComponent r=fkiefer
At this point, all uses of GetPIPNSSBundleString *should* be on the main thread,
so we can just remove the nsINSSComponent version and rely on the
nsNSSCertHelper instance.

MozReview-Commit-ID: Lt7AgokGKRH

--HG--
extra : rebase_source : 95d3cf6e011468e2aa9df9bb69372ac4d3430286
2018-05-31 12:26:04 -07:00
Narcis Beleuzu 59ffb03449 Backed out changeset 01b407d8a5af (bug 1453795) for build bustages on CertVerifier.h . CLOSED TREE 2018-06-19 07:38:57 +03:00
Andi-Bogdan Postelnicu be47373507 Bug 1453795 - PSM-Security - Initialize member fields in classes/ structures. r=keeler
--HG--
extra : rebase_source : 4e22100b95356d8f36f26459c985dbfb064453d1
2018-06-18 12:31:47 +03:00
Jed Davis 2788528721 Bug 1462640 - Allow content processes to mincore() individual pages. r=gcp
MozReview-Commit-ID: IclghYFyMPp

--HG--
extra : rebase_source : 5096ced288cfd120a6d28c87a7528851617a70e9
2018-05-18 17:36:47 -06:00
J.C. Jones 4c5afa060e Bug 1460617 - land NSS c8ee333b84a0 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 6324109576a15237b4d629c75109a49fe2274f5f
2018-05-21 08:33:12 -07:00
Tom Ritter 9800e813cf Bug 1462100 Add the 'cast to void*' MinGW sandbox patch to the chromium patchlist r=bobowen
MozReview-Commit-ID: 457xxFsnjTL

--HG--
extra : rebase_source : c1cb170c13cc408a4c1562e5bfd001bb9597a54c
2018-05-17 10:10:50 -05:00
Tom Ritter e8c4e33bea Bug 1462100 Cast to void* to avoid conversion errors on MinGW, which does not do the automatic conversion like msvc r=bobowen
MozReview-Commit-ID: 8fO9Nu9gaxh

--HG--
extra : rebase_source : 896c58b8050304c6a47dcbd9f7744923a721fa69
2018-05-16 14:18:20 -05:00
David Keeler d8f748b996 bug 401240 - part 2/2 - reimplement PKCS#12 import/export without goto r=fkiefer
MozReview-Commit-ID: JUMmTPrEYND

--HG--
rename : security/manager/ssl/tests/unit/test_certDB_import_with_master_password.js => security/manager/ssl/tests/unit/test_certDB_export_pkcs12.js
rename : security/manager/ssl/tests/unit/test_certDB_import_with_master_password.js => security/manager/ssl/tests/unit/test_certDB_export_pkcs12_with_master_password.js
extra : rebase_source : 3bf01e722f496b4dba634ed5d0345ce1fe0ceea7
2018-05-11 11:37:50 -07:00
David Keeler 18117a994a bug 401240 - part 1/2 - run ./mach clang-format on nsPKCS12Blob r=fkiefer
MozReview-Commit-ID: 81m6dxhg8Pv

--HG--
extra : rebase_source : c9d3bed637e163cc6347f6626067aaf9b773db8c
2018-05-11 11:09:00 -07:00
Tom Ritter af3c5e06a6 Bug 1460882 Disable SANDBOX_EXPORTS for the MinGW Build r=bobowen
MozReview-Commit-ID: 2muTxIYUx6F

--HG--
extra : rebase_source : c61e7de55319fd5eb156dd3c46ed4a8efe6dc42b
2018-05-11 08:16:13 -05:00
Haik Aftandilian 5e0cbf519a Bug 1460917 - Fonts not displaying with FontExplorer X fonts in Firefox 60 r=handyman
Add back font whitelist rules removed by the fix for bug 1393259
to workaround font sandbox extensions not being issued automatically
on OS X 10.11 and earlier.

MozReview-Commit-ID: 2hT0BzN3Ggq

--HG--
extra : rebase_source : 4fe9ce43eb7efe0c6a91c908c149126da6eb708e
2018-05-14 16:04:55 -07:00
J.C. Jones 0843035f6b Bug 1460617 - land NSS 6e4b0141df2f UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : c82ceabece6bd1c9b0d079a0a69eedeba4214c5e
2018-05-14 14:47:52 -07:00
Nika Layzell 2d188849ae Bug 1455217 - Part 3: Use the new xpidl Promise type instead of nsISupports, r=bz 2018-05-14 17:55:54 -04:00
J.C. Jones db950df22f Bug 1461373 - Set BRNameMatchingPolicy to "Enforce" for Nightly r=keeler
Summary:
Change the security.pki.name_matching_mode pref to 3 for Enforce on Nightly.

BR_9_2_1_SUBJECT_ALT_NAMES show that ~99.98% of encountered certificates have
an acceptable SAN, so our compatibility risk is about 0.02%.

BR_9_2_2_SUBJECT_COMMON_NAME also shows, 99.89% of certificate common names are
present in a subject alternative name extension, giving a worst-case of 0.11%
risk, though BR_9_2_1_SUBJECT_ALT_NAMES is more what we're affecting here.

Test Plan: none

Reviewers: keeler

Tags: #secure-revision

Bug #: 1461373

Differential Revision: https://phabricator.services.mozilla.com/D1277

--HG--
extra : transplant_source : %BF%7D%DEi%C7%9BhE%D0%C2d%9D0%AC%F8%9EM%E0%60U
2018-05-14 09:55:15 -07:00
Kris Maglione 250e7028e3 Bug 1385057: Remove most code for handling unpacked side-loaded extensions. r=aswan,keeler
MozReview-Commit-ID: H4cSRBws4Ml

--HG--
extra : rebase_source : ddddef92344b6414ae4e5635b9841fcc274dfca9
2018-05-09 16:04:04 -07:00
Margareta Eliza Balazs 4f9a2ba08e Merge inbound to mozilla-central. a=merge 2018-05-11 12:36:02 +03:00
J.C. Jones 08d83d7258 Bug 1441914 - Fix Windows build on a CLOSED TREE r=me
Don't use MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS; it's unneeded here right now,
and occludes "PSM::Result" on Windows.

--HG--
extra : transplant_source : %B9%24%7FR%A8%1B%B0%3B%D44%ED%C5%3F%CD%1E%96%1F%22m%A3
2018-05-10 17:15:22 -07:00
J.C. Jones 4139925b80 Bug 1441914 - Make security.pki.distrust_ca_policy a bitmask r=fkiefer r=keeler
Per Bug 1437754 comment 10, the pref security.pki.distrust_ca_policy makes more
sense as a bitmask than a state. To permit future nuance, let's go ahead and do
that before people start implementing atop Bug 1456112.

This does permit both 0b10 and 0b11 to enable the functionality for Firefox 63.

--HG--
extra : transplant_source : %84%AF%89%E0%89dT%01%10%84%A0%3B%A5%28%2A%D3%E1%B0%0D%E7
2018-05-07 15:46:22 -07:00
David Keeler 6499399d3c bug 1427248 - avoid changing certificate trust in nsNSSComponent initialization r=fkiefer,jcj
If a user has set a master password on their NSS DB(s), when we try to change
the trust of a certificate, we may have to authenticate to the DB. This involves
bringing up a dialog box, executing javascript, spinning the event loop, etc.
In some cases (particularly when antivirus software has injected code into
Firefox), this can cause the nsNSSComponent to be initialized if it hasn't
already been. So, it's a really, really bad idea to attempt to change the trust
of a certificate while we're initializing nsNSSComponent, because this results
in a recursive component dependency and everything breaks. To get around this,
if we need to load 3rd party roots (e.g. enterprise roots or the family safety
root), we defer any trust changes to a later event loop tick. In theory this
could cause verification failures early in startup. We'll have to see if this
is an issue in practice.

MozReview-Commit-ID: FvjHP5dTmpP

--HG--
extra : rebase_source : 73d39788ce39adcbe01c89867061f64d05a3876b
2018-05-07 17:05:30 -07:00
Coroiu Cristina 683720f5ee Backed out changeset 0693ec09dd68 (bug 1427248) for bustage at build/src/security/manager/ssl/nsNSSComponent.cpp on a CLOSED TREE 2018-05-10 23:32:46 +03:00
David Keeler 65635d2855 bug 1427248 - avoid changing certificate trust in nsNSSComponent initialization r=fkiefer,jcj
If a user has set a master password on their NSS DB(s), when we try to change
the trust of a certificate, we may have to authenticate to the DB. This involves
bringing up a dialog box, executing javascript, spinning the event loop, etc.
In some cases (particularly when antivirus software has injected code into
Firefox), this can cause the nsNSSComponent to be initialized if it hasn't
already been. So, it's a really, really bad idea to attempt to change the trust
of a certificate while we're initializing nsNSSComponent, because this results
in a recursive component dependency and everything breaks. To get around this,
if we need to load 3rd party roots (e.g. enterprise roots or the family safety
root), we defer any trust changes to a later event loop tick. In theory this
could cause verification failures early in startup. We'll have to see if this
is an issue in practice.

MozReview-Commit-ID: FvjHP5dTmpP

--HG--
extra : rebase_source : ad0fb83a0de3632e3a967e91aec3d8070b22dedc
2018-05-07 17:05:30 -07:00
ffxbld 7c7bbfe6e0 No bug, Automated HSTS preload list update from task XSqPd8faStCdsylVmzvQ6w
Summary:
No bug, Automated HPKP preload list update from task XSqPd8faStCdsylVmzvQ6w

No bug, Automated blocklist update from task XSqPd8faStCdsylVmzvQ6w

Reviewers: sfraser, aki

Reviewed By: sfraser

Differential Revision: https://phabricator.services.mozilla.com/D1256

--HG--
extra : rebase_source : 855e19990c75e2613bd311976297fb6513e02b94
2018-05-10 12:14:28 +01:00
Csoregi Natalia f034c0ab5d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-10 12:52:31 +03:00
David Keeler 3b971d708e bug 1460312 - cancel the timeout timer in OCSP request implementation r=jcj
Bug 1456489 cleaned up our OCSP request implementation a bit. One simplification
it made was to not cancel the timeout timer. It turns out that if we don't, the
OCSPRequest that constitutes the timeout callback's closure might not be valid
if the request has completed (because the timer doesn't own a strong reference
to it). The fix is simple: cancel the timer when the request completes. Note
that we don't have to do the reverse because necko has a strong reference to the
request.

MozReview-Commit-ID: 2WHFLAcGBAw

--HG--
extra : rebase_source : c4216f6792c1d62cbd046b1b3802226c51fbe8af
2018-05-09 10:06:49 -07:00
David Keeler e218ab3e3b bug 1460350 - re-land bug 1415991 (remove support for verifying signed unpacked add-ons) r=kmag
(Backed out changeset 6bbf8dc0b86e (which was a backout of changeset 0a5795108e0a))

MozReview-Commit-ID: EZFn7dLBcdh

--HG--
extra : rebase_source : 8fac1e33a7f108a248ecde35779b2c63ce7d9172
2018-05-09 10:19:37 -07:00
Kris Maglione 01c298aca6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
David Keeler 6ea4fb08d4 bug 1456489 - prevent making OCSP requests on the main thread r=fkiefer,jcj
OCSP requests cannot be performed on the main thread. If we were to wait for a
response from the network, we would be blocking the main thread for an
unnaceptably long time. If we were to spin the event loop while waiting (which
is what we do currently), other parts of the code that assume this will never
happen (which is essentially all of them) can break.

As of bug 867473, no certificate verification happens on the main thread, so no
OCSP requests happen on the main thread. Given this, we can go ahead and
prohibit such requests.

Incidentally, this gives us an opportunity to improve the current OCSP
implementation, which has a few drawbacks (the largest of which is that it's
unclear that its ownership model is implemented correctly).

This also removes OCSP GET support. Due to recent OCSP server implementations
(namely, the ability to cache OCSP POST request responses), OCSP GET is not a
compelling technology to pursue. Furthermore, continued support presents a
maintenance burden.

MozReview-Commit-ID: 4ACDY09nCBA

--HG--
extra : rebase_source : 072564adf1836720e147b8250afca7cebe4dbf62
2018-04-23 18:09:35 +02:00
David Keeler 6da3ace3da bug 686149 - improve PKCS7 certificate export to not use legacy path building r=fkiefer
MozReview-Commit-ID: 2U4J8uUlvaN

--HG--
extra : rebase_source : c416a552e31a6ef38a5d394374e212f00210b334
2018-05-02 10:22:58 -07:00
arthur.iakab f2042a4c1f Merge inbound to mozilla-central a=merge 2018-05-08 15:42:06 +03:00
J.C. Jones 8d99d56270 Bug 1456112 - Add a pref to implement the last Symantec Distrust step r=keeler
This adds another preference (DistrustSymantecRootsRegardlessOfDate == 2) that
stops permitting certificates issued after 1 June 2016, and updates the test to
check it.

--HG--
extra : transplant_source : %F1%DE%16m%F2%DD%A8Ei%EF%B4%CAo%BF%8D%A6%A6%5E%D4%89
2018-05-04 09:34:45 -07:00
J.C. Jones 0fe289986b Bug 1445731 - land NSS NSS_3_37_RTM UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 0c5dbfbfab874158345a4fe2237dc898655f0052
2018-05-04 10:42:48 -07:00
David Keeler 999c7366ef bug 1346297 - remove expired family safety telemetry probe r=jcj
MozReview-Commit-ID: BCc5Fa9jWJ2

--HG--
extra : rebase_source : fa965818e96fae6f2c23d33c9bcf6cb224b7935b
extra : amend_source : a1c08417b0a5f3b8de4c5b2025c559111e6597c2
2018-05-03 12:44:14 -07:00
Ciure Andrei 82f7c496dc Merge inbound to mozilla-central. a=merge 2018-05-04 00:52:04 +03:00
ffxbld ab372e51b4 No bug, Automated HSTS preload list update from task AUKIqPPXTDSaxMvWC7BXWg
Summary: No bug, Automated HPKP preload list update from task AUKIqPPXTDSaxMvWC7BXWg

Reviewers: sfraser

Reviewed By: sfraser

Differential Revision: https://phabricator.services.mozilla.com/D1117

--HG--
extra : rebase_source : d68fc2b597321f42c66b798db4f8f9cf0b209a73
2018-05-03 12:44:37 +01:00
David Keeler 066f38fa62 bug 1458074 - un-do the firefox-appdir addition in PSM's xpcshell.ini r=kmag
Bug 1372694 added a firefox-appdir line to PSM's xpcshell.ini. It turns out this
breaks running these tests locally because utilities like BadCertServer can't be
found. I looks like the change isn't necessary, so the simplest thing to do
would be to just remove the addition.

MozReview-Commit-ID: 8fg8ujPWxRe

--HG--
extra : rebase_source : ffef9b067dacb94c4bd554f97556ab95f58efd2b
2018-04-30 15:21:41 -07:00
ffxbld b9d16384c0 No bug, Automated HSTS preload list update from task QWd7FyT5RE-MJF4dSdL4TQ
Summary: No bug, Automated HPKP preload list update from task QWd7FyT5RE-MJF4dSdL4TQ

Reviewers: sfraser

Reviewed By: sfraser

Differential Revision: https://phabricator.services.mozilla.com/D1063

--HG--
extra : rebase_source : 7d37ffc7fcbca533ae8cf1b532671b78407ac8cd
2018-04-30 12:45:23 +01:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Haik Aftandilian 7fb2183e0a Bug 1458553 - Return of Google Maps all black map with updated Nvidia web driver on Mac r=Alex_Gaynor
Update Mac sandbox rules to allow executable mappings from /Library/GPUBundles which is
used by the Nvidia downloadable "Web" driver.

MozReview-Commit-ID: L2nTP4YWdJJ

--HG--
extra : rebase_source : d8eefdd5a180db5d3ea8207d923e021420f2318e
2018-05-02 09:26:55 -07:00
ffxbld 1a695c2e33 No bug, Automated HSTS preload list update from task GjhOFReSQGqVESpdTdZ3FA
Summary: No bug, Automated HPKP preload list update from task GjhOFReSQGqVESpdTdZ3FA

Reviewers: sfraser

Reviewed By: sfraser

Tags: #secure-revision

Differential Revision: https://phabricator.services.mozilla.com/D1045

--HG--
extra : rebase_source : 53c75df4ac650d24bb7f4da8e7d3eab675dcac3b
2018-04-26 16:19:47 +01:00
J.C. Jones 61f85fbe96 Bug 1445731 - land NSS NSS_3_37_BETA2 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : b68bb60ebd5ac7037d71c8db6acec29802220a5c
2018-04-26 15:32:24 +02:00
Brindusan Cristian 59f801793b Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Bob Owen f299b6bfc7 Bug 1444699: Remove dynamic load and call for GetUserDefaultLocaleName. r=handyman
This was only required because it is not available on Windows XP, which is no
longer supported. Patch already landed upstream in chromium.
2018-04-24 09:21:51 +01:00
Tim Nguyen 92c9a958e1 Bug 1372694 - Stop making the default theme a heavyweight theme. r=kmag,aswan
MozReview-Commit-ID: 30wMauuc9oo

--HG--
rename : browser/base/content/default-theme-icon.svg => toolkit/mozapps/extensions/content/default-theme-icon.svg
extra : rebase_source : 5e4cf784135f4a8e40a2ed8357ba651e7fce9728
2018-04-01 13:53:31 +02:00
jld@mozilla.com c7c75836c0 Backed out 2 changesets (bug 1439057, bug 1447867)
Backed out changeset baeab3bff807 (bug 1439057)
Backed out changeset 1a024d5ca77b (bug 1447867)

--HG--
extra : rebase_source : d39e4657b4117706a53bc42b7817424cf43f9148
2018-04-23 07:59:02 -06:00
Margareta Eliza Balazs fa0ffa186e Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : toolkit/mozapps/extensions/internal/XPIProviderUtils.js => toolkit/mozapps/extensions/internal/XPIDatabase.jsm
2018-04-24 14:51:28 +03:00
Sylvestre Ledru aefcd1c84b Bug 1448934 - Fix some spelling mistakes in locales/en-US r=flod
MozReview-Commit-ID: vGVudVgB31

--HG--
extra : rebase_source : cdc39375a3485a3133878c4dbbffe60c0b26e917
2018-04-24 10:26:35 +02:00
ffxbld 23863f75f8 No bug, Automated HSTS preload list update from task NB7sJcsHTtqWs431n9VnuQ
Summary:
No bug, Automated HPKP preload list update from task NB7sJcsHTtqWs431n9VnuQ

No bug, Automated blocklist update from task NB7sJcsHTtqWs431n9VnuQ

Reviewers: sfraser

Reviewed By: sfraser

Differential Revision: https://phabricator.services.mozilla.com/D1012

--HG--
extra : rebase_source : d69fb8de90258fb3030bfcd323e1564247558972
2018-04-23 11:54:49 +01:00
J.C. Jones 6fad8e3ff1 Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus
(This also fixes Bug 879740 and Bug 1204543.)

build/pgo/certs contains an NSS database set that has a bunch of hand-generated
certificates, and many of these hand-generated certificates are specifically
depended upon for a variety of unit tests. This patch changes all of these to
use the "pycert.py" and "pykey.py" utilities that produce deterministic keys
and certificates.

The naming convention here is new, and defined in the README. It is based on
the mochitest runtest.py naming convention that imports .ca and .client
PEM-encoded certificates.

Unfortunately, the updates to build/pgo/genpgocert.py to generate these files
depends on OpenSSL in order to produce PKCS12 archives for pk11tool to import
into NSS. This could be done with pure-NSS tooling, but it'd require some new
command line functionality, which is out-of-scope for this change.

Note that build/pgo/genpgocert.py no longer takes arguments when run. It's not
run automatically anywhere that I can see, but could (reasonably) be, now.

Differential Revision: https://phabricator.services.mozilla.com/D971

--HG--
extra : amend_source : bc389b9b0a807a4889feb14db439daa28635dfe9
2018-04-23 11:14:17 +02:00
Jed Davis c5a7acdf32 Bug 1439057 - Tighten /dev/shm access in Linux content sandbox policy. r=froydnj,gcp
This patch uses the shared memory name prefixes introduced in bug 1447867
to prevent access to /dev/shm files of other applications or other
processes within the same browser instance.

When a shared memory implementation that doesn't use shm_open is available
(specifically, the memfd_create support to be added in bug 1440203),
/dev/shm access is completely denied.

MozReview-Commit-ID: L2ylG5KrXTU

--HG--
extra : rebase_source : ca1deece6117e843d691a13fff05bd0f97ec0408
2018-04-12 23:48:16 -06:00
Cosmin Sabou 4595d43d3a Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/modules/offlineAppCache.jsm => toolkit/modules/offlineAppCache.jsm
2018-04-20 01:29:10 +03:00
David Keeler 2c25bac533 bug 867473 - (4/4) remove nsIX509Cert.issuer and getChain r=jcj
These functions cause main-thread certificate verifications, which is bad for
performance. In general, nsIX509CertDB.asyncVerifyCertAtTime should be used
instead.

MozReview-Commit-ID: 9nkUDmyFY0k

--HG--
extra : rebase_source : d3e8a02e2d21e5507e71681b88f0360edf64b790
2018-04-17 13:07:52 -07:00
David Keeler df11944f15 bug 867473 - (3/4) replace use of nsIX509Cert.getChain() with an asynchronous API r=fkiefer,jcj
MozReview-Commit-ID: 8Ag6BrlyASU

--HG--
extra : rebase_source : 0c50d55c90301b19139d6f4a50694f1458d752f4
2018-04-17 12:41:23 -07:00
David Keeler 4ad6f791bc bug 867473 - (2/4) move certificate chain utility functions to a shared location r=fkiefer,jcj
MozReview-Commit-ID: JxlN95YLwRq

--HG--
extra : rebase_source : b4a5cacdc336cb8cfa0bad5a2a705667928e5167
2018-04-17 12:37:15 -07:00
David Keeler 98a4d728f8 bug 867473 - (1/4) refactor certificate chain utility functions in certViewer.js r=fkiefer,jcj
MozReview-Commit-ID: EvDtrr4t1ZO

--HG--
extra : rebase_source : a0787be343b55466135c02d944f3c199310b8d51
2018-04-17 12:33:04 -07:00
Nika Layzell 5e2e5fc993 Bug 1444991 - Part 5: Make some XPCOM methods more strongly typed, r=bz
This patch goes through and changes a bunch of places in our tree which mention
this bug to use the new feature, making the methods more strongly typed.

There are probably more places in tree which could be changed, but I didn't try
to find them.
2018-04-17 19:21:05 -04:00
ffxbld 34c1dbb780 No bug, Automated HSTS preload list update from task H62DxEEORdK66XAfNOW16w
Summary:
No bug, Automated HPKP preload list update from task H62DxEEORdK66XAfNOW16w

No bug, Automated blocklist update from task H62DxEEORdK66XAfNOW16w

Reviewers: sfraser

Reviewed By: sfraser

Differential Revision: https://phabricator.services.mozilla.com/D990

--HG--
extra : rebase_source : 37159492c64768f9d70c08d38756c5c749b949a8
2018-04-19 14:28:52 +01:00
Tim Taubert 090ee0f18b Bug 1445731 - land NSS 3e452651e282 UPGRADE_NSS_RELEASE, r=me 2018-04-19 10:27:14 +02:00
shindli 805cb19c1d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-17 01:45:58 +03:00
ffxbld dfc349cf61 No bug, Automated HSTS preload list update from task bXFc8JIdQA-9jXbS0HWQ5Q
Summary: No bug, Automated HPKP preload list update from task bXFc8JIdQA-9jXbS0HWQ5Q

Reviewers: sfraser

Reviewed By: sfraser

Differential Revision: https://phabricator.services.mozilla.com/D949

--HG--
extra : rebase_source : d7e310d16a0e74b84b3317c379b16ab1d14224bc
2018-04-16 11:54:18 +01:00
Tim Taubert 4dba84fc9a Bug 1445731 - land NSS c1a4035420c3 UPGRADE_NSS_RELEASE, r=me 2018-04-16 10:09:12 +02:00
Bob Owen df78972f84 Bug 1453929: Enable handle verifier on 32-bit EARLY_BETA_OR_EARLIER. r=jimm 2018-04-14 20:24:07 +01:00
ffxbld 63b501185d No bug, Automated HPKP preload list update from host bld-linux64-spot-324 - a=hpkp-update 2018-04-13 13:48:38 -07:00
ffxbld 2bdc792b00 No bug, Automated HSTS preload list update from host bld-linux64-spot-324 - a=hsts-update 2018-04-13 13:48:34 -07:00
Sebastian Hengst 043061beb5 merge mozilla-central to mozilla-inbound 2018-04-13 16:05:58 +03:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
arthur.iakab ac8dce248c Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-13 12:58:18 +03:00
Kris Maglione f3fde21a8b Bug 1453835: Remove unused nsIDataSignatureVerifier utility. r=keeler
MozReview-Commit-ID: ElmHAzKu9TA

--HG--
extra : rebase_source : 20baffc4e0cb175327cc2edc4a6cacb762a9e378
2018-04-12 16:19:49 -07:00
Gurzau Raul 7334578c1a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-13 02:14:09 +03:00
ffxbld dd8da1bdb9 No bug, Automated HPKP preload list update from host bld-linux64-spot-325 - a=hpkp-update 2018-04-12 13:46:52 -07:00
ffxbld ad2621e3a9 No bug, Automated HSTS preload list update from host bld-linux64-spot-325 - a=hsts-update 2018-04-12 13:46:48 -07:00
Bob Owen 74c27857c7 Bug 1453639: Call InitializeHandleVerifier before other sandbox calls. r=jimm 2018-04-13 08:42:56 +01:00
Margareta Eliza Balazs 1dff32311e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-12 12:46:52 +03:00
ffxbld 5fc7975f83 No bug, Automated HPKP preload list update from host bld-linux64-spot-325 - a=hpkp-update 2018-04-11 20:02:24 -07:00
ffxbld b3933f31e5 No bug, Automated HSTS preload list update from host bld-linux64-spot-325 - a=hsts-update 2018-04-11 20:02:20 -07:00
Franziskus Kiefer 96474d646c Bug 1450967 - MITM error string update, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D894

--HG--
extra : rebase_source : fe99a9d36c0a08b129f3008ac7b5e7b0dc1dd2ca
2018-04-12 08:44:31 +02:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Kai Engert 45369f09f3 Bug 1445731, land NSS 2eefd697d661 UPGRADE_NSS_RELEASE, r=me 2018-04-11 12:54:08 +02:00
arthur.iakab 280690d83e Merge mozilla-central to inbound 2018-04-11 01:02:05 +03:00
Nika Layzell 0c3ba13e4c Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj 2018-04-10 17:49:47 -04:00
ffxbld a822851bc4 No bug, Automated HPKP preload list update from host bld-linux64-spot-327 - a=hpkp-update 2018-04-10 13:54:43 -07:00
ffxbld 7951af6d38 No bug, Automated HSTS preload list update from host bld-linux64-spot-327 - a=hsts-update 2018-04-10 13:54:39 -07:00
Jan Beich 4c4327e871 Bug 1452509 - Make -DMOZ_ALSA global and prune duplicate -DMOZ_PULSEAUDIO. r=froydnj
MozReview-Commit-ID: 6O0pkscXczw

--HG--
extra : rebase_source : 0d8dffa1f8e4942b3fe8832ad860409ec24784a2
2018-03-19 02:13:04 +00:00
David Keeler fd3dbbaaa3 bug 1453741 - (2/2) remove nsIX509CertDB.findCertByEmailAddress r=fkiefer,jcj
nsIX509CertDB.findCertByEmailAddress performs multiple certificate verifications
on the main thread, which is bad because it blocks the main thread and can cause
nested event loop spinning. Firefox doesn't even use this function. Other
products that use this function will either have to re-implement it locally or
find some other workaround.

MozReview-Commit-ID: HShl0H8cgxs

--HG--
extra : rebase_source : 63ee16b600ca7c2867352ee1ad791eb79b82a77c
2018-04-12 12:46:25 -07:00
David Keeler 2b9926416f bug 1453741 - (1/2) remove nsIX509CertDB.verifyCert{AtTime,Now} r=fkiefer,jcj
These functions perform certificate verification on the main thread, which is
already a bad idea. They can also cause OCSP requests to be made from the main
thread, which will cause nested event loop spinning, which is an even worse
idea. Luckily this really only affects tests.

MozReview-Commit-ID: LqDAgDmlyER

--HG--
extra : rebase_source : c86414db0b6d6e7e83b5e3f371506b773813cdbf
2018-04-11 16:23:48 -07:00
Andreea Pavel 8e723a7457 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-10 00:55:35 +03:00
ffxbld be73b556ca No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-04-09 13:41:47 -07:00
ffxbld f6fd590531 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-04-09 13:41:43 -07:00
Bob Owen aaef814fdc Bug 1452090: Only enable handle verifier on 32-bit Nightly and debug builds. r=jimm
This also adds the ability to enable it using the environement variable
MOZ_ENABLE_HANDLE_VERIFIER.
2018-04-09 19:22:28 +01:00
ffxbld ed89d1323c No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2018-04-08 13:36:33 -07:00
ffxbld 47fd054933 No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2018-04-08 13:36:29 -07:00
ffxbld 115b36861c No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2018-04-07 13:43:15 -07:00
ffxbld 56215bff29 No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2018-04-07 13:43:11 -07:00
Noemi Erli eb61878455 Merge inbound to mozilla-central. a=merge 2018-04-07 00:55:15 +03:00
ffxbld befd24c6b5 No bug, Automated HPKP preload list update from host bld-linux64-spot-327 - a=hpkp-update 2018-04-06 13:51:28 -07:00
ffxbld 22c60c2e4c No bug, Automated HSTS preload list update from host bld-linux64-spot-327 - a=hsts-update 2018-04-06 13:51:24 -07:00
Franziskus Kiefer 29fd899298 Bug 1450967 - mitm detection v0.0.1, r=keeler,johannh
Differential Revision: https://phabricator.services.mozilla.com/D839

--HG--
extra : amend_source : 7f1df88370d425230cfbe656742c30255dc6e08e
2018-03-16 11:36:50 +01:00
ffxbld f148878e67 No bug, Automated HPKP preload list update from host bld-linux64-spot-326 - a=hpkp-update 2018-04-05 13:52:51 -07:00
ffxbld 5aba0e69b8 No bug, Automated HSTS preload list update from host bld-linux64-spot-326 - a=hsts-update 2018-04-05 13:52:47 -07:00
ffxbld b9a5abc6cb No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2018-04-04 13:55:30 -07:00
ffxbld 2586dc163b No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2018-04-04 13:55:26 -07:00
Cosmin Sabou 0ae0457289 Backed out changeset 5be07e86738e (bug 1439383) for causing leaks (bug 1401883). a=backout 2018-04-04 21:03:38 +03:00
Cosmin Sabou 91c9d08e42 Merge inbound to mozilla-central. a=merge 2018-04-04 20:53:53 +03:00
Margareta Eliza Balazs ca277b407b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-04 12:51:48 +03:00
Franziskus Kiefer 688a9261d7 Bug 1445731 - land NSS 954032211d2d UPGRADE_NSS_RELEASE, r=me 2018-04-04 10:45:13 +02:00
ffxbld ea8050e2b0 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2018-04-03 13:48:33 -07:00
ffxbld 08d5281463 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2018-04-03 13:48:29 -07:00
Ciure Andrei b861d14e56 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-04 00:56:56 +03:00
Jed Davis 17bafad434 Bug 1450740 - Don't sandbox network namespace when X11 named sockets aren't accessible. r=gcp
MozReview-Commit-ID: KiL4GwMms3a

--HG--
extra : rebase_source : 08cfd2325d081eb95a4a69805077828bfbb521ac
2018-04-02 15:19:04 -06:00
ffxbld 5158a406f7 No bug, Automated HPKP preload list update from host bld-linux64-spot-324 - a=hpkp-update 2018-04-02 14:03:17 -07:00
ffxbld 68c7ae8378 No bug, Automated HSTS preload list update from host bld-linux64-spot-324 - a=hsts-update 2018-04-02 14:03:13 -07:00
ffxbld dafc1094f6 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2018-04-01 19:11:09 -07:00
ffxbld bc62258c3c No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2018-04-01 19:11:05 -07:00
ffxbld f7fdb9dae5 No bug, Automated HPKP preload list update from host bld-linux64-spot-325 - a=hpkp-update 2018-03-31 14:00:13 -07:00
ffxbld 0cc199f815 No bug, Automated HSTS preload list update from host bld-linux64-spot-325 - a=hsts-update 2018-03-31 14:00:10 -07:00
ffxbld dd8e8d3d86 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-30 21:57:51 -07:00
ffxbld 796d46d5c5 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-30 21:57:48 -07:00
J.C. Jones c66f288715 Bug 1445731 - land NSS 6ae3ab8a1e7b UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : bffce425114dbe0f2cf6095dea5adc40aa09ea9e
2018-03-30 08:52:56 -07:00
David Keeler 3085269fe3 bug 1056341 - introduce a budget for path searching in mozilla::pkix to avoid unbounded search r=fkiefer,jcj
MozReview-Commit-ID: Ght1wx5lb34

--HG--
extra : rebase_source : 46ed1910c5c4fc5b3695f7ee593c2baebe45a9ff
2018-03-27 15:35:50 -07:00
Ciure Andrei 5d841a3421 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
ffxbld a9fc548e72 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2018-03-29 13:39:43 -07:00
ffxbld 768c746599 No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2018-03-29 13:39:39 -07:00
David Keeler d8435632fc bug 1424311 - don't persist the certificate exception dialog's size so it doesn't grow unboundedly r=jcj
window.sizeToContent() apparently interacts poorly with windows that have a
persisted size (see bug 90276, which is a 5-digit bug that hasn't been touched
in over a decade). As a workaround, don't persist the certificate exception
dialog's size. This means we have to call window.sizeToContent() more often and
unfortunately results in the window growing and shrinking again on Windows, but
at least it will always be the "right size" for its content.

MozReview-Commit-ID: 9UT3X8IEqZg

--HG--
extra : rebase_source : 9d968748bd77328eea4ae11e1ae746de9401fb4d
2018-03-28 13:43:03 -07:00
Gurzau Raul d117255a14 Merge inbound to mozilla-central. a=merge 2018-03-29 00:55:16 +03:00
ffxbld 3a0bbe90a6 No bug, Automated HPKP preload list update from host bld-linux64-spot-324 - a=hpkp-update 2018-03-28 13:43:42 -07:00
ffxbld cb9393f7c7 No bug, Automated HSTS preload list update from host bld-linux64-spot-324 - a=hsts-update 2018-03-28 13:43:38 -07:00
Bob Owen cfaaf3c336 Bug 1449480: Don't crash in opt builds when scoped_handle.cc CloseHandleWrapper fails. r=jimm
I'm not adding a patch to security/sandbox/chromium-shim/patches for this,
because we need to get this fixed ASAP, certainly before we take another update.
2018-03-28 16:07:15 +01:00
Margareta Eliza Balazs 7f19ad998a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-28 00:59:33 +03:00
Margareta Eliza Balazs adebb06ac1 Merge inbound to mozilla-central. a=merge 2018-03-28 00:48:11 +03:00
ffxbld a359cb4b0f No bug, Automated HPKP preload list update from host bld-linux64-spot-326 - a=hpkp-update 2018-03-27 13:35:58 -07:00
ffxbld 75fdd4ddaf No bug, Automated HSTS preload list update from host bld-linux64-spot-326 - a=hsts-update 2018-03-27 13:35:54 -07:00
Bogdan Tara 302a55b534 Merge inbound to mozilla-central. a=merge 2018-03-27 12:12:57 +03:00
Coroiu Cristina ed9d3656c8 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-03-26 23:58:59 +03:00
ffxbld a3336ea2e2 No bug, Automated HPKP preload list update from host bld-linux64-spot-324 - a=hpkp-update 2018-03-26 13:20:52 -07:00
ffxbld 9eb99d8544 No bug, Automated HSTS preload list update from host bld-linux64-spot-324 - a=hsts-update 2018-03-26 13:20:48 -07:00
Henri Sivonen 77b94189e1 Bug 1448756 - Use AssignLiteral and AssignASCII for short zero-terminated strings in PSM. r=keeler.
MozReview-Commit-ID: 9GUHkUG6SlP

--HG--
extra : rebase_source : 593c57761877018db8c7f4acfd7f0f8251060074
2018-03-26 09:13:14 +03:00
David Keeler b0d30e4bf9 bug 1449060 - remove some dynamic OIDs from the certificate viewer that don't serve any purpose r=fkiefer
MozReview-Commit-ID: IccdDvYMTP4

--HG--
extra : rebase_source : bedc23b8b49cc6f4fedf5d7f17932bc971e78d20
2018-03-26 17:21:04 -07:00
Franziskus Kiefer 5c6b90f0b8 Bug 1448787 - separate error for self-signed certs, r=keeler,johannh
Reviewed By: keeler, johannh

Bug #: 1448787

Differential Revision: https://phabricator.services.mozilla.com/D805

--HG--
extra : rebase_source : 3a9317445c7df5f09675da67888930304b75fc4b
2018-03-29 11:51:33 +02:00
Bob Owen 039665fa5e Bug 1447019 Part 3: Use MITIGATION_WIN32K_DISABLE for GMP processes based on a pref. r=jimm 2018-03-27 14:09:32 +01:00
Bob Owen 41ce6696f9 Bug 1447019 Part 2: Move running from a network drive check into WinUtils. r=jimm 2018-03-27 14:09:32 +01:00
Franziskus Kiefer 806baa5430 Bug 1415279 - Move error strings for certError and netError pages to frontend, r=johannh,keeler,Honza,snorp
This patch moves all TLS error string handling to the frontend.
Dev-tools doesn't show the same error code as the page does anymore but only the error code as string.
All logging of these error messages has been removed.

Bug #: 1415279

Differential Revision: https://phabricator.services.mozilla.com/D607

--HG--
extra : rebase_source : 61e2d94cb21ef4c02b81448531609205c85a9707
2018-03-27 13:31:52 +02:00
ffxbld 5dd69d1516 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2018-03-25 13:32:21 -07:00
ffxbld 97b38a3ffb No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2018-03-25 13:32:17 -07:00
shindli 2640499cc4 Merge autoland to mozilla-central. a=merge 2018-03-25 12:32:20 +03:00
ffxbld 854a93183e No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-25 00:41:27 -07:00
ffxbld 65b51bcedd No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-25 00:41:23 -07:00
ffxbld d380323764 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-24 00:08:51 -07:00
ffxbld 090a596545 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-24 00:08:47 -07:00
J.C. Jones 2e7f40ab63 Bug 1445731 - land NSS 1bde21f90bd1 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : b23946c3f8f8ca33b1fe42f67febe604d36c6411
2018-03-22 14:40:30 -07:00
Doug Thayer 7874b62da6 Bug 1444290 - Forget bg SDR runnable reference when dispatching r=froydnj
We're seeing a crash in tests from trying to release the promise in
this runnable from the background thread we create to run this
method. The only way I can see that happening is that the bg thread
loses the race with the main thread to drop its reference to the
runnable, causing it to call the destructor. Rather than calling the
helper that adds a reference to the runnable and then forgets it,
let's just forget it here.

MozReview-Commit-ID: LXpC8Kr2SBb

--HG--
extra : rebase_source : bfed3ed4128c6a3ede6f06feed1f50cb9f30e485
2018-03-22 09:31:40 -07:00
Mathieu Leplatre 76bc359e79 Bug 1397230 - Generalize blocklist clients to remote settings clients r=mgoodwin
MozReview-Commit-ID: 9VAsTFCuZUf

--HG--
rename : services/common/tests/unit/test_blocklist_updater.js => services/common/tests/unit/test_remote_settings_poll.js
extra : rebase_source : 9da338f18f3860e124b315a8be3340997343e2f3
2018-03-13 16:23:57 +01:00
ffxbld ecdda28482 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2018-03-22 13:22:03 -07:00
ffxbld a305f35f68 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2018-03-22 13:21:59 -07:00
ffxbld 55d5f75f65 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2018-03-21 13:10:14 -07:00
ffxbld b8bfc106c1 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2018-03-21 13:10:10 -07:00
Cosmin Sabou 66b7c55e79 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-21 00:51:18 +02:00
Cosmin Sabou 52c9a5448e Merge inbound to mozilla-central. a=merge 2018-03-21 00:24:33 +02:00
Cosmin Sabou 0457be96b5 Merge autoland to mozilla-central. a=merge 2018-03-21 00:23:17 +02:00
ffxbld 5fe3417f0b No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2018-03-20 13:10:29 -07:00
ffxbld ff82f5097d No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2018-03-20 13:10:25 -07:00
J.C. Jones 7780b45b3a Bug 1445731 - land NSS c5dffd6269ea UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : a740ebebda8a9894cfebcff25d21a9430c478f96
2018-03-20 10:17:35 -07:00
J.C. Jones 175c45e2dc Bug 1444440 - Ensure the correct error is emitted for policy distrusts r=keeler
Bug 1441223 added MOZILLA_PKIX_ERROR_ADDITIONAL_POLICY_CONSTRAINT_FAILED to be
emitted when we hit certificates affected by the Symantec distrust.

Since some sites have multiple certificate trust paths possible, sometimes
SEC_ERROR_UNKNOWN_ISSUER is emitted instead of the more specific error.

This patch uses a flag to ensure that the specific error is emitted out of the
Cert Verifier.

--HG--
extra : rebase_source : a961d2e713ae342222d85dff6f83ed3bcaa8006b
2018-03-14 14:01:35 -07:00
Margareta Eliza Balazs 922c555275 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-20 19:00:25 +02:00
David Keeler bade5ee518 bug 1439383 - clean up the load loadable roots thread when we're done with it r=froydnj,jcj
MozReview-Commit-ID: J5GnpwxYguz

--HG--
extra : rebase_source : 14abdefbbee91b13ae26104d093e6fba20432c05
2018-03-16 16:50:19 -07:00
Bob Owen cf86e40aa1 Bug 1445167 Part 2: Make LOG_FATAL messages in chromium sandbox code crash. r=jld 2018-03-20 10:45:31 +00:00
Bob Owen af1e9f58c5 Bug 1445167 Part 1: Revert change to make USER_NON_ADMIN a blacklist. r=handyman
This is only used by default in the file content process now and we also have a
FILES_ALLOW_READONLY rule for all paths anyway.
2018-03-20 10:42:05 +00:00
ffxbld 19da7222e8 No bug, Automated HPKP preload list update from host bld-linux64-spot-326 - a=hpkp-update 2018-03-19 13:10:23 -07:00
ffxbld 43d9f7b3ef No bug, Automated HSTS preload list update from host bld-linux64-spot-326 - a=hsts-update 2018-03-19 13:10:19 -07:00
ffxbld 7f196c986b No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2018-03-17 13:08:00 -07:00
ffxbld 36c23ec671 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2018-03-17 13:07:56 -07:00
ffxbld fed3513bca No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-16 12:56:58 -07:00
ffxbld b97ded4fa8 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-16 12:56:54 -07:00
Sylvestre Ledru fa45a3c670 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR

--HG--
extra : rebase_source : 5f5e37517aa80c2e7b5933962178d761074886e7
2018-03-16 14:29:15 +01:00
Haik Aftandilian 331dda9367 Bug 1444291 - Part 3 - Add read access to the Mac Flash sandbox, support sandbox levels r=Alex_Gaynor
Replace the boolean pref "security.sandbox.mac.flash.enabled"
with "dom.ipc.plugins.sandbox-level.flash" to support sandbox
levels and be consistent with the Windows pref name.

Adds filesystem read access to the sandbox using sandbox extensions
granted by the file dialog machinery (level 1).

Add support for level 2 which blocks read access.

Allow the sandbox to be disabled with MOZ_DISABLE_NPAPI_SANDBOX.


MozReview-Commit-ID: 4rfobEoxQpF

--HG--
extra : rebase_source : 05dc54b46063967e959bc3fced21c61e5463de48
2018-03-15 20:23:19 -07:00
Haik Aftandilian b8c5b2eae6 Bug 1444291 - Part 2 - Add additional sysctl access to the Mac Flash sandbox r=Alex_Gaynor
Adds additional sysctls that are used by the Flash plugin process and alphabetize the list.

MozReview-Commit-ID: 7CaPtaKe874

--HG--
extra : rebase_source : 909228ef9617029eaf7cb16565751150cd1c7404
2018-03-07 22:07:27 -08:00
Haik Aftandilian 09693ee75d Bug 1444291 - Part 1 - Reduce Mac Flash sandbox cache and temp dir permissions r=Alex_Gaynor
Remove access to DARWIN_USER_CACHE_DIR. Limit DARWIN_USER_TEMP_DIR
access to the FlashTmp subdirectory. Remove xattr read access to
~/Library/Caches/ and ~/Library/Preferences.

MozReview-Commit-ID: 9svk0BoxVXs

--HG--
extra : rebase_source : 5ea9c7ecc0189455eceb190fb300170d42d0b890
2018-03-15 17:33:12 -07:00
Sebastian Hengst d247fb5f4e Bug 1445763 - Update moz.build meta data with "Firefox Build System". r=froydnj
MozReview-Commit-ID: 3FrWJ6441pe

--HG--
extra : rebase_source : c8f1dc45041132252e28869ada6a386270267431
2018-03-14 21:44:46 +01:00
Coroiu Cristina 62bb56ad86 Backed out 3 changesets (bug 1444291) for bustage at build/src/dom/plugins/ipc/PluginProcessChild.cpp
Backed out changeset 48a9c2131347 (bug 1444291)
Backed out changeset dfc31b6c9f53 (bug 1444291)
Backed out changeset 8ee3e65465ed (bug 1444291)
2018-03-16 03:07:35 +02:00
Haik Aftandilian 3aaa8d9f78 Bug 1444291 - Part 3 - Add read access to the Mac Flash sandbox, support sandbox levels r=Alex_Gaynor
Replace the boolean pref "security.sandbox.mac.flash.enabled"
with "dom.ipc.plugins.sandbox-level.flash" to support sandbox
levels and be consistent with the Windows pref name.

Adds filesystem read access to the sandbox using sandbox extensions
granted by the file dialog machinery (level 1).

Add support for level 2 which blocks read access.

Allow the sandbox to be disabled with MOZ_DISABLE_NPAPI_SANDBOX.


MozReview-Commit-ID: 4rfobEoxQpF

--HG--
extra : rebase_source : 87f2f00867c4522ae3102abbc44fd05db63c7ec7
2018-03-13 15:38:11 -07:00
Haik Aftandilian d1fbc6bb50 Bug 1444291 - Part 2 - Add additional sysctl access to the Mac Flash sandbox r=Alex_Gaynor
Adds additional sysctls that are used by the Flash plugin process and alphabetize the list.

MozReview-Commit-ID: 7CaPtaKe874

--HG--
extra : rebase_source : 078697987ac7fec77c75953035b924422fc93066
2018-03-07 22:07:27 -08:00
Haik Aftandilian 018807a65d Bug 1444291 - Part 1 - Reduce Mac Flash sandbox cache and temp dir permissions r=Alex_Gaynor
Remove access to DARWIN_USER_CACHE_DIR. Limit DARWIN_USER_TEMP_DIR
access to the FlashTmp subdirectory. Remove xattr read access to
~/Library/Caches/ and ~/Library/Preferences.

MozReview-Commit-ID: 9svk0BoxVXs

--HG--
extra : rebase_source : 669c4fa446c9cab6b32cf60091e91eae2d08625f
2018-03-15 17:33:12 -07:00
Coroiu Cristina 51fd916771 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-03-16 01:43:13 +02:00
J.C. Jones 7c82a66a30 Bug 1445731 - land NSS f0d4789c8916 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : e5f6d2e5e607bc624847e5b95904be2901832368
2018-03-15 09:00:48 -07:00
David Keeler c4fc9f6fe3 bug 1444943 - set NSS_SDB_USE_CACHE to yes if the profile is on an nfs mount r=jcj
MozReview-Commit-ID: 44DxZxmlSlG

--HG--
extra : rebase_source : 46c5860085730c828efd709132ba0e5860762bb5
2018-03-13 13:34:17 -07:00
Andreea Pavel 46575fad3b Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-15 00:10:23 +02:00
Bob Owen f2f76a9b94 Bug 1445614: Only warn when SetAlternateDesktop fails. r=jimm 2018-03-14 18:39:36 +00:00
Gurzau Raul f785df755d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-14 00:44:06 +02:00
Boris Zbarsky 3857fba2a3 Bug 1444686 part 9. Remove use of nsIDOMDataTransfer from nsITreeView. r=mystor
MozReview-Commit-ID: Dpn7YSZpDsc
2018-03-13 16:24:00 -04:00
ffxbld b5dd183a38 No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2018-03-13 13:05:28 -07:00
ffxbld b49fb0c95f No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2018-03-13 13:05:24 -07:00
Andreea Pavel 8fa0b32c84 Merge mozilla-inbound to mozilla-cenral. a=merge 2018-03-13 19:01:32 +02:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Gian-Carlo Pascutto 4fb9bf8576 Bug 1416016 - Resolve symlinks in the file broker as a last resort. r=jld
MozReview-Commit-ID: B7OMyARk9u8

--HG--
extra : rebase_source : 1106c8f877f748a2ef7e6af3b8e6965a3cf67e33
2018-03-09 21:14:39 +01:00
Jed Davis 0b5eeab7a5 Bug 1445003 - Detect RenderDoc and adjust the sandbox policy so it can work. r=gcp
RenderDoc, a graphics debugging tool, uses a preload library that
creates a listening socket (Internet-domain) early in startup and
accepts connections from the frontend.  If it's detected (via env vars),
we allow accept/accept4 (but not socket/bind/listen), and remain in
the parent process's network namespace so that other processes can
connect to the socket.

This doesn't change the sandbox policy if not running under RenderDoc.

MozReview-Commit-ID: 964RW4BFh4u

--HG--
extra : rebase_source : d4a954e68431d84fa2e0edea4171421a948794af
2018-03-12 20:21:08 -06:00
Noemi Erli ac0a30f58c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-13 01:16:04 +02:00
Margareta Eliza Balazs d6d1b8a6a5 Merge inbound to mozilla-central. a=merge 2018-03-13 01:10:10 +02:00
ffxbld 1373cc1dac No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-12 12:54:30 -07:00
ffxbld 34f58199be No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-12 12:54:26 -07:00
ffxbld 426a7d1158 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-11 13:00:15 -07:00
ffxbld 1c871585db No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-11 13:00:11 -07:00
ffxbld a815a036e1 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-10 12:28:53 -08:00
ffxbld 88badf8d2f No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-10 12:28:49 -08:00
Noemi Erli 40b1baaab5 Merge inbound to mozilla-central. a=merge 2018-03-10 11:58:34 +02:00
Jed Davis 6c8bcd4625 Bug 1440206 - Allow brokered access to a subset of connect() in the Linux content sandbox. r=gcp
This is to support WebGL with hybrid graphics drivers that connect to
a secondary X server for GL (Primus and VirtualGL), without allowing
access to arbitrary sockets.  In addition to local X11 connections,
Primus needs to connect to the Bumblebee daemon (otherwise it will exit
the calling process).

The broker support is limited to AF_UNIX, to non-datagram sockets (see
bug 1066750), and to pathname addresses.  Abstract addresses could
theoretically be handled but there isn't currently a compelling reason
to, and the broker very much assumes it's dealing with a C-style string
referring to a filesystem path and not an arbitrary byte sequence
(including NULs).

At a higher level: If the GPU X server is remote then it won't work,
but it won't work anyway because WebGL requires features that aren't
supported by indirect GLX.  If the GPU X server is local but the browser
is inside a chroot, it will fail to connect unless /tmp/.X11-unix is
bind-mounted into the chroot; hopefully this use case is not common.

MozReview-Commit-ID: IvI2jYDRZZ2
2018-03-09 19:31:23 -07:00
ffxbld 1ab76f70a0 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-09 12:00:09 -08:00
ffxbld 1c25759cc3 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2018-03-09 12:00:05 -08:00
Jed Davis 60310ac5ad Bug 1434392 - Don't preload libmozsandbox in grandchild processes, only the sandboxed children themselves. r=gcp
--HG--
extra : rebase_source : a2c784640c65e0e476fc6ccf8639581462902c86
2018-03-07 18:55:20 -07:00
Kris Maglione c09b0c1a99 Bug 1446833: Part 2 - Stop using Task.jsm in xpcshell/head.js. r=florian
MozReview-Commit-ID: 6vSpwih9Fnr

--HG--
extra : rebase_source : 9ca452486f144a35514f00742722b6a59efadacd
extra : histedit_source : af6cc6fef47116a4c98113fcd4fd157217a75106
2018-03-18 15:27:04 -07:00
Franziskus Kiefer 253cd4b75b Bug 1443744 - fix shadowing issues in pkix, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D689
2018-03-07 10:54:59 +01:00
David Keeler 8bcd4a3c85 bug 1435376 - set NSS_SDB_USE_CACHE to yes if the profile is on a remote drive (windows version) r=jcj,mhowell
MozReview-Commit-ID: 4b1v8ypljoR

--HG--
extra : rebase_source : 393d45fd110ad2e3467feb77eadf145bb08ddef2
2018-03-08 15:13:52 -08:00
Gian-Carlo Pascutto f32916cd1e Bug 1434711 - WebGL causes a crash with the AMDGPU-PRO video driver. r=jld
Factor out the ATI-based driver detection code and use this to set
specific permissions needed by this driver. In passing, unnest some
of the SandboxBroker fallback paths, and make it properly report
the operation in all error paths.

MozReview-Commit-ID: FrRpicj5NF

--HG--
extra : rebase_source : 1410cdddcf1264dc1572f9b9b691f9d08a2061cf
2018-03-29 14:04:46 +02:00
David Parks 6a70261b2b Bug 1450773 - Remove restricting SIDs from NPAPI sandbox outside of nightly builds. r=bobowen
Restricting SIDs, which harden the sandbox, have caused some problems that we are investigating in nightly and that we don't want in beta/release.
2018-04-02 15:27:07 -07:00
Andrea Marchesini 5784769019 Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
Gian-Carlo Pascutto dadfe06714 Bug 1438394 - Do SysV IPC check before bailing out early. r=jld
The SandboxLaunchPrepare currently bails out early if it detects a
lack of user namespaces. Hoist the check for drivers needing SysV
IPC up so it's done before that early exit, and the required env
variables get correctly set.

With this we no longer fail with a SIGSYS sandbox error, though
in a debug build we still crash because many assumptions in the
graphics stack get broken when that fails to initialize the driver
for WebGL.

MozReview-Commit-ID: 8n3Hx6VSjTF

--HG--
extra : rebase_source : 99bf2d25a7435b0eb95f186a00cc7723a196be4c
2018-03-07 19:05:00 +01:00