Commit Graph

8785 Commits

Author SHA1 Message Date
Jens Stutte
05581ddca4 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 22:11:58 +00:00
Cosmin Sabou
b2eb620ed0 Backed out changeset 03cae7800b41 (bug 1678330) for mochitest plain failures on test_window_open_discarded_bc.html. CLOSED TREE 2021-03-02 20:18:21 +02:00
Jens Stutte
a0af9ea0a4 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 15:15:20 +00:00
Mike Hommey
39a14165d0 Bug 1694318 - Remove the mozjs_sys rust crate. r=jandem
The mozjs_sys crate is actually responsible for all the problems
encountered with the js crate we just removed, but the sm-mozjs-crate
task that builds and runs tests for it doesn't fail because... there is
actually no test to build and run, so all it builds is a static library,
which doesn't expose all the problems that exist.

The content of this crate in mozilla-central is also outdated compared
to servo upstream.

Differential Revision: https://phabricator.services.mozilla.com/D106390
2021-03-02 08:09:35 +00:00
Mike Hommey
93e7a214c2 Bug 1694318 - Remove the js rust crate. r=jandem,sheehan
The sm-rust-bindings task that builds and runs tests for it actually only
doesn't fail by three(!) distinct happenstances of chance:
- It somehow doesn't hit a race condition that can happen, but that
  attempting to change the build process for jsglue.cpp did,
- The second call to `cargo test` without `--feature debugmozjs` only
  works because nothing was cleaned up from the first and the second
  build uses artifacts from the first that are otherwise not there if
  only running the second.
- The addition of rust code to spidermonkey (the jsrust crate in
  js/src/rust) somehow didsn't cause problems in the current
  configuration, but in other configurations (which fixing the second
  thing above unveils) the build fails because of the multiple
  definition of rust_eh_personality between the jsrust staticlib and the
  rust stdlib that rustc links to test programs.

On top of all the above, the content of the crate in mozilla-central
has not received updates from upstream servo in years, and doesn't
reflect what servo actually uses.

Differential Revision: https://phabricator.services.mozilla.com/D106389
2021-03-02 08:09:35 +00:00
Dan Minor
a685764079 Bug 1691763 - Add identifier length check for Fluent linter; r=gregtatum,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D106666
2021-03-01 16:18:26 +00:00
Julien Cristau
e92445954b Bug 1689040 - bump update-verify docker image to ubuntu 20.04. r=bhearsum
Use python3 in more places so we don't have to explicitly install
the python 2.x package.

The newer version of curl in 20.04 will hopefully fix the intermittent
http2 framing errors we've been seeing recently.

Differential Revision: https://phabricator.services.mozilla.com/D106259
2021-03-01 10:49:26 +00:00
Jens Stutte
1e19379853 Bug 1689953: Harmonize shutdown phase definitions across nsTerminator and AppShutdown r=dthayer,chutten
This patch wants to solve several quirks around the shutdown terminator.

 - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files.
 - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration.
 - Add missing phases to the shutdown telemetry.

Please note that this changes the unit of "tick" to 100ms rather than 1s.
As a side effect, we also remove the obsolete "shutdown-persist" context.

While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]].

Differential Revision: https://phabricator.services.mozilla.com/D103626
2021-02-27 14:38:14 +00:00
Butkovits Atila
bb3fe218a4 Backed out changeset be43a81b35f9 (bug 1689953) for causing failure at test_terminator_record.js. CLOSED TREE 2021-02-27 05:03:11 +02:00
Jens Stutte
f6d52040b9 Bug 1689953: Harmonize shutdown phase definitions across nsTerminator and AppShutdown r=dthayer,chutten
This patch wants to solve several quirks around the shutdown terminator.

 - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files.
 - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration.
 - Add missing phases to the shutdown telemetry.

Please note that this changes the unit of "tick" to 100ms rather than 1s.
As a side effect, we also remove the obsolete "shutdown-persist" context.

While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]].

Differential Revision: https://phabricator.services.mozilla.com/D103626
2021-02-26 21:33:29 +00:00
Simon Giesecke
9af107a839 Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
This makes the naming more consistent with other functions called
Insert and/or Update. Also, it removes the ambiguity whether
Put expects that an entry already exists or not, in particular because
it differed from nsTHashtable::PutEntry in that regard.

Differential Revision: https://phabricator.services.mozilla.com/D105473
2021-02-26 09:11:46 +00:00
Alex Lopez
56dc4c7787 Bug 1682959 - Update pylint dependencies to ensure compatibility. r=mhentges
Conflicting pylint requirements were causing the new pip dependency resolver
to report an error. This updates the dependencies for pylint (using the hashin package)
so that the conflict is resolved.

Differential Revision: https://phabricator.services.mozilla.com/D106154
2021-02-25 18:36:59 +00:00
Kershaw Chang
61d4a64bb0 Bug 1688864 - P2: Add more tests for ODoH r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106074
2021-02-25 13:07:04 +00:00
Daisuke Akatsuka
c0e2db0631 Bug 897954: Implement and apply purge-caches mechanism. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D105440
2021-02-25 01:58:23 +00:00
smolnar
8a82d9ec16 Backed out 3 changesets (bug 897954) for causing node test failures in PlacesFeed. CLOSED TREE
Backed out changeset 0a60eb3f7ba8 (bug 897954)
Backed out changeset 9443814d173b (bug 897954)
Backed out changeset 2e558ac8e419 (bug 897954)
2021-02-25 03:21:58 +02:00
Daisuke Akatsuka
88810c4c22 Bug 897954: Implement and apply purge-caches mechanism. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D105440
2021-02-25 00:12:40 +00:00
Henrik Skupin
563458af7d Bug 1690475 - [remote] Reorganize xpcshell and browser chrome tests. r=remote-protocol-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D106062
2021-02-23 17:37:03 +00:00
Gerald Squelart
b22230bc7d Bug 1693502 - Check GetObserverService() instead of gXPCOMShuttingDown to handle pre/failed-XPCOM calls - r=florian
In XREMain(), if something went wrong between `PROFILER_INIT` and `MakeUnique<ScopedXPCOMStartup>()`,
- XPCOM would not be initialized -- Meaning `ExtensionPolicyService::GetSingleton()` would assert when not finding the Observer Service,
- But `gXPCOMShuttingDown` would still be false.
So `StreamMetaJSCustomObject` (invoked by `profiler_shutdown`, called by the `PROFILER_INIT` object destructor at the end of `XREMain()`) would still attempt to use `ExtensionPolicyService::GetSingleton()`.

In this patch, `StreamMetaJSCustomObject` now checks that the observer service exists, instead of only testing `!gXPCOMShuttingDown`. This should handle all situations where `ExtensionPolicyService::GetSingleton()` could assert, not just during normal shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D106061
2021-02-23 09:01:37 +00:00
Alexandre Poirot
ed507be3f8 Bug 1690742 - [devtools] - Strip flow from the debugger sources. r=nchevobbe,bomsy
This is a mixed of automated and manual changes.
See abandoned revisions on phabricator for a detailed breakdown.

Differential Revision: https://phabricator.services.mozilla.com/D105324
2021-02-22 10:48:52 +00:00
championshuttler
501ee430fa Bug 1691327 - Update sphinxcontrib-mermaid to v0.6.2 by renovate DONTBUILD.r=sylvestre,firefox-source-docs-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D105660
2021-02-20 19:12:01 +00:00
Neil Deakin
9b59ada594 Bug 1689126, add a test to verify that a subframe crash notification does not appear if there is no crash report, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D105661
2021-02-19 13:40:45 +00:00
championshuttler
2d8d6edee2 Bug 1693140 - Fix the mermaid rendering issue and remove post processing script.r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D105674
2021-02-19 08:45:10 +00:00
Jeff Gilbert
85bbcbfa5e Bug 1602143 - Use ShortStatementLines=1 for readability-braces-around-statements. r=andi
This will reduce the false-positive rate that sometimes causes devs to
ignore other important warnings because they expect to see these
warnings because of module/legacy code styles.

```
if (foo) return; // no longer warns
if (bar)
  return; // still warns
```
clang-format will sometimes turn long-line versions of the former into
the latter, and this warning will pick those as readability warnings.
NB: This is Chromium style for same-line conditional statements.

Another test result json has its EOL-newline removed too, since that's
what the script does and I'm just committing its results.

Differential Revision: https://phabricator.services.mozilla.com/D105497
2021-02-18 08:26:11 +00:00
Gerald Squelart
96f3fabfcb Bug 1693037 - Fix non-MOZ_GECKO_PROFILER builds - r=florian
No code changes.

Build issues were found by renaming `MOZ_GECKO_PROFILER` to something else in toolkit/moz.configure, in both unified and non-unified builds, on all supported platforms.

Also updated some profiler-related comments.

Differential Revision: https://phabricator.services.mozilla.com/D105375
2021-02-17 22:36:28 +00:00
Simon Fraser
08f4bf1a3b Bug 1643195 Remove nonfunctional make_incremental_updates.py r=aki
Differential Revision: https://phabricator.services.mozilla.com/D78710
2021-02-17 21:43:39 +00:00
Greg Tatum
71aed68206 Bug 1691751 - Add whitespace rules for the Fluent linter; r=flod,dminor,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D105369
2021-02-17 21:02:48 +00:00
Matthew Gregan
2220e66486 Bug 1693270 - Switch audioipc-2 to vendored code - remove old linting paths. a=lint-fix
CLOSED TREE

Build fix - remove obsolete media/audioipc path from linting exclusions.

Differential Revision: https://phabricator.services.mozilla.com/D105510
2021-02-17 20:40:57 +00:00
championshuttler
4e4eb0a952 Bug 1693140 - Fix the mermaid rendering issue, downroll mermaid version.r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D105351
2021-02-16 22:03:09 +00:00
Florian Quèze
2df72b6edb Bug 1691092 - When capturing a marker stack, stop when the PROFILER category is encountered, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D104248
2021-02-16 19:04:03 +00:00
Florian Quèze
7f356c706e Bug 1691092 - add PROFILER category to make profiler overhead very visible, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D104242
2021-02-16 19:04:02 +00:00
Renovate Bot
bcf70ef6e9 Bug 1690989 - Update dependency Sphinx to v3.5.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D105331
2021-02-16 15:58:37 +00:00
Renovate Bot
bd82b1c554 no bug - Update dependency pylint to v2.6.2 r=linter-reviewers,andi DONTBUILD
Depends on D105298

Differential Revision: https://phabricator.services.mozilla.com/D105299
2021-02-16 12:57:04 +00:00
Gerald Squelart
811250c823 Bug 1691589 - Extract profiler label APIs into separate headers - r=florian
New headers BaseProfilerLabels.h and ProfilerLabels.h now contain all label-related APIs.

These files were hg-copied from the main headers, to preserve history, and then non-label content was removed from the main headers.
The "RAII" macros were moved to these *ProfilerLabels.h headers, because that's the most-common header in which they're needed. Meta-bug 1681416 will probably move these again as needed.

Differential Revision: https://phabricator.services.mozilla.com/D104587
2021-02-16 04:44:19 +00:00
Gerald Squelart
9cc158ebf3 Bug 1691589 - Don't include main profiler headers from markers headers - r=florian
{Base,}ProfilerMarkers.h can now rely on {Base,}ProfilerState.h (and just one function forward declaration), so they don't need to include {Base,Gecko}Profiler.h anymore.
Thanks to that, {Base,Gecko}Profiler.h can now include {Base,}ProfilerMarkers.h at the top.

Also, BaseProfilingStack.h should not include BaseProfiler.h (include loop, can cause failures) not algorithm (not used).

***
roll up into 2nd patch

Differential Revision: https://phabricator.services.mozilla.com/D104969
2021-02-16 04:44:18 +00:00
Gerald Squelart
1e76096bd5 Bug 1691589 - Extract profiler state APIs into separate headers - r=florian
New headers BaseProfilerState.h and ProfilerState.h now contain most state-reading APIs.

These files were hg-copied from the main headers, to preserve history, and then chosen declarations were kept only in the relevant header.
This is needed in a following patch, where new headers *ProfilerLabels.h use `profiler_is_active()`.

Differential Revision: https://phabricator.services.mozilla.com/D104968
2021-02-16 04:44:17 +00:00
Julien Wajsberg
b8852c646d Bug 1688669 - Add a new test for network markers for requests going through a service worker r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D103805
2021-02-15 20:32:02 +00:00
Julien Wajsberg
1c8338dc6e Bug 1688669 - Add a new test for network markers r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102940
2021-02-15 20:32:01 +00:00
Julien Wajsberg
fb405c1684 Bug 1688669 - Add a helper to assert property values in objects r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102939
2021-02-15 20:32:01 +00:00
Julien Wajsberg
761a4721d8 Bug 1688669 - Clearly write which support files are needed for which profiler browser tests r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102938
2021-02-15 20:32:01 +00:00
Julien Wajsberg
c352a1f51a Bug 1688669 - Do not sample stacks in marker tests r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102937
2021-02-15 20:32:00 +00:00
Bogdan Tara
6852f28961 Backed out 5 changesets (bug 1688669) for mochitest failures on browser_test_marker_network_redirect.js CLOSED TREE
Backed out changeset fab4be0d51b3 (bug 1688669)
Backed out changeset 83f79ed54c65 (bug 1688669)
Backed out changeset 923ed7912d59 (bug 1688669)
Backed out changeset c435c2d7badc (bug 1688669)
Backed out changeset 374be66fa3db (bug 1688669)
2021-02-15 20:39:04 +02:00
Alexandre Poirot
6b61530950 Bug 1681698 - [devtools] Bootstrap the thread actor early, when the target actor instantiates r=jdescottes,nchevobbe,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D99356
2021-02-15 17:08:21 +00:00
Julien Wajsberg
4513a3aee1 Bug 1688669 - Add a new test for network markers for requests going through a service worker r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D103805
2021-02-15 16:01:16 +00:00
Julien Wajsberg
3b2478d420 Bug 1688669 - Add a new test for network markers r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102940
2021-02-15 16:01:15 +00:00
Julien Wajsberg
5d5e29f665 Bug 1688669 - Add a helper to assert property values in objects r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102939
2021-02-15 16:01:15 +00:00
Julien Wajsberg
fbe7a30fc7 Bug 1688669 - Clearly write which support files are needed for which profiler browser tests r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102938
2021-02-15 16:01:15 +00:00
Julien Wajsberg
129f3bec94 Bug 1688669 - Do not sample stacks in marker tests r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102937
2021-02-15 16:01:14 +00:00
Gregory Mierzwinski
4981c8073a Bug 1691558 - Disable perfdocs linting tests on windows and mac. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D105195
2021-02-15 15:12:26 +00:00
Daisuke Akatsuka
8a1a30387f Bug 1678618: Imlement a mechanism to fire page-removed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D101114
2021-02-15 08:04:14 +00:00
Csoregi Natalia
b32d4ca055 Backed out 4 changesets (bug 1678618) for node failures. CLOSED TREE
Backed out changeset e714440f6c0d (bug 1678618)
Backed out changeset ae83fda183dd (bug 1678618)
Backed out changeset bef0ea72ded8 (bug 1678618)
Backed out changeset ec96259a3f81 (bug 1678618)
2021-02-15 05:49:54 +02:00