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

12340 Коммитов

Автор SHA1 Сообщение Дата
Jed Davis bb7bbfa321 Bug 1363378 - Set close-on-exec in sandbox-related sockets held by parent process. r=gcp
If these aren't close-on-exec, they can be inherited by the crash
reporter process after the parent process has crashed and exited,
causing child processes to continue running when the IPC I/O thread blocks
in the file broker trying to open a GeckoChildCrash temp file.
(Empirically, the main thread then blocks waiting for the I/O thread.)

Operations that run on dedicated threads, like playing media, may
continue even though the main and IPC threads are locked up, resulting in
videos that keep playing sound even though the browser seems to no longer
exist.

If the broker socket is closed as expected when the parent process
exits, the child will return failure from the brokered file operation
and then go on to get an IPC error due to the parent process's
nonexistence, and will exit as normal.

This patch makes the same change to rejected syscall reporting, even
though that's a one-way asynchronous message with no response to wait
for, just in case something goes wrong enough to fill the entire socket
buffer but not so badly broken that it would wind up in an infinite loop
anyway.

SOCK_CLOEXEC has been present since Linux 2.6.26, and it would be used
only if seccomp-bpf is available, so it should be safe to use
unconditionally.

MozReview-Commit-ID: 7tDPBJILzlj

--HG--
extra : rebase_source : b797655dff2eea88c406d83dcee4a859f2a038b7
2017-09-13 12:25:35 -06: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
Chris Manchester c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Gian-Carlo Pascutto 180dfb1325 Bug 1391494 - Enforce use of our own copy of strlcpy. r=jld
MozReview-Commit-ID: GQgGJBj1Hjc

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

MozReview-Commit-ID: AmsvDtvDGPt

--HG--
extra : rebase_source : fc537ef1a50db23b9e77cd48d3941d7e32228bec
2017-08-29 09:04:08 -04:00
Wes Kocher 2198196808 Merge inbound to central, a=merge
MozReview-Commit-ID: G6QZZ8RGk6n
2017-08-29 16:14:22 -07:00
Sebastian Hengst ca3d97b658 merge mozilla-central to autoland. r=merge a=merge 2017-08-29 20:31:58 +02:00
ffxbld 51b3d67a5e No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-08-29 10:26:53 -07:00
ffxbld 43dc7fc074 No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-08-29 10:26:49 -07:00
Wes Kocher 02b3fbee7e Merge autoland to central, a=merge
MozReview-Commit-ID: 5tolFjvaHmd
2017-08-28 17:38:53 -07:00
ffxbld cd82cacec2 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-08-28 10:24:57 -07:00
ffxbld 118d3feddb No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-08-28 10:24:53 -07:00
Sebastian Hengst 558aede67b merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-08-29 20:36:12 +02:00
Honza Bambas 5b733e5887 Bug 705755 - Handle SSL short-write correctly to save CPU looping. r=keeler
--HG--
extra : rebase_source : 9a8a68da1f60340c3565ef614bf95177111ed2f3
2017-08-29 09:34:00 -04:00
ffxbld 18c16ebf81 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-08-27 10:15:50 -07:00
ffxbld d4ecdb7fe4 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-08-27 10:15:46 -07:00
Wes Kocher 68149d6a59 Merge inbound to central, a=merge
MozReview-Commit-ID: 3N9jinnrmjb
2017-08-25 16:21:57 -07:00
Ryan VanderMeulen 89e125b817 Backed out changeset 121e4d470c11 (bug 1391703) for breaking periodic HSTS/HPKP updates. 2017-08-25 10:16:27 -04:00
Ryan VanderMeulen 2f60ba6fc6 Merge m-c to autoland. a=merge
CLOSED TREE

--HG--
extra : amend_source : 57c6e5e3155c1ad79d409f8a71c40704297b0600
2017-08-24 20:59:40 -04:00
Ryan VanderMeulen 3d0158833d Merge autoland to m-c. a=merge 2017-08-24 20:20:08 -04:00
Wes Kocher 4ea67d0e07 Backed out changeset e774700fe070 (bug 1392787) for build bustage a=backout CLOSED TREE
MozReview-Commit-ID: FRRUDa6rIuS
2017-08-24 13:58:52 -07:00
Andrew Halberstadt cae249f833 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : d907a5b2192687d86e3291a936c943948ed6793f
2017-08-22 16:56:02 -04:00
Dan Banner f1eb5aaa84 Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8
MozReview-Commit-ID: JOC1330iFnh

--HG--
extra : rebase_source : 2afcb219d4a0d78f996bdc2c841456d2dccff605
2017-08-23 13:38:24 +01:00
Jed Davis 11d8d1c88e Backed out 3 changesets (bug 1380701, bug 1384804)
Backed out changeset afdd35ed8902 (bug 1384804)
Backed out changeset 9fb892c41a9e (bug 1380701)
Backed out changeset 0d56979a6efa (bug 1380701)
2017-08-24 15:02:48 -06:00
James Forshaw 0b3b189961 Bug 1385928: Take new implementation of GetProcessBaseAddress from chromium commit f398005bc4ca0cc2dab2198faa99d4ee8f4da60d. r=jimm
This should fix issues we have seen with running Firefox from short name paths or moved binaries.
2017-08-15 09:29:46 +00:00
David Keeler d11da41c16 bug 1389664 - centralize on-demand empty pin initialization of the user's NSS database r=Cykesiopka,jcj
The sqlite-backed NSS database implementation requires explicitly setting some
kind of pin (password, really). To maintain behavior compatibility with the old
database implementation, we set the pin to the empty string as necessary.
Previously this would only happen on Android (NSS_DISABLE_DBM builds), but
because we're moving towards using the sqlite-backed implementation on all
platforms, we should enable this code everywhere and move it to a more central
location.

This also fixes some now-unnecessary test behavior.

MozReview-Commit-ID: KKtxmvOZt78

--HG--
extra : rebase_source : 0de061928bf63b62386a4e244b326610d32cd122
2017-07-18 15:05:58 -07:00
Haik Aftandilian 2cce1be1b0 Bug 1392988 - Firefox 55.02 on macOS High Sierra cannot play AES encrypted video. r=Alex_Gaynor
Adds access to video encoding/decoding services when running on macOS 10.13 High Sierra.

MozReview-Commit-ID: 6h4dZ6gkFtp

--HG--
extra : rebase_source : 8c5078b336631e3254fcaaf6727dff281c840159
2017-08-28 19:06:07 -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
Haik Aftandilian 3fbdb1b349 Bug 1382260 - Patch 2 - [Mac] Allow reading of font files from the content sandbox. r=Alex_Gaynor
MozReview-Commit-ID: 9W5aqQweFmd

--HG--
extra : rebase_source : 9aa778bc08bee206e7f3340eac32ca2f46a4f81b
2017-08-18 16:12:07 -07:00
Haik Aftandilian c90d8c6594 Bug 1382260 - Patch 1 - Fix file access test bug. r=Alex_Gaynor
Fix the file access check by adding missing parentheses to isDirectory method call.

Don't run the cookies file check on Linux because the test profile is read accessible due to being in /tmp.

MozReview-Commit-ID: lps2hk8f5U

--HG--
extra : rebase_source : 5fba75d65081e56df5a0d171c41689c489a3aace
2017-08-22 10:11:01 -07: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
Rok Garbas f3a3affcf2 Bug 1284475 - migrate ToolTool blueprint to new codebase of relengapi r=KWierso
UPGRADE_NSS_RELEASE a=kaie
MozReview-Commit-ID: 7CB1VYb8OJP

--HG--
extra : rebase_source : 04751620add813cd1780898d109d9f7fa89d7b2d
2017-08-08 10:55:52 +02: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
Wes Kocher b0c8473e3b Merge autoland to central, a=merge
MozReview-Commit-ID: 6Q3iErm6jCn
2017-08-21 14:30:39 -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
Jed Davis a2bdc51dd8 Bug 1384986 - Adjust sandbox policy for dconf's `mkdir -p` behavior. r=gcp
MozReview-Commit-ID: HNvOXNJTc1W

--HG--
extra : rebase_source : 76edd1008731838fc89a5581fee818328d5847e1
2017-08-10 19:02:22 -06:00
Jed Davis 3460ce99ac Bug 1384986 - Prevent sandbox file broker rules from removing rights granted by more general rules. r=gcp
Generally, the intent for the Add* methods is that they always grant
rights in addition to what's already in the policy, not remove them;
this makes subtree rules that overlap single-file rules follow that
principle.

This requires a global analysis because the conflicting rules can be
added in any order.  It does not currently attempt to handle prefix
rules that aren't at a path component boundary, because that's not a
problem we currently have.

MozReview-Commit-ID: 4kv6QoGCBTV

--HG--
extra : rebase_source : 9e41263bbb1c07b8cde40ec2e72d746f17278fcb
2017-08-10 21:38:25 -06:00
Sebastian Hengst de6f7dc3a1 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-08-25 13:21:40 +02:00
Franziskus Kiefer cc0ea301c1 Bug 1386955 - land NSS fff2c933097d UPGRADE_NSS_RELEASE, r=me
MozReview-Commit-ID: 5eTpylXNFGc

--HG--
extra : rebase_source : 7e0b45f6dc9d9d8c29687573907e90211d05b6c4
2017-08-25 09:37:32 +02:00
Kris Maglione f80c50c88d Bug 1402944: Part 2 - Move error string logic into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 4rOeoliLTV7

--HG--
extra : rebase_source : 3e9b1151e8dbc812623ae2fd05895b7362e322f1
2017-09-22 18:43:18 -07:00
Stephanie Ouillon 73e9f686e8 Bug 1343202 - Utility function for decoding an InclusionProof structure; r=ckerschb,keeler
MozReview-Commit-ID: 1x2Cwan8nLL

--HG--
extra : rebase_source : 079a8945f4d04be06dd99b776246d9b96930613a
2017-08-18 09:50:49 +02:00
Stephanie Ouillon 3bac94ec4a Bug 1343202 - Move Buffer definition into its own file; r=keeler,rbarnes
MozReview-Commit-ID: JHAXllvfG3x

--HG--
extra : rebase_source : 4c18c882bea0f1d4f507baa47910672d80d73c72
2017-08-17 09:23:29 +02:00
Sebastian Hengst e126b4f2a9 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: o58z45INT1
2017-08-20 23:21:44 +02: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
Phil Ringnalda 9359f5bf39 Merge inbound to m-c, a=merge
MozReview-Commit-ID: LCCoXUsCtmv
2017-08-19 15:29:10 -07:00
Phil Ringnalda 17fd8b2be0 Merge autoland to m-c, a=merge
MozReview-Commit-ID: KDZlJPKkuwR
2017-08-19 15:28:08 -07:00
Sebastian Hengst 4a4349b10c Backed out changeset 10660affe7a3 (bug 1387569) 2017-08-19 20:21:55 +02: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
Chris Peterson 9ce1ea9579 Bug 1389851 - sandbox: Suppress -Wunreachable-code-return warning in third-party Chromium sandbox code. r=jld
security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc:277:12: warning: 'return' will never be executed [-Wunreachable-code-return]

This return statement is unreachable because SANDBOX_DIE() is a noreturn function:

https://searchfox.org/mozilla-central/rev/a887f0edbd9f6b176b64111455ba62bb0cf356a6/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc#270-274

MozReview-Commit-ID: HDxBJe2ZtPN

--HG--
extra : rebase_source : 07f6cbcf901a54901cc5ea85b84030ea27a668ba
extra : source : f39f78b1a9851d97c6fd7dcbbd1d7ba93e933e08
2017-08-09 18:45:16 -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
Franziskus Kiefer 113c7ca5f7 Backed out changeset 0777ec282546 (bug 1386955) due to test bustage UPGRADE_NSS_RELEASE,
--HG--
extra : amend_source : 54f64cfc4296249d79d9374be3c8f2ee89f26400
2017-08-17 16:16:08 +02:00
Carsten "Tomcat" Book 99aa3f8e70 Merge mozilla-central to mozilla-inbound 2017-08-17 13:13:10 +02:00
Franziskus Kiefer 74e77f7e73 Bug 1386955 - land NSS 984849c0a0f1 UPGRADE_NSS_RELEASE, r=me 2017-08-17 11:57:16 +02: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
Sylvestre Ledru e15bcf0f43 Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc for a chromium file (exists from gcc 7) r=gcp
MozReview-Commit-ID: cuQuFcAnWL

--HG--
extra : rebase_source : 37dec684e14b1d02dab04729c718b5da1fcb25a4
2017-08-06 19:06:36 +02:00
Phil Ringnalda 366675feaa Merge m-c to autoland
MozReview-Commit-ID: GCxEZcmHL2w
2017-08-19 15:34:44 -07:00
Sylvestre Ledru 7b612087c3 Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc for a chromium file (exists from gcc 7) r=gcp
MozReview-Commit-ID: cuQuFcAnWL

--HG--
extra : rebase_source : d67074f94feabc1b32f64e6e988fa2222db626d7
2017-08-06 19:06:36 +02:00
Wes Kocher c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Phil Ringnalda 1ca83fd296 Backed out 5 changesets (bug 1387569) for Windows static build bustage
Backed out changeset eeda521ba0ad (bug 1387569)
Backed out changeset 8d23caf2ccc7 (bug 1387569)
Backed out changeset b5f969313f81 (bug 1387569)
Backed out changeset f642bc883aa5 (bug 1387569)
Backed out changeset 20151eabffea (bug 1387569)

MozReview-Commit-ID: IH0XXePvhiL
2017-08-19 12:20:26 -07:00
Sylvestre Ledru deeb6caa20 Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc for a chromium file (exists from gcc 7) r=gcp
MozReview-Commit-ID: cuQuFcAnWL

--HG--
extra : rebase_source : 28b30810aa4cf45d1d393bd94815b39ca81f43da
2017-08-06 19:06:36 +02:00
Wes Kocher 366445521c Merge m-c to autoland, a=merge
MozReview-Commit-ID: DjSlrmDFfe3
2017-08-16 17:14:41 -07: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
Wes Kocher 9a955fd0b3 Backed out 2 changesets (bug 1380701) for bustage in SandboxBroker a=backout
Backed out changeset 6cef83dd4d11 (bug 1380701)
Backed out changeset 4456ebfe5657 (bug 1380701)

MozReview-Commit-ID: Cnfj7TZvCbv
2017-08-16 09:46:48 -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
Jed Davis 898bd21752 Bug 1380701 - Remove the file broker protocol support for two-path operations. r=gcp
Now that all of the operations that took two paths are removed, we can
have less string manipulation running on untrusted inputs in a trusted
context.

Note that the path isn't null-terminated in transit, because we know
the message length and there's no longer any need to delimit anything.
(This is how the protocol worked before the two-path operations were
added.)

MozReview-Commit-ID: 5VHkMoPlWmU

--HG--
extra : rebase_source : 2108a4f7c7bf5098f2ef63786c3675367bd56e19
2017-08-16 15:09:56 -06: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
Jed Davis a7d1fe2b5f Bug 1380701 - Remove brokering for link, unlink, and rename. r=gcp
In testing (local and CI) these seem to no longer be used.

MozReview-Commit-ID: 2D3C8eWoIsB

--HG--
extra : rebase_source : dde2015af1d036c32631d185703f1149285b253e
2017-07-20 13:43:59 -06: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
Haik Aftandilian 74e07cd141 Bug 1388580 - [Mac] Remove miscellaneous iokit open permissions r=Alex_Gaynor
MozReview-Commit-ID: 3StDmeSwZUG

--HG--
extra : rebase_source : 66d73d82f54a9bdd0ebbc35abf0badc2657e5750
2017-08-08 15:57:21 -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
Gian-Carlo Pascutto 2254f82025 Bug 1387742 - Whitelist default dynamic linker paths, including /lib64. r=jld
MozReview-Commit-ID: B4HpKZQL8Y0

--HG--
extra : rebase_source : 8303bcc547d5802280c1a1b18fd98c632cc4d387
2017-08-17 17:53:11 +02:00
Gian-Carlo Pascutto 137d2bb87a Bug 1384804 - Allow libnuma to read /proc/self/status, block get_mempolicy. r=jld
MozReview-Commit-ID: EHPVoFQ6jVZ

--HG--
extra : rebase_source : 7945f44a8b95a9e0d9d4dfaabc934aab6e6fd5be
extra : source : 76935696a618b2b6243988595bdd913b5209c200
2017-08-17 16:59:41 +02: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
Wes Kocher c9139bd0e7 Merge autoland to central, a=merge
MozReview-Commit-ID: 1Kbt8srV8vj
2017-08-11 12:47:01 -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
Wes Kocher cff9e9b197 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Wes Kocher 936a9461f6 Merge inbound to m-c a=merge
MozReview-Commit-ID: KRQeIGmhAPA
2017-08-10 18:14:34 -07: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
Sebastian Hengst 51d351f567 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-10 17:41:11 +02:00
Franziskus Kiefer 11d57944d7 Bug 1386955 - land NSS 3e81bdac8449 UPGRADE_NSS_RELEASE, r=me 2017-08-10 09:22:53 +02:00
Wes Kocher a5fc391fdf Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
Alex Gaynor c6b10e5ba8 Bug 1389535 - remove access to com.apple.coreservices.launchservicesd from content processes; r=haik
MozReview-Commit-ID: 8uOZmYGxJDK

--HG--
extra : rebase_source : c51b8d314de39d3262706c2cf3c383e234a1342f
2017-08-09 11:29:53 -04:00
Haik Aftandilian f73b286d2a Bug 1386832 - Part 1 - Move non-sandbox-specific routines out of SandboxSettings. r=jimm
Moves IsDevelopmentBuild(), GetRepoDir(), and GetObjectDir() out of
SandboxSettings because they also need to be used by ExtensionProtocolHandler
to do security checks on developer builds as a result of how developer builds
rely on symlinks to the repo dir from system extension directories.

Remove the Linux-implementation of GetRepoDir() and GetObjectDir()
because the Linux content sandbox implementation and the
ExtensionProtocolHandler checks don't need them.

MozReview-Commit-ID: KwBFUnh6Cml

--HG--
extra : rebase_source : 3529a18ea802699ff968b798a7c560613469809b
2017-08-09 16:09:55 -07:00
Ryan VanderMeulen 6eb7aef00e Merge m-c to autoland. a=merge 2017-08-09 18:51:26 -04:00
Jed Davis 677499eb59 Bug 1386279 - Renovate Linux sandbox file broker handling of access(). r=gcp
1. X_OK is now allowed, and is limited only by the MAY_ACCESS permission.

2. The actual access() syscall is now used, if access is granted by the
broker policy.  This fixed bug 1382246, which explains the background.

MozReview-Commit-ID: 926429PlBnL

--HG--
extra : rebase_source : 6ae54c4c25e1389fa3af75b0bdf727323448294a
2017-08-08 18:02:31 -06:00
Alex Gaynor 0132ad567f Bug 1386363 - remove access to the com.apple.SystemConfiguration.configd mach service from content processes; r=haik
MozReview-Commit-ID: 3hFEx67JkdO

--HG--
extra : rebase_source : f3671c7d7682aeb5ff4b89d2409670fcadc2341a
2017-08-07 10:09:32 -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
Carsten "Tomcat" Book c329d562fb merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
Phil Ringnalda 858a553b02 Backed out 2 changesets (bug 1386103) for Android x86 build bustage
Backed out changeset eec506d87d03 (bug 1386103)
Backed out changeset 3f9ec011c9bd (bug 1386103)

MozReview-Commit-ID: 8ak71R7vUOC
2017-08-08 22:08:54 -07:00
Nicholas Nethercote e9daf4d245 Bug 1386103 (part 1) - Specify nsAuto[C]String storage size via template parameter. r=dbaron.
This patch parameterizes nsAuto[C]String, renames them as nsAuto[C]StringN, and
redefines nsAuto[C]String as typedefs for nsAuto[C]StringN<64>.

(The alternative would be to templatize nsAuto[C]String and use a default
parameter, but that would require writing "nsAuto[C]String<>" everywhere.)
2017-08-01 11:58:45 +10:00
Jed Davis 2a133d756a Bug 1388545 - Fix PulseAudio breakage caused by read restrictions. r=gcp
MozReview-Commit-ID: 518mslh9xy
2017-08-08 16:17:52 -06:00
Wes Kocher 650baf5c45 Merge inbound to central, a=merge
MozReview-Commit-ID: HpVAbc2vi78
2017-08-08 15:14:28 -07:00
dagasatvik d4398e95f2 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg

--HG--
extra : rebase_source : 5fc5c6760924da81a6d0708ff0d5586fc62c8c5e
2017-08-07 23:57:51 +05:30
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
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
Gian-Carlo Pascutto 5577125b26 Bug 1389078 - Remove (unneeded) usage of internal libc header. r=jld
MozReview-Commit-ID: E7oppAtGRfD

--HG--
extra : rebase_source : 8c31af5b1275a6036ff09f062f2b87f3c1e2b300
2017-08-10 16:55:01 +02:00
Alex Gaynor 2cc89c3380 Bug 1388454 - remove access to the com.apple.pasteboard.1 mach service from content processes; r=haik
MozReview-Commit-ID: EXb6UDYohZT

--HG--
extra : rebase_source : 321ebf0ce810b4fde9ce99acb56b15ca7acfbd8e
2017-08-08 13:51:48 -04:00
Alex Gaynor b4ba668be6 Bug 1388360 - remove access to the com.apple.iconservices mach service from content processes; r=haik
MozReview-Commit-ID: D20alO2PKR0

--HG--
extra : rebase_source : 2bc809d161eb373220f1de174abc8032207b5dac
2017-08-08 10:15:16 -04:00
Wes Kocher 223f322400 Merge m-c to autoland a=merge
MozReview-Commit-ID: 2qLtb79Nlhs
2017-08-08 15:26:30 -07:00
Haik Aftandilian ef291aef27 Bug 1388172 - [Mac] Remove access to "com.apple.window_proxies" from the content sandbox. r=Alex_Gaynor
MozReview-Commit-ID: 2EtLWOvPtyK

--HG--
extra : rebase_source : 3be19fbee8c0989cdfd82283ec2fb8acc5795989
2017-08-07 14:44:33 -07: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
Alex Gaynor d407d2ad13 Bug 1387570 - remove access to the com.apple.cache_delete mach service from content processes; r=haik
MozReview-Commit-ID: LoB1rx5DoV5

--HG--
extra : rebase_source : 7721399376e8ae7e6f41581681b61e92e20f2b21
2017-08-07 10:11:37 -04: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
Gian-Carlo Pascutto 60d25346d1 Bug 1386558 - Check sandboxing level 2 after permissions are available. r=jld
MozReview-Commit-ID: 9Pqwk45pJbe

--HG--
extra : rebase_source : 1c21f21d04cddd6c00e5f495c6686c671aa9cac1
2017-08-03 12:31:37 +02:00
Gian-Carlo Pascutto 36784f22aa Bug 1385891 - Whitelist things in the extension dir, not just the dir itself. r=jld
MozReview-Commit-ID: 3DryT8mm1F3

--HG--
extra : rebase_source : 23a8bda22307687884aa73d454221a78a4922791
2017-08-04 09:48:32 +02: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
Sebastian Hengst 39ccebaf18 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9IxbB2vCH4S
2017-08-05 11:55:25 +02:00
Haik Aftandilian d3e4a052d9 Bug 1386075 - [Mac] Remove (iokit-user-client-class "RootDomainUserClient"). r=Alex_Gaynor
MozReview-Commit-ID: 2bM5KVIbdru

--HG--
extra : rebase_source : f406551fb0986aaa77dd814cba17d399602093fb
2017-08-03 13:29:55 -07:00
Alex Gaynor 250a8036f3 Bug 1385096 - remove access to the com.apple.bird mach service from the content process; r=haik
MozReview-Commit-ID: FqKZVL16zz9

--HG--
extra : rebase_source : 8abca2f5c3aa95268887789fc2ca1a24da97de54
2017-08-03 10:14:33 -04: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
Sebastian Hengst d9f6b67320 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-04 19:32:45 +02:00
Franziskus Kiefer 95280a653c Bug 1386955 - land NSS a0a4e05dcdd5 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 913834daab6b8404dbeb0654e40e3e7f4ca24a9f
2017-08-04 14:13:06 +02:00
Haik Aftandilian e6f1d0e175 Bug 1386161 - [Mac] Remove IOAudioControl Rules. r=Alex_Gaynor
MozReview-Commit-ID: 3cLUCJDoWlh

--HG--
extra : rebase_source : a6e5e7fa3975407f05c92f9e33b98826b2784e68
2017-07-30 22:26:06 -07:00
Haik Aftandilian 9d03f37706 Bug 1322024 - [Mac] Remove com.apple.windowserver.active access from the content sandbox. r=Alex_Gaynor
MozReview-Commit-ID: CY99fseWrQX

--HG--
extra : rebase_source : a7219e91ca415c6f058337251ebecc8e9e5006be
2017-07-24 15:22:58 -07:00
Alex Gaynor 90d2a77496 Bug 1387233 - restrict access to ipc-posix-shm APIs in the content process; r=haik
This removes /tmp/com.apple.csseed access entirely, ipc-posix-shm-read-metadata
from CFPBS:, and ipc-posix-shm-write-{create,unlink} from AudioIO and CFPBS:.

MozReview-Commit-ID: Eahx6guqGos

--HG--
extra : rebase_source : 621e81eb00411ae39882504db7d10a50eef30b27
2017-08-03 17:03:47 -04:00
Alex Gaynor d1db7f92fc Bug 1385332 - remove access to the com.apple.pluginkit.pkd mach service from the content process; r=haik
MozReview-Commit-ID: 2KYaScrgnll

--HG--
extra : rebase_source : 4c39abdba18490f2fb12f1691f6fd5a4722cd542
2017-08-03 10:20:07 -04:00
Alex Gaynor 11a211f901 Bug 1386308 - stop trying to change the display sleep settings from the content process; r=haik
Before this change we were trying to change the settings from both the content
and parent processes, so this doesn't change any functionality. This allows to
remove access to the com.apple.PowerManagement.control mach service from the
content process.

MozReview-Commit-ID: 3DOhqG5U6oz

--HG--
extra : rebase_source : dee0b97c444ae95cfc8f80cb0fb99aa9e2658d51
2017-08-01 12:22:42 -04:00
Alex Gaynor f09847af4d Bug 1386291 - remove access to the com.apple.DesktopServicesHelper mach service in content processes; r=haik
MozReview-Commit-ID: Bk58lE5p6fi

--HG--
extra : rebase_source : a730b7bdf508a26cb039345f23d71c2558c1d7d1
2017-08-01 11:12:44 -04: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
Gian-Carlo Pascutto 5b6073d494 Bug 1385715 - Add support for WebGL on NVIDIA PRIME. r=jld
MozReview-Commit-ID: 6hXLXgNdVti

--HG--
extra : rebase_source : 14917cd11f97f41f46c6d6b42cea2ecb4162293a
2017-08-02 12:02:16 +02:00
Gian-Carlo Pascutto 5bfd2b1cc1 Bug 1385253 - Whitelist main NixOS data store directory. r=jld
MozReview-Commit-ID: 2aDBSAOrbv6

--HG--
extra : rebase_source : fa8e7fee91b2688fcaa94851e1820deca1c21277
2017-08-02 11:51:12 +02:00
Wes Kocher 5df77c43f9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IJRYyJu1sWm
2017-08-02 17:42:10 -07:00
Wes Kocher baf6cddc4c Merge inbound to central, a=merge
MozReview-Commit-ID: 9NFjSEt96iT
2017-08-02 17:11:51 -07:00
Rajesh Kathiriya 48e6bc2124 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Gian-Carlo Pascutto 8f357724e0 Bug 1385891 - Whitelist extensions dir in the profile. r=jld
MozReview-Commit-ID: 7wpVmqs6Y1X

--HG--
extra : rebase_source : 8b168e291469efb3afb90754a2833c07dd815e9f
extra : histedit_source : 7c259145efbf7cb21688d3580f74b216bb972e63
2017-07-31 18:19:26 +02:00
Gian-Carlo Pascutto 0d8bd27705 Bug 1384483 - Allow reading userContent.css in the sandbox. r=jld
MozReview-Commit-ID: A43RY1J95VF

--HG--
extra : rebase_source : 0c8355b34e79d8b0f4ec744a6f2b8b4414e0ab5c
extra : histedit_source : 6ddf29193d5a8b26e50a6a5b8e885caeff366033
2017-07-31 17:58:19 +02:00
Nicholas Nethercote 08e54b7c13 Bug 1384819 (part 1) - Split MozStackWalk(). r=glandium.
MozStackWalk() is different on Windows to the other platforms. It has two extra
arguments, which can be used to walk the stack of a different thread.

This patch makes those differences clearer. Instead of having a single function
and forbidding those two arguments on non-Windows, it removes those arguments
from MozStackWalk, and splits off MozStackWalkThread() which retains them. This
also allows those arguments to have more appropriate types (HANDLE instead of
uintptr_t; CONTEXT* instead of than void*) and names (aContext instead of
aPlatformData).

The patch also removes unnecessary reinterpret_casts for the aClosure argument
at a couple of MozStackWalk() callsites.

--HG--
extra : rebase_source : 111ab7d6426d7be921facc2264f6db86c501d127
2017-07-27 12:46:47 +10:00
Wes Kocher 094c496d8d Backed out 2 changesets (bug 1384986) for failures in browser_content_sandbox_fs.js a=backout
Backed out changeset 23dae62b5ece (bug 1384986)
Backed out changeset 60408af056d9 (bug 1384986)

MozReview-Commit-ID: gru7nyixFG
2017-08-01 18:17:48 -07:00
Alex Gaynor 567f1c90d0 Bug 1384941 - removed access to mach services which are used for cameras in the content process; r=haik
MozReview-Commit-ID: Ir6KgLM34bu

--HG--
extra : rebase_source : badd0b62f20b870f7da82fcbefb09f7545e02801
2017-07-25 11:51:03 -04:00
Haik Aftandilian 34c815ff04 Bug 1384209 - [Mac] Remove com.apple.coreservices.appleevents from the content process sandbox. r=Alex_Gaynor
MozReview-Commit-ID: 37zX5WZiF4P

--HG--
extra : rebase_source : 53bd0bb8cb8353a7ec513066581a6abfe2d99172
2017-07-24 15:53:18 -07:00
Jed Davis 26e4446a5b Bug 1384986 - Fix PulseAudio breakage caused by read restrictions. r=gcp
MozReview-Commit-ID: 518mslh9xy

--HG--
extra : rebase_source : fe5c8abda549f62f1dc20f6942ad877b0d1ecd75
2017-07-27 12:41:22 -06:00
Jed Davis 34c347eb14 Bug 1384986 - Fix DConf breakage caused by read restrictions. r=gcp
MozReview-Commit-ID: GKTBPtAea5J

--HG--
extra : rebase_source : 9f0a85bddfcfe9a31364ee2e63f768eaddc52ce0
2017-07-27 11:32:09 -06:00
Jed Davis 347f03dad0 Bug 1384306 - Allow SOCK_CLOEXEC in socketpair(). r=gcp
MozReview-Commit-ID: 45LJiUxZeg6

--HG--
extra : rebase_source : 234d542fea3e85ca521f23256dceee7fab6108a3
2017-07-27 15:27:06 -06: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 72c884bf74 Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10: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 bbe32b6bed merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 44WBcWjnVo
2017-07-30 11:19:17 +02:00
Thomas Daede 4d4fefbd12 Bug 1384718 - Add sandbox rules for Mesa 17.1 driver loader. r=gcp 2017-07-29 13:05:55 -04:00
Luciano Italiani dd592719c1 Bug 1374671 - Enable the ESLint no-whitespace-before-property rule across mozilla-central. r=standard8
MozReview-Commit-ID: 4WkNg0YrgHx

--HG--
extra : rebase_source : 2c32028e81c388406455004c2adcdb4a01942b95
2017-07-27 23:01:13 -03:00
Alex Gaynor cbb91e347d Bug 1385028 - simplify handling of macOS minor version in the sandbox policy; r=haik
MozReview-Commit-ID: BDD7WzTqHC6

--HG--
extra : rebase_source : d3eb23c8217a4dad7877a663fb455a0db2660330
2017-07-27 13:58:28 -04:00
Carsten "Tomcat" Book 892bedca2e merge mozilla-inbound to mozilla-central a=merge 2017-07-28 15:24:39 +02: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
Sebastian Hengst 744a0a216b Backed out changeset ef5feef07bed (bug 1384835) 2017-07-28 10:29:24 +02:00
Nicholas Nethercote 200d8ec18b Bug 1384835 (part 3) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
This is similar like the previous patch, but for the 8-bit string variants.
Also, it changes assignment to Adopt() in GetCString() and GetDefaultCString()
to avoid an extra copy.

--HG--
extra : rebase_source : eba805c3a7b809d5ccd6e853b1c9010db9477667
2017-07-27 16:45:10 +10:00
Ryan VanderMeulen 4237da641e Backed out changeset 4d7f80401751 (bug 1385028) for bustage.
--HG--
extra : rebase_source : 74b74e1a87c5e524f15eb04917d5b2205f3f87f3
2017-07-27 20:10:23 -04:00
Alex Gaynor 7372dae53f Bug 1385028 - simplify handling of macOS minor version in the sandbox policy; r=haik
MozReview-Commit-ID: BDD7WzTqHC6

--HG--
extra : rebase_source : 1d4a4deedbf6351da61e9433738000dcf6bcd0df
2017-07-27 13:58:28 -04: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
Kai Engert 7f80188815 Bug 1370890, uplift NSS_3_32_RTM, no code changes, only version numbers, r=me
UPGRADE_NSS_RELEASE, DONTBUILD
2017-07-27 19:38:41 +02:00