Commit Graph

12025 Commits

Author SHA1 Message Date
Alex Gaynor
3229d39dba Bug 1384677 - remove com.apple.cookied access from content processes; r=haik
MozReview-Commit-ID: 5mI4VXf7J8Q

--HG--
extra : rebase_source : 8514a3e7e73059964b29e240d7979b3a2758bb69
2017-07-25 11:03:43 -04:00
Kartikaya Gupta
ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

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

--HG--
extra : rebase_source : fce3e52edc55c970feca67a82c71fa2bb2b5d9b7
2017-07-21 12:14:38 +02:00
Wes Kocher
61354cf6c0 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 9pPsy8McMun
2017-07-21 18:18:35 -07:00
Sylvestre Ledru
7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Wes Kocher
a1eadef812 Merge m-c to autoland, a=merge
MozReview-Commit-ID: B7oWq7qfpJ0
2017-07-24 18:13:05 -07:00
Sylvestre Ledru
6202d4908b Bug 1383007 - Move the declaration in the #ifdef declaration to silent a warning r=jld
Otherwise, a warning is triggered because the statement will never be executed [-

Found with -Wswitch-unreachable with gcc 7

MozReview-Commit-ID: FVStzyFlhJp

--HG--
extra : rebase_source : 1db87153c3e7dcde8d5a9e0f1f0ff607307c9ca2
2017-07-21 23:28:47 +02:00
Carsten "Tomcat" Book
2023b2d8e5 Merge mozilla-central to inbound 2017-07-24 14:59:06 +02:00
Franziskus Kiefer
84cdbc91a3 Bug 1370890 - land NSS f212be04f3d0 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 82c0c1e7b6487693fb0ace15edb374f95a9c0208
2017-07-24 10:12:57 +02:00
Gian-Carlo Pascutto
7ee246522d Bug 1308400 - Report failures in file processes too. r=jld
MozReview-Commit-ID: 549WuWKaJeM

--HG--
extra : rebase_source : 22d6348e602f2ceae546502fa0050ab0960ec075
2017-07-10 20:20:49 +02:00
Gian-Carlo Pascutto
d791c78487 Bug 1308400 - Symlink handling for read brokering. r=jld
MozReview-Commit-ID: BP1gFdDbqXD

--HG--
extra : rebase_source : 5db26ad21e40ab19228ac8a978215b97cf8b3b28
2017-07-06 15:31:13 +02:00
Gian-Carlo Pascutto
8bc55108f2 Bug 1308400 - Support file process, whitelist path prefs. r=jld
MozReview-Commit-ID: 3eX06AioPZL

--HG--
extra : rebase_source : 56bcfaad3360fe92ce605a0413bb3a9cacb4446d
2017-07-24 16:32:22 +02:00
Kate McKinley
a85cfefb59 Bug 1380872 remove EV treatment for "China Internet Network Information Center EV Certificates Root" r=keeler
Disable EV treatment in preparation for removing the CNNIC root certificates
from NSS.

MozReview-Commit-ID: Anz1vXqABUM

--HG--
extra : rebase_source : 694d8321b9f5994fe57e81cb3169681c5e491910
2017-07-18 11:18:47 -07:00
Kate McKinley
67464ef73c Bug 1380821 remove EV treatment for UTN-USERFirst-Hardware r=keeler
The CA, Comodo, has requested that we remove the UTN-USERFirst-Hardware
root certificate from NSS. First remove EV treatment.

MozReview-Commit-ID: 8OTsevYOuKq

--HG--
extra : rebase_source : aabb219bcbee1c667bae29df618449df4b50d548
2017-07-18 11:28:26 -07:00
Wes Kocher
56c014ca6b Merge autoland to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9RON7kHON0g
2017-07-19 16:32:03 -07:00
ffxbld
3a3af33f51 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-07-19 09:22:45 -07:00
ffxbld
5005f0245a No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-07-19 09:22:42 -07:00
Jed Davis
4634e2a332 Bug 1376910 - Unshare the SysV IPC namespace in content processes. r=gcp
MozReview-Commit-ID: 1Uajj68rEuC

--HG--
extra : rebase_source : 5a6c86a104911146cfb56243dec8016fca536dc3
2017-06-28 07:11:55 -07:00
Jed Davis
99611dd25e Bug 1376910 - Block syscalls for SysV IPC in content processes. r=gcp
MozReview-Commit-ID: 9XCYBU07T29

--HG--
extra : rebase_source : 2390164a217a71f1ac0a9102e8a023c07b15eee7
2017-06-28 06:33:53 -07:00
Nicholas Nethercote
ff8375cf2e Bug 1382099 - Remove MOZ_WIDGET_GONK from security/. r=jld.
--HG--
extra : rebase_source : 8027baf7a24e5e0d91a175ab38614594c143767b
2017-07-21 10:45:42 +10:00
Sebastian Hengst
303141cf04 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-07-20 11:02:11 +02:00
Bob Owen
b4239707cf Bug 1366694 Part 2: Don't run sandbox file system test in DEBUG on Windows. r=jimm
This is because in DEBUG mode we currently give full access to TEMP dir
for logging purposes and the temporary profile is created in the TEMP dir.
2017-07-20 07:50:48 +01:00
Bob Owen
dc46549cd6 Bug 1366694 Part 1: Allow user handles in the content process job in DEBUG builds. r=jimm 2017-07-07 15:51:17 +01:00
Haik Aftandilian
ef16b0fcf8 Bug 1380690 - Part 2 - Whitelist repo and object dirs using paths from the Info.plist files. r=Alex_Gaynor,spohl
On Mac developer builds, read the repo path and object dir path from the
Info.plist files in the application bundle instead of the
MOZ_DEVELOPER_REPO_DIR and MOZ_DEVELOPER_OBJ_DIR environment variables.

MozReview-Commit-ID: 8UtjkNPGUM1

--HG--
extra : rebase_source : 3e4ce32f2e2c40f8d899bc9190e48298081458d9
2017-07-19 09:16:09 -07:00
Alex Gaynor
2e4ea0b3cd Bug 1383818 - Disallow content processes for using the com.apple.ocspd mach service; r=haik
It is not used, so this is an attack surface reduction.

MozReview-Commit-ID: mrW9hi0SAh

--HG--
extra : rebase_source : 889b937cfd20680bbb62391fa7932b5cd2e1fd6a
2017-07-24 09:50:32 -04:00
Jed Davis
0de50c4f7c Bug 1376653 - Fix handling of architecture differences for getdents. r=gcp
MozReview-Commit-ID: ArGStWwkJAg

--HG--
extra : rebase_source : 27f97df93bff744607e60bf61c8b71431861b025
2017-07-11 17:03:06 -06:00
Jed Davis
bbcc5a0f24 Bug 1376653 - Unconditionalize the tkill() polyfill. r=gcp
MozReview-Commit-ID: JzLWCRQ9Keg

--HG--
extra : rebase_source : ff038fd9e1a4ec8047c3a00619a97464778d7c2a
2017-07-11 16:59:48 -06:00
Jed Davis
89b65b175e Bug 1376653 - Loosen restrictions on clone flags for musl. r=gcp
I've made this non-ifdef'ed, and removed currently unused ifdef'ed cases
for old Android versions, because I'd rather have less code that we're
not even compile-testing than save a few cycles on a non-critical path.

MozReview-Commit-ID: B4Wn1elyK4f

--HG--
extra : rebase_source : f12ef40b325432a6aafe961095e5af64fc5a1a9a
2017-07-11 14:23:27 -06:00
ffxbld
a83a4b6897 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-18 09:16:36 -07:00
ffxbld
1a42bbc6f4 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-07-18 09:16:33 -07:00
Wes Kocher
d041a8f1e1 Merge m-c to inbound, a=merge
MozReview-Commit-ID: EAJy9kHnb32
2017-07-17 17:36:04 -07:00
ffxbld
88180977d7 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-07-17 09:25:02 -07:00
ffxbld
b825b8fa10 No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-07-17 09:24:59 -07:00
ffxbld
01d27fdd39 No bug, Automated HPKP preload list update from host bld-linux64-spot-388 - a=hpkp-update 2017-07-16 09:18:06 -07:00
ffxbld
665614ab12 No bug, Automated HSTS preload list update from host bld-linux64-spot-388 - a=hsts-update 2017-07-16 09:18:03 -07:00
ffxbld
80e4a08fd4 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-07-15 09:28:04 -07:00
ffxbld
b1e5771d96 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-07-15 09:28:01 -07:00
Wes Kocher
ee45f814bb Merge m-c to autoland, a=merge
MozReview-Commit-ID: GOb2bgdUd36
2017-07-14 17:27:36 -07:00
Haik Aftandilian
88b1e4c7ca Bug 1380132 - Part 3 - Use env variable MOZ_DEVELOPER_OBJ_DIR to whitelist object dir in content sandbox. r=Alex_Gaynor
On developer builds, use $MOZ_DEVELOPER_OBJ_DIR to whitelist the object dir in the content sandbox so that symlinks to the object dir from .app/ files can be loaded.

MozReview-Commit-ID: J4YdpxgbD8i

--HG--
extra : rebase_source : 19e369fe9ae29418d9d79e1fb83246474d858f34
2017-07-14 16:32:53 -07:00
Ryan VanderMeulen
418fe0e50f Merge m-c to inbound. a=merge 2017-07-14 12:46:40 -04:00
ffxbld
63892fd487 No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-07-14 09:41:09 -07:00
ffxbld
a7fbfe86b2 No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-07-14 09:41:06 -07:00
Andrea Marchesini
50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
David Keeler
bfdf3c3c7c bug 1375709 - avoid deadlock when shutting down NSS r=Cykesiopka,ttaubert
The deadlock fix attempted in bug 1273475 was incomplete. This should prevent
the issue by preventing nsNSSShutDownPreventionLocks from attempting to
increment the NSS activity state count when shutdown is in progress (this is
acceptible because when code that creates any nsNSSShutDownPreventionLocks then
checks isAlreadyShutDown(), it will return true because sInShutdown is true,
thus preventing that code from unsafely using NSS resources and functions).

MozReview-Commit-ID: 4o5DGbU2TCq

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

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

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

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

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

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

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

--HG--
extra : rebase_source : 3bee57a501035f76a81230d95186f8c3f460ff8e
2017-07-12 15:13:37 +10:00
Carsten "Tomcat" Book
260b5f956f merge mozilla-inbound to mozilla-central a=merge 2017-07-13 16:35:22 +02:00
Wes Kocher
77dda2c316 Merge m-c to autoland, a=merge
MozReview-Commit-ID: ZD3IjV2kwX
2017-07-12 18:28:34 -07:00
ffxbld
cef8389c68 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-07-12 09:06:29 -07:00
ffxbld
01f529a11b No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-07-12 09:06:26 -07:00
Carsten "Tomcat" Book
0edfa97e38 merge mozilla-inbound to mozilla-central a=merge 2017-07-12 11:07:09 +02:00
ffxbld
d37d297687 No bug, Automated HPKP preload list update from host bld-linux64-spot-306 - a=hpkp-update 2017-07-11 09:00:05 -07:00
ffxbld
d3d35b9d2b No bug, Automated HSTS preload list update from host bld-linux64-spot-306 - a=hsts-update 2017-07-11 09:00:02 -07:00
Wes Kocher
1ef5d8834c Merge m-c to autoland, a=merge 2017-07-10 18:51:05 -07:00
ffxbld
5dadcbe55b No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-10 09:13:32 -07:00
ffxbld
cff6343801 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-07-10 09:13:29 -07:00
ffxbld
b7e531410e No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-07-09 09:02:40 -07:00
ffxbld
74998d2dd7 No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-07-09 09:02:37 -07:00
Sebastian Hengst
d00887532b merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IZdWUL0ee1b
2017-07-09 11:19:35 +02:00
ffxbld
4aaa085139 No bug, Automated HPKP preload list update from host bld-linux64-spot-389 - a=hpkp-update 2017-07-08 09:13:56 -07:00
ffxbld
904f22f37f No bug, Automated HSTS preload list update from host bld-linux64-spot-389 - a=hsts-update 2017-07-08 09:13:53 -07:00
Wes Kocher
fd4857585c Merge autoland to central, a=merge
MozReview-Commit-ID: Lf7ROINgvql
2017-07-07 17:22:00 -07:00
Wes Kocher
5f00a2d1ab Merge inbound to central, a=merge
MozReview-Commit-ID: AhUhSIjf0BX
2017-07-07 15:58:55 -07:00
ffxbld
238406d4c1 No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-07-07 08:56:58 -07:00
ffxbld
08f76dfa4d No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-07-07 08:56:55 -07:00
Makoto Kato
2f3c835cd3 Bug 1372781 - Remove getdtablesize stub from android_stub.h. r=jchen
getdtablesize is unused in nss after landing bug 1346735 and bug 1370138.  So it is unnecessary to define this in android_stub.h

MozReview-Commit-ID: CHB8xVjgmw3

--HG--
extra : rebase_source : 8ef0097f975cf661019ae77581bc903beb668f79
2017-07-07 16:18:08 +09:00
Wes Kocher
19d135c982 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 4R4GFHPiij
2017-07-06 16:19:38 -07:00
ffxbld
f1472e5b57 No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-07-06 08:48:52 -07:00
ffxbld
9ec86dd99e No bug, Automated HSTS preload list update from host bld-linux64-spot-303 - a=hsts-update 2017-07-06 08:48:49 -07:00
Carsten "Tomcat" Book
7857fa0a5e merge mozilla-inbound to mozilla-central a=merge 2017-07-06 11:18:05 +02:00
Gian-Carlo Pascutto
84f7ba492b Bug 1377614 - Part 1 - Move IsDevelopmentBuild() to common code. r=Alex_Gaynor
MozReview-Commit-ID: AcO0XaMS4Gp

--HG--
extra : rebase_source : ec40a94545fa78ce0210a0614db82b7bcb7e8a97
2017-07-03 11:17:04 -07:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Rajesh Kathiriya
881bce09ea Bug 1374670 - Enabled the ESLint no-tabs rule across mozilla-central r=standard8
MozReview-Commit-ID: RT5QTipaOW

--HG--
extra : rebase_source : 84bccaeba083bc430316d3c80d5c8f56494f1950
2017-07-04 21:30:18 +05:30
Haik Aftandilian
c610a4c66b Bug 1376163 - [10.13] No audio playback on YouTube, no audio/video on Netflix (macOS High Sierra 10.13 Beta). r=Alex_Gaynor
Allow access to the "com.apple.audio.AudioComponentRegistrar" API on 10.13+ systems.

MozReview-Commit-ID: 8gWXvuXTNKi

--HG--
extra : rebase_source : 8abf9a2548d915a89adfa82580d46c1bc00726d8
2017-07-06 14:09:11 -07:00
Jed Davis
1a4ac1cd36 Bug 1372428 - Extend file pre-opening for sandboxed media plugins. r=gcp
MozReview-Commit-ID: JoyYocxnk94
2017-07-07 08:58:50 -06:00
Jed Davis
1bc1050e9e Bug 1372428 - Deal with fcntl() in media plugins. r=gcp
MozReview-Commit-ID: 9kBowGtSPYO
2017-07-07 08:58:45 -06:00
Jed Davis
b2df5f5afd Bug 1372428 - Deal with uname() in media plugins. r=gcp
MozReview-Commit-ID: JVzjs80Yuex
2017-07-07 08:58:33 -06:00
Sebastian Hengst
8b1992d948 Backed out changeset 9137ed21a66f (bug 1377614) for bustage: not finding mozilla/SandboxSettings.h at netwerk/protocol/res/ExtensionProtocolHandler.cpp:46. r=backout 2017-07-05 22:51:58 +02:00
Gian-Carlo Pascutto
2032eb5262 Bug 1377614 - Part 1 - Move IsDevelopmentBuild() to common code. r=Alex_Gaynor
MozReview-Commit-ID: AcO0XaMS4Gp

--HG--
extra : rebase_source : 2fa012f693ad7855c2c6e7b8399edf3c0e734299
2017-07-03 11:17:04 -07:00
Ryan VanderMeulen
e26154b0cb Merge m-c to autoland. a=merge 2017-07-05 12:09:37 -04:00
ffxbld
fe457a38af No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-07-05 08:47:53 -07:00
ffxbld
04c83f2603 No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-07-05 08:47:50 -07:00
Phil Ringnalda
22cb9f77bb Merge m-c to m-i
MozReview-Commit-ID: H6zGgEm7oOM
2017-07-04 20:32:07 -07:00
Phil Ringnalda
edd2fcf74b Merge autoland to m-c, a=merge
MozReview-Commit-ID: 3KyMJNBoJpp
2017-07-04 20:30:34 -07:00
ffxbld
e8f4f51cd5 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-04 08:48:12 -07:00