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

9087 Коммитов

Автор SHA1 Сообщение Дата
Zibi Braniecki 61e69628d6 Bug 1672317 - [l10nfilesource] part5: Migrate tests to use L10nFileSource. r=platform-i18n-reviewers,gregtatum
Depends on D105391

Differential Revision: https://phabricator.services.mozilla.com/D103259
2021-07-29 21:30:26 +00:00
Noemi Erli 9009ea58e0 Backed out 9 changesets (bug 1672317) for causing toolchain bustages
Backed out changeset c7d16d1bbf56 (bug 1672317)
Backed out changeset 8367ff19d3ba (bug 1672317)
Backed out changeset cce54c20ec3c (bug 1672317)
Backed out changeset a5d67460e7bb (bug 1672317)
Backed out changeset b78f3e332d57 (bug 1672317)
Backed out changeset 3e84f9a521f4 (bug 1672317)
Backed out changeset 1aaa22cf7c13 (bug 1672317)
Backed out changeset d850981cf33c (bug 1672317)
Backed out changeset 944805ef4561 (bug 1672317)
2021-07-30 00:19:40 +03:00
Zibi Braniecki 792cf026d4 Bug 1672317 - [l10nfilesource] part5: Migrate tests to use L10nFileSource. r=platform-i18n-reviewers,gregtatum
Depends on D105391

Differential Revision: https://phabricator.services.mozilla.com/D103259
2021-07-29 17:31:53 +00:00
Florin Strugariu 4b52d8e894 Bug 1721599 - [mozproxy] Drop mitm4 after migrating to mitm5 finished r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D120468
2021-07-29 12:07:17 +00:00
Kimberly Sereduck 38a95bdd75 Bug 1722282: [perfdocs] Validate URLs before formatting;r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D121079
2021-07-29 09:55:13 +00:00
Christoph Kerschbaumer 4a6250387f Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 19:16:16 +00:00
Sandor Molnar 68cdec0548 Backed out changeset 7eb8945dd8e3 (bug 1719272) for causing bustages in gecko decision task. CLOSED TREE 2021-07-28 19:47:06 +03:00
Christoph Kerschbaumer bb716f0701 Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 16:08:07 +00:00
Gijs Kruitbosch 6fce85b1ba Bug 1708462 - add warning level linter for OS.File use, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D120684
2021-07-28 15:15:03 +00:00
Mark Banner 64df328393 Bug 1722691 - Allow hooks to report the count of ESLint warnings as well as errors. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D121076
2021-07-28 11:30:29 +00:00
Julien Wajsberg d23918ae85 Bug 1717047 - [profiler, netwerk] Support all redirections in the parent process r=canaltinova,necko-reviewers,dragana
This moves the adding of the end marker for redirects in nsHttpChannel
to SetupReplacementChannel, so that all redirects are properly caught.
Without that, some requests will show as unfinished in the profiler
frontend.

Some of the redirects are internal and we may be able to flag and ignore
them in the frontend, but that's work for the future.

Because all redirections get a "REDIRECT" end marker, including the
internal redirection to the service worker's intercepted channel, we now
need an additional "START" marker there as well.

All existing profiler tests related to service workers needed to be
updated because there's an extra redirect marker in all these requests,
as well as several pairs of markers that all have the same id.

This also adds a new profiler test for handling the http->https case
that we wouldn't catch before this patch.

Differential Revision: https://phabricator.services.mozilla.com/D118836
2021-07-27 15:12:53 +00:00
Nika Layzell 0e37500335 Bug 1719577 - Part 2: Create mMonitor eagerly in MessageChannel's constructor, r=handyman
Now that PortLink is the only MessageLink implementation, it is no longer
necessary to support sharing a single `RefCountedMonitor` between multiple
MessageChannels, meaning that we can construct the monitor directly in the
`MessageChannel` constructor. The monitor still needs to be refcounted due to
being used by the PortLink as part of the listener implementation.

Differential Revision: https://phabricator.services.mozilla.com/D119350
2021-07-23 19:14:56 +00:00
Kimberly Sereduck dd30ab73f1 Bug 1718124: Add documentation for Raptor benchmark and scenario tests;r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D118750
2021-07-23 09:51:05 +00:00
Julian Descottes 322abbb543 Bug 1721787 - [devtools] devtools try presets are no longer running linux jobs r=ochameau
Depends on D120580

Differential Revision: https://phabricator.services.mozilla.com/D120587
2021-07-23 09:22:46 +00:00
Julian Descottes add15451cf Bug 1721780 - [devtools] devtools try preset is no longer running windows jobs r=nchevobbe
The only platforms available for devtools chrome & browser mochitests are now:
- shippable
- asan
- qr

Only qr covers debug/opt/fission, so let's use this.

Differential Revision: https://phabricator.services.mozilla.com/D120580
2021-07-22 10:28:38 +00:00
Gerald Squelart e7e9ae90ae Bug 1721110 - profiler_current_thread_id() now returns ProfilerThreadId - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D120225
2021-07-21 04:16:59 +00:00
Gerald Squelart 7bc3116790 Bug 1721110 - baseprofiler::profiler_current_thread_id() now returns BaseProfilerThreadId - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D120224
2021-07-21 04:16:59 +00:00
Gerald Squelart 0e7895310f Bug 1721110 - profiler_current_process_id() now returns ProfilerProcessId - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D120223
2021-07-21 04:16:58 +00:00
Gerald Squelart 72f0855bfa Bug 1721110 - Introduce BaseProfilerProcessId and BaseProfilerThreadId - r=florian
These classes should replace the `int` type that is currently used to store process and thread ids. The next patches will start using them. Advantages:
- Prevent type mismatches, e.g., giving a process id (or other number) to a function expecting a thread id.
- Prevent nonsensical arithmetic operations.
- Make the unspecified id more abstract, so it's more obvious and portable.
- Make conversions to/from numbers (for display or storage) more visible.
- Allow future changes of APIs using them less risky.
- Allow future changes of the ids themselves (e.g., to be able to use bigger underlying types on some platforms, or even the opaque std:🧵:id type.)

Differential Revision: https://phabricator.services.mozilla.com/D120221
2021-07-21 04:16:57 +00:00
Gerald Squelart a966352bcd Bug 1721110 - {,Base}ProfilerUtils.h with process&thread functions taken from {,Base}ProfilerState.h - r=florian
This new header isolates the process and thread functions that should be available in all builds, and in most other profiler headers.
Non-MOZ_GECKO_PROFILER implementations return ids 0 (unspecified process/thread). `profiler_is_main_thread()` returns false, it's arbitrary but consistent with `0` (it makes little sense to use it there anyway.)

Differential Revision: https://phabricator.services.mozilla.com/D120220
2021-07-21 04:16:57 +00:00
Gerald Squelart 171c2eed5f Bug 1721110 - {,Base}ProfilerState.h improvements: Sprinkle nodiscard's and more - r=florian
The next patch will extract parts of these headers into a separate file, so it's best to do this clean-up now, to best preserve history.
- Add [[nodiscard]] to all functions that return something. (There are no cases where that returned value could really be ignored.)
- Hide scProfilerMainThreadId in a "detail" namespace, to emphasize that it's an implementation detail that the user shouldn't access directly.
- Combine tightly-nested namespaces start/end into single lines, it's more readable.

Differential Revision: https://phabricator.services.mozilla.com/D120219
2021-07-21 04:16:56 +00:00
Gerald Squelart 02a156fe92 Bug 1720846 - Fix non-unified build by adding missing #includes - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D120301
2021-07-20 09:31:17 +00:00
Kajal Sah 2bf658dd41 Bug 1718713 - Creates dummy custom element in new screenshot. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D119209
2021-07-19 16:47:34 +00:00
Alex Lopez 77ce415604 Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-19 16:04:25 +00:00
surajeet310 407f1ae5ac Bug 1717651 - Removed instances of 'ensure_subprocess_env' from tools/lint/eslint r=mhentges
Since Python 2 is no longer used in tools/lint/eslint,hence 'ensure_subprocess_env' is obsolete.

Differential Revision: https://phabricator.services.mozilla.com/D119917
2021-07-16 21:06:25 +00:00
Sylvestre Ledru ef018c2533 Bug 1720922 - Update sphinx 4.1.1 and its dependencies r=firefox-build-system-reviewers,mhentges
Depends on D120087

Differential Revision: https://phabricator.services.mozilla.com/D120088
2021-07-16 17:38:43 +00:00
Butkovits Atila a07f790e42 Backed out changeset e1921c5112d8 (bug 1696251) for causing bustages complaining about 'CommandContext'. CLOSED TREE 2021-07-16 20:35:55 +03:00
Butkovits Atila 9cd21f6f85 Backed out changeset d1f54e2176d1 (bug 1718124) for causing lint failures at perfdocs/config.yml. CLOSED TREE 2021-07-16 20:17:56 +03:00
Kimberly Sereduck 56e729107d Bug 1718124: Add documentation for Raptor benchmark and scenario tests;r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D118750
2021-07-16 16:56:50 +00:00
Alex Lopez 190e03aaab Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-16 15:51:29 +00:00
Florian Quèze 4593f874da Bug 1720853 - Move profiler_add_*_marker functions out of the public GeckoProfiler.h header, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D120066
2021-07-16 15:26:23 +00:00
Florian Quèze 4f4eb91a27 Bug 1720851 - fix includes in NetworkMarker.cpp, r=gerald,necko-reviewers,kershaw.
Differential Revision: https://phabricator.services.mozilla.com/D120062
2021-07-16 15:26:23 +00:00
Florian Quèze 292c1a1f60 Bug 1720368 - Remove MOZ_GECKO_PROFILER ifdefs around profiler_init and profiler_shutdown calls, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D119809
2021-07-15 22:04:23 +00:00
Florian Quèze 57d1e300f5 Bug 1720362 - Remove the last MOZ_GECKO_PROFILER ifdefs in ipc code, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D119801
2021-07-15 22:04:22 +00:00
Florian Quèze c4c51c4002 Bug 1720358 - Make AutoProfilerLabel available even when MOZ_GECKO_PROFILER is not defined, and remove ifdefs, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D119795
2021-07-15 22:04:22 +00:00
Florian Quèze 4f6e64dec4 Bug 1720289 - remove MOZ_GECKO_PROFILER ifdefs around network markers, r=necko-reviewers,gerald,kershaw.
Differential Revision: https://phabricator.services.mozilla.com/D119740
2021-07-15 22:04:21 +00:00
surajeet310 cb818a9aa9 Bug 1717651 - Removed instances of 'ensure_subprocess_env' from tools/tryselect/selectors r=mhentges
'ensure_subprocess_env' is obsolete now as Python 2 is no longer used in tools/tryselect/selectors .

Differential Revision: https://phabricator.services.mozilla.com/D119979
2021-07-15 21:40:50 +00:00
Tom Ritter 1b9b6b72db Bug 1666222: Cut over a ton of NowUnfuzzed calls -> Now 4/5 r=smaug,extension-reviewers,zombie
With Fuzzyfox removed, Now() does what NowUnfuzzed() did.

Differential Revision: https://phabricator.services.mozilla.com/D119639
2021-07-14 18:18:17 +00:00
Gerald Squelart 9b0d666eda Bug 1719240 - Rework PSMutex into PSAutoLock - r=canaltinova
This prevents unwanted direct access to the mutex, and removes duplicated code.

And make the Base Profiler mutex&lock consistent.

Differential Revision: https://phabricator.services.mozilla.com/D119147
2021-07-13 12:20:49 +00:00
Gerald Squelart 2323e31002 Bug 1719240 - Use BaseProfilerMutex and Lock for state-change APIs - r=canaltinova
PSMutex/Autolock are reserved for the main profiler mutex (which will change in the next patch.)

Differential Revision: https://phabricator.services.mozilla.com/D119146
2021-07-13 12:20:49 +00:00
Tooru Fujisawa cc92ef732d Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119619
2021-07-13 11:52:42 +00:00
Andi-Bogdan Postelnicu 90ec98c524 Bug 1719812 - Upgrade llvm toolchain to 12.0.1. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D119493
2021-07-12 13:44:32 +00:00
Steve Fink 09c0d66bcc Bug 1718819 - Export gBreakpadEnabled symbol to fix minidump suppression mechanism. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D119467
2021-07-10 14:17:31 +00:00
Gerald Squelart bc59d71b79 Bug 1719670 - Clear running times when starting a profile, to avoid a big CPU value when restarting the profiler - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D119411
2021-07-09 11:21:25 +00:00
Sandor Molnar d8c88ba66a Backed out changeset 932f7478dc2a (bug 1717047) for causing bug 1719684. CLOSED TREE 2021-07-08 19:41:24 +03:00
Florian Quèze df151e59a2 Bug 1719218 - Remove the need for MOZ_GECKO_PROFILER ifdefs in code using ChildProfilerController, r=gerald,necko-reviewers,dragana.
Differential Revision: https://phabricator.services.mozilla.com/D119132
2021-07-08 16:20:10 +00:00
Florian Quèze 673e38408d Bug 1719218 - Build ProfilerParent even when MOZ_GECKO_PROFILER is not defined, r=gerald,necko-reviewers,nika,dragana.
Differential Revision: https://phabricator.services.mozilla.com/D119131
2021-07-08 16:20:08 +00:00
Michael Froman bbce1490f9 Bug 1719491 - revert clang-format of tools/profiler/public/GeckoTraceEvent.h. r=ng
Bug 1714577 meant to exclude tools/profiler/public/GeckoTraceEvent.h from
clang-format, but the trailing comment in .clang-format-ignored broke that.
Bug 1519636 then formatted the file.

This fixes the exclusion in .clang-format-ignore and backs out the
clang-format on tools/profiler/public/GeckoTraceEvent.h.

Differential Revision: https://phabricator.services.mozilla.com/D119297
2021-07-07 15:57:17 +00:00
Julien Wajsberg e2636f5dd9 Bug 1717047 - [profiler, netwerk] Support all redirections in the parent process r=canaltinova,necko-reviewers,dragana
This moves the adding of the end marker for redirects in nsHttpChannel
to SetupReplacementChannel, so that all redirects are properly caught.
Without that, some requests will show as unfinished in the profiler
frontend.

Some of the redirects are internal and we may be able to flag and ignore
them in the frontend, but that's work for the future.

Because all redirections get a "REDIRECT" end marker, including the
internal redirection to the service worker's intercepted channel, we now
need an additional "START" marker there as well.

All existing profiler tests related to service workers needed to be
updated because there's an extra redirect marker in all these requests,
as well as several pairs of markers that all have the same id.

This also adds a new profiler test for handling the http->https case
that we wouldn't catch before this patch.

Differential Revision: https://phabricator.services.mozilla.com/D118836
2021-07-07 14:09:47 +00:00
Aaron Klotz b1e6df55c3 Bug 1715650: Add linter for detecting COM initialization; r=linter-reviewers,andi
This patch adds a new linter that will error when new code mentions any one of
the following strings:

* `CoInitialize`;
* `CoInitializeEx`;
* `OleInitialize`;
* `RoInitialize`;
* `CoUninitialize`;
* `OleUninitialize`; and
* `RoUninitialize`.

Since I don't care about context, and just want to flag code containing these
names, I opted for a `regex` linter.

Yes, the regex does match a few strings beyond the above list (in particular, it
also matches additional strings that end with an `Ex` suffix), but since
functions with those names don't exist anyway (and would be errors in their own
right), I am not concerned about it.

All existing occurrences have been added to the exclusion list, with the
intent of removing most of them over time.

Differential Revision: https://phabricator.services.mozilla.com/D119129
2021-07-06 14:05:42 +00:00