Commit Graph

8848 Commits

Author SHA1 Message Date
David Parks
311a1c73dd Bug 1682030 - Remove some dead NPAPI code from dom/plugins and related spots. r=jmathies,mconley,ipc-reviewers,mccr8
This is the first of two patches in this series that removes a large amount of now dead code from dom/plugins as part of removing all NPAPI plugin support.  This patch removes re-entrancy guards we have for Windows OnPaint messages, as the guards were only needed for windowed plugins.

Differential Revision: https://phabricator.services.mozilla.com/D107144
2021-04-06 19:28:12 +00:00
Steve Fink
ffb8698cf3 Bug 1702766 - Add settings to mach try again --list-tasks output r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D110678
2021-04-06 14:44:35 +00:00
Csoregi Natalia
d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks
2619aa617d Bug 1682030 - Remove HiddenPluginEvent. r=jmathies,webidl,edgar
HiddenPluginEvent is no longer used since NPAPI plugin support has been removed.

Differential Revision: https://phabricator.services.mozilla.com/D107159
2021-04-05 23:48:43 +00:00
David Parks
0e34d4d48b Bug 1682030 - Remove NPAPI blocklisting r=Gijs,jmathies,mixedpuppy
Removes the PluginProvider and NPAPI plugin blocklist handling as part of removing all NPAPI support.  This allows us to remove nsIPluginHost.

Differential Revision: https://phabricator.services.mozilla.com/D107148
2021-04-05 23:48:38 +00:00
David Parks
3987158be1 Bug 1682030 - Remove some dead NPAPI code from dom/plugins and related spots. r=jmathies,mconley,ipc-reviewers,mccr8
This is the first of two patches in this series that removes a large amount of now dead code from dom/plugins as part of removing all NPAPI plugin support.  This patch removes re-entrancy guards we have for Windows OnPaint messages, as the guards were only needed for windowed plugins.

Differential Revision: https://phabricator.services.mozilla.com/D107144
2021-04-05 23:48:35 +00:00
Noemi Erli
17280a6f32 Backed out changeset 78b33c83dcd6 (bug 1698524) for causing assertion and crash CLOSED TREE 2021-04-06 02:24:57 +03:00
Randell Jesup
844e32ff8b Bug 1698524: Clear profiler memory counter on re-enabling of the profiler r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D108447
2021-04-05 21:27:59 +00:00
Csoregi Natalia
57053d386c Backed out changeset 95e43f573edb (bug 1698524) for causing assertion failure on ProfilerCounts.h. CLOSED TREE 2021-04-05 21:59:04 +03:00
Randell Jesup
da9e1d9b81 Bug 1698524: Clear profiler memory counter on re-enabling of the profiler r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D108447
2021-04-05 17:33:54 +00:00
Mark Banner
c3d0fbb56a Bug 1702166 - Update ESLint, Babel and associated modules to the latest versions. r=mossop,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110606
2021-04-04 08:05:39 +00:00
Alexandru Michis
1662cd5584 Backed out 3 changesets (bug 1681985) for causing performance issues.
CLOSED TREE

Backed out changeset 7b19f4ed5182 (bug 1681985)
Backed out changeset e77582268ce1 (bug 1681985)
Backed out changeset 386a8b11c127 (bug 1681985)
2021-04-01 17:51:47 +03:00
Emilio Cobos Álvarez
fa5a125f6f Bug 1700475 - Allow the WebRender build script to leak under ASAN. r=firefox-build-system-reviewers,glandium
Also update the build docs, manually passing those flags shouldn't be
needed anymore.

Differential Revision: https://phabricator.services.mozilla.com/D110293
2021-04-01 09:14:40 +00:00
Toshihito Kikuchi
0d9e48e427 Bug 1702086 - Make sure LoadLibraryEx really locks the mapped address. r=mstange
Before `SharedLibraryInfo::GetInfoForSelf` calls `GetPdbInfo` to parse a module's
PE header, it calls `LoadLibraryEx` to prevent the module from being unloaded
during `GetPdbInfo`.  If the module was already unloaded before `LoadLibraryEx`,
however, `LoadLibraryEx` maps the module onto an address different from the original
mapped address, so that `module.lpBaseOfDll` becomes invalid.

This patch is to call `LoadLibraryEx` before `GetModuleInformation` to make sure
`LoadLibraryEx` increments the module's refcount and does not map the module onto
a new address.  With this, `module.lpBaseOfDll` is always valid, thus we don't have
to call `VirtualQuery`.

Differential Revision: https://phabricator.services.mozilla.com/D110421
2021-04-01 00:35:01 +00:00
Florian Quèze
113408d081 Bug 1701524 - add more inner window ids in markers, r=canaltinova.
Differential Revision: https://phabricator.services.mozilla.com/D110046
2021-03-31 18:23:13 +00:00
Dave Hunt
2c8aa7e49c Bug 1700767 - Remove live site filter for Raptor tests; r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D109665
2021-03-29 21:11:11 +00:00
championshuttler
1f5055fa54 Bug 1700423 - Remove py2 and py3 linters and their config from taskcluster.r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D109647
2021-03-26 05:26:42 +00:00
Nazım Can Altınova
7039884fe6 Bug 1698129 - Rename the profiler browsingContextID outputs to tabID and bump the profile version r=gerald
Lastly, we are changing the parts that requires a version bump and bumping the
profiler version in the end. This will require a PR in the front-end for a
version upgrader and changes related to the renaming.

Differential Revision: https://phabricator.services.mozilla.com/D109282
2021-03-25 12:52:11 +00:00
Nazım Can Altınova
4356d88793 Bug 1698129 - Change the tabID sources from browsingContextId to browserId in the profiler r=nika,julienw
We have two parts in the codebase that we get the browsingContextId.
1) Inside the DOM code with profiler_register_page function whenever a
navigation happens.
2) Inside the profiler recording front-end when we start the profiler. That was
kept as activeBrowsingContextID, and now it's kept as activeTabID.

We are now changing these parts to keep the browserId instead so it directly
corresponds to the tabs. BrowsingContexts are replaced when there is a
cross-group navigation, but BrowserId is being preserved.

Differential Revision: https://phabricator.services.mozilla.com/D109281
2021-03-25 12:52:11 +00:00
Nazım Can Altınova
f8b414e1c2 Bug 1698129 - Rename browsingContextID to tabID inside the profiler codebase r=julienw,gerald,devtools-backward-compat-reviewers
This patch is only  about renaming the internals of the profiler codebase and
it doesn't touch any parts that requires a backwards compatibility or version
bump.

Differential Revision: https://phabricator.services.mozilla.com/D109280
2021-03-25 12:52:10 +00:00
Gerald Squelart
c5b22960b5 Bug 1700625 - Move MOZ_PROFILER_STARTUP_ACTIVE_BROWSING_CONTEXT_ID help to a better spot - r=julienw DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D109676
2021-03-25 10:31:15 +00:00
Simon Giesecke
760cc7e936 Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert
- Add missing include directives and forward declarations.
- Remove some extra include directives.
- Add missing namespace qualifications.
- Move include directives out of namespace in toolkit/xre/GlobalSemaphore.h

Differential Revision: https://phabricator.services.mozilla.com/D98894
2021-03-25 10:19:44 +00:00
Brindusan Cristian
2586a80626 Backed out changeset d47a138a3b50 (bug 1668903) for causing xpcshell failures. CLOSED TREE 2021-03-24 23:22:21 +02:00
Emilio Cobos Álvarez
9d7bb1aa62 Bug 1668903 - Port dmd.py to python3. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D98927
2021-03-24 20:45:56 +00:00
Simon Giesecke
4a308827e3 Bug 708901 - Migrate to nsTHashSet in ipc. r=ipc-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D109322
2021-03-24 17:56:48 +00:00
Csoregi Natalia
f54ee076ae Backed out 13 changesets (bug 708901, bug 1184468) for causing build bustage on GeckoViewHistory.cpp. CLOSED TREE
Backed out changeset b1e4c01e63b8 (bug 708901)
Backed out changeset 37b52cce83c0 (bug 708901)
Backed out changeset eee75f33f060 (bug 708901)
Backed out changeset 479bf64c7986 (bug 708901)
Backed out changeset 15a8fb94d15d (bug 708901)
Backed out changeset be31ccd9a61d (bug 708901)
Backed out changeset fc54f4eaedd5 (bug 708901)
Backed out changeset 03c3a56c3d13 (bug 708901)
Backed out changeset 73f11d3c1298 (bug 708901)
Backed out changeset aed22fd80893 (bug 708901)
Backed out changeset 74d8249fbe7e (bug 708901)
Backed out changeset acb725eb3c1d (bug 1184468)
Backed out changeset 70f3ea6efec4 (bug 1184468)
2021-03-24 19:26:20 +02:00
Simon Giesecke
b07f34785d Bug 708901 - Migrate to nsTHashSet in ipc. r=ipc-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D109322
2021-03-24 16:59:00 +00:00
Nazım Can Altınova
4e8f3a2687 Bug 1699646 - Add Android device information to the profile meta object r=geckoview-reviewers,agi,gerald,julienw
Differential Revision: https://phabricator.services.mozilla.com/D109408
2021-03-24 16:56:12 +00:00
Erik Rose
52703e294a Bug 1681985 - Extract LabelUtils to FormAutofillUtils.jsm. r=zbraniecki
We need it from both FormAutofillHeuristics and CreditCardRuleset, and it would make a circular import otherwise: FormAutofillHeuristics -> CreditCardRuleset -> FormAutofillHeuristics.

Differential Revision: https://phabricator.services.mozilla.com/D100140
2021-03-23 18:31:07 +00:00
Andrew Creskey
8fc0c422ec Bug 1698515 - Remove spaces from PerfStats metric names r=barret
Removing spaces from PerfStat metric names because they break the perfherder/perftest tokenization.

Differential Revision: https://phabricator.services.mozilla.com/D109364
2021-03-23 12:09:55 +00:00
Jeff Muizelaar
9290181962 Bug 1700113 - Use the builtin gettid() on Android. r=glandium
Syscalls can be pretty slow on Android and this lets us use the
gettid() cache that bionic has:
d7c52625f2/libc/bionic/gettid.cpp

Differential Revision: https://phabricator.services.mozilla.com/D109353
2021-03-23 00:41:12 +00:00
Mike Hommey
86270cdf01 Bug 1699375 - Move MozStackWalkThread to a separate header. r=gerald
It requires including <windows.h>, preventing the inclusion of StackWalk.h
from some places (and upcoming changes will make StackWalk.h included in
more places).

Differential Revision: https://phabricator.services.mozilla.com/D108910
2021-03-22 21:25:29 +00:00
Florian Quèze
8ad1e5d0aa Bug 1699742 - Remove MOZ_GECKO_PROFILER ifdefs that are no longer needed, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D109078
2021-03-22 16:29:52 +00:00
Myeongjun Go
68c759ec5b Bug 1691558 - Strengthen a log to confirm that the file will be searched r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D107391
2021-03-22 15:48:50 +00:00
Sylvestre Ledru
4b843f1ebf Bug 1699950 - mozlint/flake8: also update autopep8 r=linter-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D109234
2021-03-22 07:18:38 +00:00
Sylvestre Ledru
33d0032fc3 Bug 1699950 - Update to flake8 3.9.0 r=linter-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D109222
2021-03-22 07:18:38 +00:00
Sylvestre Ledru
8ffdec6355 Bug 1699950 - mozlint/flake8: Move to pip-compile r=linter-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D109221
2021-03-22 07:18:37 +00:00
Ed Lee
f07a609a76 Bug 1699188 - [mozlint] Include jsmin now that mozversioncontrol uses it r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D108807
2021-03-17 18:57:03 +00:00
Florian Quèze
dc0e6ae9f9 Bug 1699036 - Fix build error on (symbol 'profiler_is_locked_on_current_thread()' is multiply-defined) on platforms with MOZ_GECKO_PROFILER not defined, r=gerald. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D108744
2021-03-17 08:50:18 +00:00
Ryan Kelly
f6a46d059d Bug 1665420 - Remove legacy BrowserID crypto code. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D107985
2021-03-17 00:38:08 +00:00
Mike Hommey
ec7f538e0c Bug 1698719 - Remove aSkipFrames argument to both FramePointerStackWalk and MozStackWalkThread. r=gsvelto,gerald
In the case of FramePointerStackwalk, the caller gives a pointer to the
top-most frame to walk from. There isn't really a reason to give a
number of frames to skip, as the right frame pointer could be given in
the first place if that was really necessary. And in practice, it's
hasn't been used so far.

In the case of MozStackWalkThread, the caller presumably doesn't know
what the thread the stack is being walked for is doing, and it would be
a guesswork to pass a valid number of frames to skip. In practice, it's
also not used.

The aSkipFrames is already a footgun on MozStackWalk (and we're going to
change that in bug 1515229), we don't need to keep a footgun on these
other stack walking methods.

Differential Revision: https://phabricator.services.mozilla.com/D108563
2021-03-17 00:21:39 +00:00
Luca Greco
7b459bbed3 Bug 1698158 - part 3.2 - Remove unnecessary imports from testharness addons experimental API. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D108229
2021-03-16 18:15:41 +00:00
Florian Quèze
0e334fd3d8 Bug 1698493 - ProfilerState.h should define no-op inline functions to avoid MOZ_GECKO_PROFILER ifdefs in code adding markers, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D108457
2021-03-16 12:04:01 +00:00
Gerald Squelart
2cc3b39bc9 Bug 1698427 - Call ExtractJsFrames outside of MergeStacks, before native stackwalk (if present) - r=canaltinova
In a later bug, ExtractJsFrames will retrieve more information about the JS frames, which will be given to stack walkers in order to resume native sampling past JIT stacks.

Differential Revision: https://phabricator.services.mozilla.com/D108417
2021-03-16 05:08:23 +00:00
Gerald Squelart
3c786e5b5e Bug 1698427 - Clean and optimize ExtractJsFrames - r=canaltinova
Some changes after the previous just-move-the-code refactoring:
- Updated functon comment for clarity.
- Renamed `jsCount` to more precise `jsFramesCount`.
- Moved `samplePosInBuffer` computation to where it's first needed. Bonus: It won't happen anymore if there is no JS stack.
- Construct `jsIter` as first `for` statement, it's clearer that it's the main loop iterator.
- Moved `MAX_JS_FRAMES` checks into the loop body, and only when needed.
- Try to move-from an rvalue reference to the `frame`, instead of `value()` forcing a copy.
- Moved `context` retrieval closer to first use. Same in `MergeStacks`; Note that `aRegisteredThread.GetJSContext()` is only reading a member variable, so it's cheap enough to use it again there if needed, it may even be better overall than storing it in a register or on the stack (if the compiler couldn't optimize it already before).

Differential Revision: https://phabricator.services.mozilla.com/D108416
2021-03-16 05:08:22 +00:00
Gerald Squelart
76a3ecb304 Bug 1698427 - ExtractJsFrames factored out of MergeStacks - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D108415
2021-03-16 05:08:22 +00:00
Dave Hunt
a51eb65163 Bug 1697594 - Migrate static wiki content for Talos tests to PerfDocs r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D107896
2021-03-15 18:09:58 +00:00
Gerald Squelart
29484a6f2b Bug 1687631 - Add cpu profiler feature to stack-walking profiling tests - r=florian,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D107599
2021-03-15 11:54:44 +00:00
Gerald Squelart
f193604f7c Bug 1687631 - Enable CPU Utilization by default in the profilers - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D107598
2021-03-15 11:54:43 +00:00
Dave Hunt
9e3ef144c3 Bug 1697772 - Replace uses of "whitelist" with "allowlist" in Talos r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D108163
2021-03-12 22:04:46 +00:00