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

1717 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight 1b901ff2db Bug 1542024 - Eliminate nsXPCWrappedJSClass by moving its methods into nsXPCWrappedJS. r=bzbarsky
I changed DelegatedQueryInterface and CallMethod to be non-static
methods rather than taking an explicit |self| parameter.

There is already a method nsXPCWrappedJS::CallMethod() with the same
signature, but it is a shim, so I inlined it into the version in
XPCWrappedJSClass.cpp.

I also fixed up a few comments that mention nsXPCWrappedJSClass.

The new comments starting with "We now need to enter the realm" were
written by Boris, and are a little more explicit so they are easier to
understand.

I renamed DebugDump() to DebugDumpInterfaceInfo() to be more
informative.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 21:39:27 +00:00
Ciure Andrei 3ff6ff6d6f Backed out changeset 5937ad352b2d (bug 1542024) for perma failing 406106-1.html CLOSED TREE 2019-04-09 00:12:32 +03:00
Andrew McCreight ccc11f67db Bug 1542024 - Eliminate nsXPCWrappedJSClass by moving its methods into nsXPCWrappedJS. r=bzbarsky
I changed DelegatedQueryInterface and CallMethod to be non-static
methods rather than taking an explicit |self| parameter.

I did a tiny bit of cleanup in the nsIXPConnectJSObjectHolder case of
DelegatedQueryInterface().

There is already a method nsXPCWrappedJS::CallMethod() with the same
signature, but it is a shim, so I inlined it into the version in
XPCWrappedJSClass.cpp.

I also fixed up a few comments that mention nsXPCWrappedJSClass.

The new comments starting with "We now need to enter the realm" were
written by Boris, and are a little more explicit so they are easier to
understand.

I renamed DebugDump() to DebugDumpInterfaceInfo() to be more
informative.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 19:44:45 +00:00
Sylvestre Ledru 03fc65347c Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:42:17 +00:00
Sylvestre Ledru 03c8e8c2dd Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:41:42 +00:00
Randall E. Barker f0ff77d732 Bug 1541285 - Set CrashGenerationServer thread name for Linux and Android r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D25983

--HG--
extra : moz-landing-system : lando
2019-04-05 20:14:21 +00:00
Csoregi Natalia ba58e936bd Backed out changeset 4ad80127f89f (bug 1519636) for bustage on MarkupMap.h and nsAccessibilityService.cpp. CLOSED TREE 2019-04-05 09:48:19 +03:00
Sylvestre Ledru d1c1878603 Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:36:16 +00:00
Narcis Beleuzu 24dbe577a5 Backed out changeset 389b6bbd76db (bug 1519636) for bustages on MarkupMap.h . CLOSED TREE 2019-04-05 00:27:56 +03:00
Sylvestre Ledru 399dbd28fe Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 20:12:23 +00:00
Nicholas Nethercote f74cda17d3 Bug 1541269 - Make OnChildProcessDumpRequested() the same on all platforms. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D25884

--HG--
extra : moz-landing-system : lando
2019-04-03 18:54:04 +00:00
Ciure Andrei 4116e08315 Merge inbound to mozilla-central. a=merge 2019-04-04 07:34:14 +03:00
Ciure Andrei 58c8915ecd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-04 00:57:38 +03:00
Jan Varga 0269846741 Bug 1540668 - IDB: Add a timer for ShutdownWorkThreads; r=asuth, dr=chutten
Differential Revision: https://phabricator.services.mozilla.com/D25745
2019-04-02 13:16:55 +02:00
Christoph Kerschbaumer 6094ee4dde Bug 1541161: Use MOZ_DIAGNOSTIC_ASSERT and return error in loadinfo is null within NewChannelFromURIWithProxyFlagsInternal. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D25917

--HG--
extra : moz-landing-system : lando
2019-04-03 12:51:51 +00:00
Mark Banner dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Nathan Froyd 9c36ce5059 Bug 1539574 - parse ELF symbols before DWARF symbols in dump_syms; r=gsvelto
Module::AddFunction assumes that any time we add a function, it is
preferable to use that instead of the corresponding external
symbol (which could be anything).  The former show up in Breakpad symbol
files as FUNC lines, and the latter as PUBLIC lines.

For Module::AddFunction to be effective, we have to parse all the
external symbols for a module first, and then discover all the actual
functions.  But the Linux symbol dumping code does the reverse: it first
parses all the DWARF information (including .debug_info, which adds any
relevant functions) and then parses the ELF symbol table.  This ordering
means that we wind up emitting PUBLIC lines for which corresponding FUNC
lines already exist.  These duplicate PUBLIC lines take up roughly 10%
of the size of a libxul symbol file (~30MB), and are completely unnecessary.

The fix is simple: we should reverse the order in which we parse ELF
symbols and DWARF debug information.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 21:41:30 +00:00
Christoph Kerschbaumer 6417ca1ace Bug 1537883: Dump JS Stacktace in case aPrincipal is null within nsIOService::SpeculativeConnectInternal. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D24704

--HG--
extra : moz-landing-system : lando
2019-03-25 14:08:13 +00:00
Nicholas Nethercote a955ca9592 Bug 1535226 - Remove uses of XP_WIN32 in Gecko. r=glandium
The definitions can't be entirely removed yet because NSS still needs them.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 01:28:50 +00:00
Edwin Gao 233a502fa2 Bug 1536217 - disable tests in toolkit/crashreporter/test/unit and toolkit/crashreporter/test/unit_ipc r=jmaher
Disable tests as they fail constantly on xpcshell-8 on windows10-aarch64.

Bug 1536221 is filed for investigating why the crashreporter tests still fail.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 11:15:18 +00:00
David Major e5773183d6 Bug 1528074 - Remove MSVC warning flags that clang-cl doesn't understand r=chmanchester
Per the previous patch, clang-cl only understands five MSVC-style warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

This patch removes the flags that clang-cl doesn't understand.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:19:08 +00:00
David Major 56ea434680 Bug 1528074 - Translate MSVC warning flags to clang spelling where supported r=froydnj
clang-cl only acts on five MSVC warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

With MSVC now unsupported, most -wdNNNN have no effect and can be removed.

This patch converts the five supported warnings to their clang spellings, as preparation for a subsequent patch that will remove all remaining `[/-]w[edo][0-9]{4}`.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 01:39:42 +00:00
Dorel Luca 64e7174bf2 Backed out changeset b171bfdb308f (bug 1529355) for build bustage 2019-02-22 17:14:45 +02:00
Nathan Froyd 89b49a32bd Bug 1529355 - emit STACK CFI lines for aarch64 windows; r=gsvelto
aarch64 windows uses a custom unwind information format to describe
how to unwind from within functions.  We need to parse that
information to describe to Breakpad how to unwind stacks for minidump
analysis.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 12:58:15 +00:00
David Major 5e9dad8ee0 Bug 1528304 - Update max memory recording regions. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D19960

--HG--
extra : moz-landing-system : lando
2019-02-15 19:12:32 +00: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
Jed Davis cb0091487b Bug 1472589 - Fix parent process crash reporting in the Snap package environment. r=ted,jlorenzo
1. The unsetting of LD_LIBRARY_PATH is removed, because it's no longer
necessary and interferes with environments where it's necessary to find
"system" libraries like GTK; see bug 1472589 comment #1 through #4.

2. The Snap package manifest adds a dependency on the libcurl package,
so that the crash reporter can send the report.  This uses the GnuTLS
variant because we're already pulling in GnuTLS as a dependency of some
other packages (FFmpeg and CUPS, but also the non-GnuTLS cURL packages
depend on it anyway via OpenLDAP).

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

--HG--
extra : moz-landing-system : lando
2019-02-11 13:49:35 +00:00
David Major 6c02212227 No bug - clean up redundant ifdef in nsExceptionHandler.cpp. DONTBUILD 2019-02-07 10:23:34 -05:00
inspiro afe6c5fe8f Bug 1522078 - Changed wrap-mode of GtkTextView widget to GTK_WRAP_CHAR. r=gsvelto
Bug 1522078 - Changed wrap-mode of GtkTextView widget to GTK_WRAP_CHAR.

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

--HG--
extra : moz-landing-system : lando
2019-02-05 05:01:21 +00:00
Gabriele Svelto 67c71cede9 Bug 1518947 - Update breakpad to revision 44384d80b32a5bb361c2ec3bee667f7ccee566d7 r=ted
This includes some assorted fixes from upstream plus an adaptation of the
patch in b988fa74ec18de6214b18f723e48331d9a7802ae which includes heap memory
regions in the minidump. Since our support for that is more extensive than
upstream breakpad the resulting change reflects this. Last but not least the
fixes for bug 1489094 and bug 1511140 were split out as patches to be applied
to the unmodified breakpad sources. They will be reintegrated as soon as we
fork breakpad for good.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 15:50:54 +00:00
Sylvestre Ledru 8181a46381 Bug 1524194 - Do not add stack pointer to clobber list r=ted
Cherry-pick upstream patch to address a build issue with gcc 9

https://chromium.googlesource.com/linux-syscall-support/+/8048ece6c16c91acfe0d36d1d3cc0890ab6e945c

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

--HG--
extra : moz-landing-system : lando
2019-02-01 11:37:06 +00:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Sebastian Hengst 9ece29fd9b Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 12:59:48 +02:00
Mike Hommey 4913b1c2d2 Bug 1523204 - Streamline the DIA SDK setup. r=chmanchester
We currently rely on WIN_DIA_SDK_BIN_DIR being passed, but we can
actually derive it from the DIA SDK directory. So we now do that, except
when it's given explicitly.

While in the vicinity, move the dia2.h check to python configure.

With WIN_DIA_SDK_BIN_DIR being derived and not set when dia2.h is not
found, we don't really need MSVC_HAS_DIA_SDK anymore, so we just check
for WIN_DIA_SDK_BIN_DIR to determine whether to build dump_syms or not.

One exception to the above is when WIN_DIA_SDK_BIN_DIR is passed in,
which we only keep for the in-tree mozconfigs for now. We'll remove that
possibility after bug 1523201.

Depends on D17892

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

--HG--
extra : moz-landing-system : lando
2019-01-29 07:38:14 +00:00
Mike Hommey 95cdfbcd30 Bug 1523204 - Automatically add WIN_DIA_SDK_BIN_DIR to PATH when running dump_syms. r=chmanchester
We can't run dump_syms without the DIA SDK binary directory in $PATH
because dump_syms requires the DIA dll from there.

Obviously, the corresponding test can't run if the DIA SDK binary
directory is not known (rather than when the dia2.h header is not found,
since the build system currently relies on WIN_DIA_SDK_BIN_DIR being
given manually).

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

--HG--
extra : moz-landing-system : lando
2019-01-29 07:38:12 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Aaron Klotz 8c0ca384fa Bug 1517637: Add launcher process state to crash report annotations; r=mhowell
Depends on D15759

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

--HG--
extra : moz-landing-system : lando
2019-01-09 23:36:38 +00:00
Sebastian Hengst 2ecf173b14 Merge mozilla-central to autoland 2019-01-23 11:31:44 +02:00
Daosheng Mu 9e6fcbe92a Bug 1518895 - Part 2: Crash report support in VR process. r=kip,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D16759

--HG--
extra : moz-landing-system : lando
2019-01-23 01:22:39 +00:00
Sylvestre Ledru 0b4021fcad Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl
# ignore-this-changeset

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

--HG--
extra : histedit_source : 084f340503d2e1a2d9e1753c38b2c4ee9c7819f3
2019-01-21 18:18:16 +01:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Gabriele Svelto bb6e8482fb Bug 1315935 - Remove the NumberOfProcessors crash annotation because it is redundant r=ted
Differential Revision: https://phabricator.services.mozilla.com/D16688

--HG--
extra : moz-landing-system : lando
2019-01-16 17:01:43 +00:00
David Major 9ed87684ba Bug 1484835 - Extend the Windows JIT unwind handler to ARM64 r=luke
Because the .xdata format on ARM64 can only encode sizes up to 1M (much too small for our JIT code regions), we register a function table callback to provide RUNTIME_FUNCTIONs at runtime. Windows doesn't seem to care about the size fields on RUNTIME_FUNCTIONs that are created in this way, so the same RUNTIME_FUNCTION can work for any address in the region. We'll set up a generic one in RegisterExecutableMemory and the callback can just return a pointer to it.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 14:06:24 +00:00
Mike Hommey 70f1ad55e1 Bug 1519307 - Add a new project to build useful parts of breakpad independently. r=froydnj
With `ac_add_options --enable-project=tools/crashreporter` in a
mozconfig, `./mach build` builds minidump_stackwalk, dump_syms
and fileid.

One caveat is that due to limitation in how the build system works
currently, it's cumbersome to keep dump_syms as a host program for
Gecko, and to make it a target program for this project. For now,
keep it as a host program. We're not going to use it on automation,
but it's still convenient to have for quick local builds (I've had
to resort to awful hacks downstream).

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

--HG--
extra : moz-landing-system : lando
2019-01-11 16:01:15 +00:00
Gabriele Svelto a735a5580b Bug 1510574 - Remove shared memory segments from generated minidumps to cut down on the number of modules r=ted
Differential Revision: https://phabricator.services.mozilla.com/D16188

--HG--
extra : moz-landing-system : lando
2019-01-11 08:56:07 +00:00
Nathan Froyd d983955203 Bug 1518922 - part 2 - remove GetChildProcessTmpDir; r=gsvelto
After part 1, this function and the code associated with it is no longer
used.
2019-01-10 16:13:37 -05:00
Nathan Froyd a6f22e88be Bug 1514044 - part 2 - change CrashReporterHost to use GeckoProcessTypes.h; r=gsvelto 2019-01-10 10:52:51 -05:00
Jed Davis 47e47c7561 Bug 1487287 - Fix thread-safety of crash reporter pid map. r=gsvelto
Depends on D8945

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

--HG--
extra : moz-landing-system : lando
2019-01-08 23:53:37 +00:00
Gabriele Svelto 8a2aee6162 Bug 1517730 - Enable the crash reporter by default on Windows/AArch64 builds r=ted
Differential Revision: https://phabricator.services.mozilla.com/D15763

--HG--
extra : moz-landing-system : lando
2019-01-09 22:39:22 +00:00
Ted Mielczarek 96349b53f8 bug 1392603 - Remove toolkit/crashreporter/tools/win32. r=gsvelto
We have prebuilt dump_syms binaries in toolkit/crashreporter/tools/win32 from
the days when we didn't build it as part of the build. There's one per MSVC
version, since the APIs it uses are version-specific, but we don't actually
support building with the MSVC versions corresponding to the binaries in that
directory anymore, so we should just remove them.

The only code change necessary here is changing the functional test to skip
running the test if a dump_syms binary isn't available.

MozReview-Commit-ID: IBuJZMVfv7C

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

--HG--
extra : moz-landing-system : lando
2019-01-04 13:39:39 +00:00