Commit Graph

14109 Commits

Author SHA1 Message Date
Cosmin Sabou
f3db52f4cf Merge mozilla-inbound to mozilla-central. a=merge 2019-02-21 05:42:03 +02:00
Masatoshi Kimura
e59e3b3e20 Bug 1528651 - Fix some trivial warnings and re-enable warnings-as-errors on Windows in some directories. r=dmajor
--HG--
extra : source : 5ee9efeda9e67f6af0521be85266703763cc4c50
2019-02-19 20:42:11 +09:00
Christoph Kerschbaumer
54df1cb98c Bug 1528677: Remove nullchecks for loadinfo since we have loadinfo on all channels. r=baku 2019-02-20 13:27:25 +01:00
Jonas Allmann
9e8cf63b9b Bug 1525636, Replace ondialogextra1 and ondialogextra2 attributes with event handlers, r=Gijs
Remove all occurences of the above mentioned attributes and replace them by event handlers.
Minor changes to consuming functions to preserve functionality.

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

--HG--
extra : moz-landing-system : lando
2019-02-20 11:11:31 +00:00
Dana Keeler
4b76f8a9eb bug 1513458 - update diagnostic assertions to only assert in content processes r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20411

--HG--
extra : moz-landing-system : lando
2019-02-19 22:22:35 +00:00
Dana Keeler
4b13e47e2f bug 1527372 - write out and shut down DataStorage all at once so that clearing on shutdown works properly r=Ehsan
In bug 1470918, a shared thread was introduced that did the reading/writing work
for all DataStorage instances. To ensure all state was written out at shutdown,
the original patch implemented a two stage strategy that in the first stage
queued an event for each DataStorage that would write out its contents and then
in the second stage ran these events to completion. This conflicted with how
Firefox's sanitization implementation would make sure that data was cleared at
shutdown, if requested by the user. If the DataStorage objects observed the
first shutdown notification before the sanitization implementation, the existing
data would be queued for writing and any further updates would be prevented.
Thus, when the sanitizer tried to clear data held by DataStorage instances,
nothing would happen and the data would be written to disk.

This patch fixes this issue by implementing DataStorage shutdown in a single
stage that can run after sanitization. Since sDataStorages knows of the
existence of every DataStorage, we can simply iterate through its entries, queue
write events for each one, and then run those events to completion in one pass.

This patch also fixes bug 1528019 (gDataStorageSharedThread could leak if
NS_NewNamedThread failed) because the fix is trivial and not worth handling in
an entirely separate bug.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 20:20:37 +00:00
Masatoshi Kimura
e25fbce870 Bug 1528651 - Re-enable warnings-as-errors on Windows in some directories. r=dmajor
--HG--
extra : source : ba86ea25070b37f4725834e1c2d9ec4c0783e119
2019-02-17 15:03:02 +09:00
Cosmin Sabou
a4b19fcd61 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 20:39:45 +02:00
Sylvestre Ledru
41d1d79094 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-02-15 08:15:57 +00:00
Bob Owen
36320360f7 Bug 1515088 Part 2: Set LoaderThreads to 1 in the RTL_USER_PROCESS_PARAMETERS structure on child process start-up. r=aklotz 2019-02-08 17:17:52 +00:00
Daniel Varga
1e9aa9e1fc Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 03:51:05 +02:00
Kris Maglione
dfc6aeef42 Backout most of bug 1524687 for Windows PGO xpcshell selftest failures. r=backout 2019-02-14 17:17:36 -08:00
Mike Hommey
ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

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

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
J.C. Jones
33f494d45b Bug 1519273 - Log telemetry for Intermediate CA Preloading r=keeler,janerik
Adds telemetry for the state of intermediate preloading, as well as what errors
occur during the process.

Dana- will solicit data review today, too.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 18:18:58 +00:00
Brendan Dahl
74c580a4c5 Bug 1527733 - Remove special XUL DOM tree traversal. r=smaug
Move functionality out of XULDocument::AddElementToDocumentPost:
1) Convert all XUL link elements into HTML link elements which have
code to handle when they are added to the DOM.
2) Move handling of the end of a linkset element into nsXULElement's DoneAddingChildren callback.
3) Move document direction reset to where the root element is created.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 10:43:35 +00:00
J.C. Jones
323f397330 Bug 1523175 - land NSS b7713856ebf2 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 9dbb754fb73fde471308ac331ae445a45c77c870
extra : amend_source : 68c501b209d49f8c5d04c891056dda2a9057fbd9
2019-02-14 21:41:08 +00:00
ffxbld
fbafc28707 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D19770

--HG--
extra : moz-landing-system : lando
2019-02-14 13:34:56 +00:00
Nika Layzell
dbec7d4975 Bug 1526382 - Part 2: Make nsIClassInfo use Array<nsIIDRef> for 'interfaces', r=mccr8
This is a follow-up to the previous part, which actually changes one of
these callers to use Array<nsIIDRef> instead of [array] nsIIDPtr.

From doing this patch, it seems like we should consider changing
the type `nsIIDRef` to instead simply be `nsIID`, and treat it more like
the `AString` types from the POV of XPIDL. `nsIIDPtr` would then
continue to exist for backwards compatibility, but we can probably
remove almost all current consumers over time.

Depends on D19175

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

--HG--
extra : moz-landing-system : lando
2019-02-13 21:42:08 +00:00
Dana Keeler
4852002ac3 bug 1525343 - increase add-on manifest size limit r=Alex_Gaynor
Differential Revision: https://phabricator.services.mozilla.com/D19452

--HG--
extra : moz-landing-system : lando
2019-02-12 22:01:16 +00:00
Dana Keeler
86b72ab902 bug 1473573 - import intermediate certificates as well as roots r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D18630

--HG--
extra : moz-landing-system : lando
2019-02-12 18:23:25 +00:00
Jonathan Kingston
3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
ffxbld
9b7faccec2 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D19352

--HG--
extra : moz-landing-system : lando
2019-02-11 12:28:57 +00:00
Daniel Varga
db72fbd65d Merge mozilla-inbound to mozilla-central. a=merge 2019-02-09 23:47:19 +02:00
Daniel Varga
023ea6a08f Backed out changeset 60f9b60f1f4f (bug 1347710) for causing bug 1526661. a=backout 2019-02-09 20:13:30 +02:00
Csoregi Natalia
ce23db018d Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-02-09 11:41:49 +02:00
Narcis Beleuzu
6ad6735982 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-09 05:43:42 +02:00
Narcis Beleuzu
df649fe94e Merge inbound to mozilla-central. a=merge 2019-02-09 05:35:25 +02:00
Haik Aftandilian
9b822034f6 Bug 1525625 - [Mac] Flash plugin can not save settings r=Alex_Gaynor
Allow file-write-unlink in ~/Library/Preferences/Macromedia/Flash Player to allow changes made in the Flash Global Settings panel to persist.

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

--HG--
extra : moz-landing-system : lando
2019-02-08 20:42:10 +00:00
Dana Keeler
f7feebc465 bug 1526007 - don't return early from NSSCertDBTrustDomain::FindIssuer if NSS doesn't find any candidate issuers r=jcj
As of bug 1514118, NSS is not the only place NSSCertDBTrustDomain looks for
issuer certificates. However, the initial implementation did not take into
account that NSSCertDBTrustDomain::FindIssuer would return early if NSS did not
find candidate issuers, resulting in unknown issuer errors for third party
roots.  This patch fixes that bug by not returning early.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 21:52:18 +00:00
J.C. Jones
21080eeacd Bug 1404934 - Wire-up Intermediate Preloading r=keeler
This patch:

* Classifies RemoteSecuritySettings as production.
* Add detailed logging controlled by the browser.policies.loglevel pref.
* Generally make RemoteSecuritySettings match other services better.
* Move to hex-encoded hashes to match Kinto.
* Adds RemoteSecuritySettings to blocklist-clients. This may not be the
  permanent home.
* Adds a preference for how many certs to download at once.
* Adds an Observer interface.

    (This makes the tests more predictable, but it also avoids having a
    duplicate call when the full "sync" is called.)

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

--HG--
extra : moz-landing-system : lando
2019-02-08 00:08:54 +00:00
Chris Martin
4a154a9902 Bug 1347710 - Re-enable GPU sandbox level 1 r=bobowen
Previously, the GPU sandbox was enabled and caused the VR service to break.

The VR service has now been moved into its own process, and now the GPU
sandbox should be able to work fine. We will initially apply sandbox level '1'
for a time, and then increase to sandbox level '2' if everything works just
fine.

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

--HG--
extra : moz-landing-system : lando
2019-02-08 14:34:18 +00:00
J.C. Jones
6fba287075 Bug 1523175 - land NSS 794984bb1169 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 5b86719e1f801522367afb5296d66ff843d5ad79
2019-02-08 00:04:23 +00:00
Kris Maglione
b718cffa0e Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : rebase_source : 176f8fb3716d467e34a04d353b44acec314808cf
extra : source : 625f71135038f79c075f758e316fbb00097c9a18
2019-01-29 16:03:41 -08:00
Narcis Beleuzu
6f74045093 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-09 05:45:16 +02:00
Kai Engert
3073a61c44 Bug 1526473, Export NSS_CMSSignedData_GetDigestAlgs and NSS_CMSSignedData_HasDigests in security/nss.symbols, r=jcj 2019-02-09 03:35:00 +01:00
Andrew Halberstadt
01ca807367 Bug 1515746 - [flake8] Unsupport subdir .flake8 files and use new 'per-file-ignores' config instead, r=egao
This removes all .flake8 files except for the one at the root of the repo.
Instead we use the new 'per-file-ignores' config introduced in 3.7. To ignore
specific errors in a subdirectory, add a line like this to the root .flake8:

[per-file-ignores]
    path/to/subdir/*: E100, F200, ...

The reasons for this change are:

1. Unblock flake8 blacklist (bug 1367092).
2. Simplify configuration and code.
3. Encourage more consistent styling.
4. Improve performance.
5. Greater editor consistency.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:17:02 +00:00
Andrew Halberstadt
a10eff76fa Bug 1515746 - [flake8] Upgrade flake8 and dependencies, r=egao
This bumps flake8 to version 3.7.5.

This also ignores the new lint rules that were added in the new versions.
These rules are de-marked via comment so we know that they should be enabled at
some point (as opposed to the other rules that are (presumably) ignored
intentionally.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:16:45 +00:00
Dana Keeler
d67044dc44 bug 1525386 - improvements to some tests so they don't break when certificates are regenerated r=jcj
In bug 1525191, the test certificates expired again. While regenerating them is
almost as simple as running a script, there were some manual test changes that
had to happen to get the tests passing again. This patch fixes up those tests so
that they shouldn't need changing the next time we regenerate the certificates.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 00:42:07 +00:00
ffxbld
60847f1c1f No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D18967

--HG--
extra : moz-landing-system : lando
2019-02-07 13:54:00 +00:00
Alex Gaynor
0f01791ffc Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Recv/Answer methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:43 +00:00
Tim Nguyen
3d0a38d817 Bug 1524777 - Convert the certificate viewer's XUL grid to HTML table. r=keeler,flod
Differential Revision: https://phabricator.services.mozilla.com/D18489

--HG--
extra : moz-landing-system : lando
2019-02-05 20:49:16 +00:00
ui.manish
5460bb6581 Bug 1497838- Consider removing Geolocation values in SECURITY_UI r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D18363

--HG--
extra : moz-landing-system : lando
2019-02-04 12:13:20 +00:00
Razvan Maries
2428b56054 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-05 12:24:54 +02:00
Jan de Mooij
b1860df55b Bug 1525191 part 7 - Fix test_cert_chains.js for updated certificates. a=bustage-fix
--HG--
extra : histedit_source : 717d3519e1f7faf1b9161b5c0a0a6f35a6ac9109
2019-02-05 11:14:55 +01:00
Jan de Mooij
78d007d714 Bug 1525191 part 6 - Fix test_content_signing.js for updated certificates. a=bustage-fix
--HG--
extra : histedit_source : ef5e19e9b98f06356cde6ba8196d344f0ecf5fd6
2019-02-05 11:14:40 +01:00
Jan de Mooij
ffd1bd1ff0 Bug 1525191 part 5 - Fix test_x509.js for updated certificates. a=bustage-fix
--HG--
extra : histedit_source : 1ff24ed366e14bbcdb50f19fce57c0cdf20527f6
2019-02-05 11:14:32 +01:00
Jan de Mooij
39ed8c166b Bug 1525191 part 4 - Back out some .pem changes from b6ec07118c70. a=bustage-fix
--HG--
extra : histedit_source : 7cbcc6900d3618107f6832e6e4eac1318e05f79e
2019-02-05 11:14:23 +01:00
Jan de Mooij
d296fc0b01 Bug 1525191 part 2 - Regenerate zip files in security/manager/ssl/tests/unit/test_signed_apps. a=bustage-fix
--HG--
extra : histedit_source : 28a3cbef15ac209578251be0b8a579e742703046
2019-02-05 11:14:05 +01:00
Jan de Mooij
13c6804989 Bug 1525191 part 1 - Remove bogus lines from pem files. a=bustage-fix
--HG--
extra : histedit_source : 6ce02641a71fb5a2d704620d003c23bb8709f49b
2019-02-05 11:13:37 +01:00
J.C. Jones
9eb30227b2 Bug 1525191 - Regenerate all .pem.certspec files into their .pems r=try a=try CLOSED TREE
Summary:
Scripts:
https://gist.github.com/jcjones/b25e07de3a48c3ed084f0f9e26911693

# From the above gist
./jcj-regenerate-certspecs

# This is a DER form, not a PEM.
openssl x509 -in security/manager/ssl/tests/unit/test_signed_apps/xpcshellTestRoot.pem -outform der > security/manager/ssl/tests/unit/test_signed_apps/xpcshellTestRoot.der
rm security/manager/ssl/tests/unit/test_signed_apps/xpcshellTestRoot.pem

# These don't seem to be checked in
rm services/common/tests/unit/test_blocklist_signatures/*.pem

Reviewers: ccoroiu

Bug #: 1525191

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

--HG--
extra : histedit_source : f6e29ef6f3d012e42cda980abbb13bc4276702d6
2019-02-05 04:34:13 +02:00