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

23548 Коммитов

Автор SHA1 Сообщение Дата
Cosmin Sabou 31551df91a Bug 1698179 - Disable browser_markers-cycle-collection.js on linux webrender debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124479
2021-09-03 18:07:58 +00:00
Emilio Cobos Álvarez 70f53c85d4 Bug 856337 - Implement image-rendering: smooth and image-rendering: pixelated. r=jrmuizel,dholbert,longsonr
Also, more directly go from StyleImageRendering to wr::ImageRendering.

 * image-rendering: smooth the non-deprecated version of
   OptimizeQuality, which maps to SamplingFilter::LINEAR /
   wr::ImageRendering::Auto (which uses gl::LINEAR).

 * image-rendering: pixelated maps to wr::ImageRendering::Pixelated /
   SamplingFilter::POINT which is the same crisp-edges does.

Note that this uncovers that we were mapping image-rendering:
crisp-edges to wr::ImageRendering::Pixelated.

I'm going to preserve behavior on this patch but we should consider
switching that to map to wr::ImageRendering::CrispEdges on a
follow-up (filed bug 1728831 for this).

Differential Revision: https://phabricator.services.mozilla.com/D124378
2021-09-03 08:56:43 +00:00
Claudia cb89693561 Bug 1358383 - [devtools] Adds a command history list. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D122264
2021-09-02 15:22:19 +00:00
Julian Descottes a39a68a2c1 Bug 1728092 - [devtools] Use shared browserReload helper in most tests using browser.reload r=bomsy
Depends on D124188

A few tests outside of the netmonitor also used tab.linkedBrowser.reload, let's migrate them at the same time.

Differential Revision: https://phabricator.services.mozilla.com/D124190
2021-09-02 11:38:55 +00:00
Julian Descottes 17c3cf6da0 Bug 1728092 - [devtools] Wait properly for toolbox to completely load after a reload in netmonitor tests r=bomsy
Depends on D124169

Differential Revision: https://phabricator.services.mozilla.com/D124188
2021-09-02 11:38:54 +00:00
Alexandre Poirot 4dac6b24e5 Bug 1727571 - [devtools] Disable devtools testing flag in allocation tests. r=jdescottes
This is important to disable flags.testing for many reasons:
* it helps using the production code that is being used by end users. So we are closer to a real usage of our tools.
* it prevents enabling debug code which are leaking or are explicitely doing stuff that hit performance and might allocate more objects.

We especially want to disable redux's store history feature which record all the actions,
and leads to leak tons of objects.

Differential Revision: https://phabricator.services.mozilla.com/D123832
2021-09-02 11:36:04 +00:00
Alexandre Poirot dff37ff723 Bug 1727571 - [devtools] Prevent the allocation tracker to record its own modules. r=jdescottes
It was tracking the special sandbox we spawn for builtin-modules.js
as well as its internal sandbox used to fetch platform globals.

Differential Revision: https://phabricator.services.mozilla.com/D124174
2021-09-02 11:36:03 +00:00
Alexandre Poirot 2d17c03dea Bug 1727571 - [devtools] Record allocations for toolbox opening+closing and page reloads. r=jdescottes
Tweaked the recorded data a bit in order to record many values:
* objects being leaked with a known allocation site/original stack frame
* objects being leaked without any known allocation site
* memory being used in parent/content processes

Also build a framework to ease writing more allocation tests.
And document everything around this.

Differential Revision: https://phabricator.services.mozilla.com/D123658
2021-09-02 11:36:03 +00:00
Julian Descottes dda97ab361 Bug 1688067 - [devtools] Add missing await before navigation in browser_net_charts-06.js r=ochameau
Depends on D124168

Looked for other spots missing await before navigateTo, only found this one, let's fix it.

Differential Revision: https://phabricator.services.mozilla.com/D124169
2021-09-01 19:24:25 +00:00
Julian Descottes df5701fd64 Bug 1688067 - [devtools] Repurpose refreshTab as reloadBrowser and use in browser_toolbox_error_count_reset_on_navigation.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D124168
2021-09-01 19:24:24 +00:00
Iulian Moraru b5964cfdbf Backed out 3 changesets (bug 1727571) for causing devtools failures on browser_allocation_tracker.js. CLOSED TREE
Backed out changeset 2064d5f7e669 (bug 1727571)
Backed out changeset c9b8b52fa85b (bug 1727571)
Backed out changeset b1098bda4a50 (bug 1727571)
2021-09-01 20:19:11 +03:00
Belén Albeza 6f33f27701 Bug 1715579 - [devtools] Add architecture documentation for the storage panel r=jdescottes
This documents the new architecture of the storage panel.

Differential Revision: https://phabricator.services.mozilla.com/D117334
2021-09-01 16:52:08 +00:00
Alexandre Poirot 68542c22a0 Bug 1727571 - [devtools] Disable devtools testing flag in allocation tests. r=jdescottes
This is important to disable flags.testing for many reasons:
* it helps using the production code that is being used by end users. So we are closer to a real usage of our tools.
* it prevents enabling debug code which are leaking or are explicitely doing stuff that hit performance and might allocate more objects.

We especially want to disable redux's store history feature which record all the actions,
and leads to leak tons of objects.

Differential Revision: https://phabricator.services.mozilla.com/D123832
2021-09-01 16:18:29 +00:00
Alexandre Poirot c644e2c255 Bug 1727571 - [devtools] Prevent the allocation tracker to record its own modules. r=jdescottes
It was tracking the special sandbox we spawn for builtin-modules.js
as well as its internal sandbox used to fetch platform globals.

Differential Revision: https://phabricator.services.mozilla.com/D124174
2021-09-01 16:18:28 +00:00
Alexandre Poirot 8127145d8f Bug 1727571 - [devtools] Record allocations for toolbox opening+closing and page reloads. r=jdescottes
Tweaked the recorded data a bit in order to record many values:
* objects being leaked with a known allocation site/original stack frame
* objects being leaked without any known allocation site
* memory being used in parent/content processes

Also build a framework to ease writing more allocation tests.
And document everything around this.

Differential Revision: https://phabricator.services.mozilla.com/D123658
2021-09-01 16:18:28 +00:00
Alexandre Poirot e7b1b6f486 Bug 1726238 - [devtools] Fix browser_toolbox_backward_forward_navigation.js intermittent failure. r=bomsy
Inspector fronts initialization is still pending while we navigate away to another top target.
Leading to various possible exception in protocol.js.
I'm adding a set of new explicit exception in order to help debugging all these cases.

Differential Revision: https://phabricator.services.mozilla.com/D123441
2021-09-01 08:30:23 +00:00
Alexandre Poirot 3a3fca83a3 Bug 1727177 - [devtools] Fix devtools.netmonitor.saveRequestAndResponseBodies preference with new fission codepath. r=bomsy,devtools-backward-compat-reviewers
We weren't applying the preference to the parent process NetworkEventWatcher
because we were only trying to update this via the WebConsole actor.

In addition, this was introducing intermittent failures in browser_toolbox_frames_list.js
because of the pending request made to the console actor.
Doing only one unique request to NetworkEventParent helps reducing the number of requests and intermittents.

Differential Revision: https://phabricator.services.mozilla.com/D123379
2021-09-01 08:30:22 +00:00
Julian Descottes b339da2d6d Bug 1721938 - [devtools] wait before clicking on angle swatch in browser_rules_cycle-angle.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D123955
2021-08-31 21:59:56 +00:00
Csoregi Natalia 1814a27296 Backed out changeset e54cafe891a7 (bug 1721938) for causing failures on browser_rules_cycle-angle.js. CLOSED TREE 2021-08-31 19:40:05 +03:00
Markus Stange 4d17847532 Bug 1683758 - For macOS system libraries, fall back to symbolicating from the dyld shared cache. r=canaltinova
This lets us obtain symbols for macOS system libraries on macOS 11+
even if these symbols are not present on the Mozilla symbol server.

Some background for this is described in https://github.com/gimli-rs/object/issues/268 .

This patch makes use of the syntax `dyldcache:<dyldcachepath>:<librarypath>`.
There is some code in the profiler-get-symbols wasm integration which parses this syntax
and turns it into a `CandidatePathInfo::InDyldCache` enum value.
And profiler-get-symbols itself will then check the dyld shared cache for the requested
library, and parse it from there.

You can run the following pieces of code in the Firefox error console to
test whether this patch is working, on macOS 11 or above:

```
var { createLocalSymbolicationService } = ChromeUtils.import("resource://devtools/client/performance-new/symbolication.jsm.js");
var service = createLocalSymbolicationService(Services.profiler.sharedLibraries, []);
var appkit = Services.profiler.sharedLibraries.find(l => l.name == "AppKit");
var [addrs, index, buffer] = await service.getSymbolTable(appkit.debugName, appkit.breakpadId);
addrs.length
```

```
var { createLocalSymbolicationService } = ChromeUtils.import("resource://devtools/client/performance-new/symbolication.jsm.js");
var service = createLocalSymbolicationService(Services.profiler.sharedLibraries, []);
var appkit = Services.profiler.sharedLibraries.find(l => l.name == "AppKit");
JSON.parse(await service.querySymbolicationApi("/symbolicate/v5", JSON.stringify({memoryMap:[[appkit.name,appkit.breakpadId]],stacks:[[[0,0x12f00d]]]}))).results[0].stacks[0][0]
```

Before this patch, getSymbolTable would throw an error (file not found), and
querySymbolicationApi would return an object without a function name.
With this patch, getSymbolTable finds all the symbols in AppKit, and
querySymbolicationApi returns the correct function name.

Depends on D123815

Differential Revision: https://phabricator.services.mozilla.com/D123816
2021-08-31 14:48:07 +00:00
Markus Stange 4459c7af92 Bug 1683758 - Update profiler-get-symbols to 007c254385 . r=canaltinova
This update adds support for macOS 12 compatible dyld shared cache parsing.
It also improves symbolication performance for large PDB files, unrelated to this bug.

Differential Revision: https://phabricator.services.mozilla.com/D123815
2021-08-31 14:48:06 +00:00
Julian Descottes e5ccb2eb0e Bug 1721938 - [devtools] wait before clicking on angle swatch in browser_rules_cycle-angle.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D123955
2021-08-31 14:38:00 +00:00
Julian Descottes c43a9450b1 Bug 1728138 - [devtools] Reuse navigateTo in RDM test helper load r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D124029
2021-08-31 12:24:31 +00:00
Daisuke Akatsuka b8cfdf056d Bug 1706896: Split test for computed timing path on summary graph into 2. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D124004
2021-08-31 08:28:34 +00:00
Julian Descottes 537eea5819 Bug 1727506 - [devtools] Make DevTools shared-head navigateTo reusable for RDM r=ochameau
depends on D123326

This changeset introduces a single `wait` function which should work for all DevTools setups.

For the provided browser, it will check if there is a Toolbox or a RDM UI opened. Then it will start watching for Toolbox-specific or RDM-specific navigation events (incl panels etc...), as well as for the reload of the corresponding Commands instances (toolbox and RDM UI might each have one). It also extracts the "target switching" check to a separate "watch" helper so that it doesn't get mixed with the rest of the logic.

Differential Revision: https://phabricator.services.mozilla.com/D123604
2021-08-30 15:58:52 +00:00
Julian Descottes 2dee4a110f Bug 1671171 - [devtools] Improve vertical layout display for new performance panel r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D123724
2021-08-30 15:23:37 +00:00
Julian Descottes 9582df5787 Bug 1503199 - [devtools] Increase min width for side panels in Inspector and Accessibility panels r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D123927
2021-08-30 15:14:05 +00:00
Julien Wajsberg b896216da1 Bug 1727719 - [devtools performance] Use a more future-proof approach to set values in React-controlled inputs r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D123748
2021-08-30 14:43:40 +00:00
Paul Zuehlcke 86316039cb Bug 1722600 - [devtools] Make browser_storage_dfpi test more reliable by polling to wait for devtools storage entries to appear. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D121980
2021-08-30 12:49:04 +00:00
Hubert Boma Manilla 53ec5a1615 Bug 1726461 - [devtools] Fix intermittent for <random test> failures with error type connect r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D123913
2021-08-30 12:07:36 +00:00
Hubert Boma Manilla a1ca9092e3 Bug 1726237 - [devtools] Fix intermittent failures with error type getGrids failed r=jdescottes
This also removes `ignoreGetGridsPromiseRejections` which was used to ignore
the rejections from the promise failure.

Differential Revision: https://phabricator.services.mozilla.com/D123054
2021-08-26 18:32:12 +00:00
Matt Woodrow b8eef01e83 Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 20:49:18 +00:00
Alexandre Poirot 3b693fede5 Bug 1727323 - [devtools] Enable bfcache in parent in tests that have been fixed thanks to server targets. r=bomsy
All these tests most likely have been fixed with the enabling of server targets.
Because bfcache in parent was introducing more cross process navigations,
being initiated from the server, having the support of server targets was uterly
important to support bfcacheInParent.

Differential Revision: https://phabricator.services.mozilla.com/D123448
2021-08-25 17:16:27 +00:00
Alexandre Poirot ebf34c96a5 Bug 1727325 - [devtools] Enable all DevTools tests which now pass on Fission. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D123452
2021-08-25 15:48:34 +00:00
Alexandre Poirot 27c0b44edb Bug 1724002 - [devtools] Fix browser_toolbox_frames_list.js intermittent. r=bomsy
We were having some race condition between calls using debounce and the other not using it.
The check verify if the state changed prevented from updating the component correctly.

So better always debounce and avoid doing any state check.

Differential Revision: https://phabricator.services.mozilla.com/D123362
2021-08-25 14:30:05 +00:00
Belén Albeza 742774f709 Bug 1706439 - [devtools] Set a time limit for calling win.clear after each test r=jdescottes
The indexedDB fission test was sometimes timing out in the registered clean up function, when it was trying to remove the DB with a dom api call. This patch bails out this clearing if it takes too long. Try push https://treeherder.mozilla.org/jobs?repo=try&revision=403faa4e321d613fe5b056006c31eacda62f878a

Differential Revision: https://phabricator.services.mozilla.com/D123494
2021-08-25 11:17:36 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Julian Descottes 077a35b79f Bug 1726240 - [devtools] Wait for target switching in RDM navigation helpers r=Honza
Wait for target available to be fully processed by responsive UI in tests

Differential Revision: https://phabricator.services.mozilla.com/D123326
2021-08-25 07:11:58 +00:00
criss bccf559d4b Backed out changeset 8868fe82dafd (bug 1708403) for causing failures on test_drawSnapshot_fixed.html. CLOSED TREE 2021-08-25 04:08:24 +03:00
Matt Woodrow bb02f9029f Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 00:21:01 +00:00
Markus Stange 510742ae47 Bug 1726471 - Use PathUtils.join in the symbolication worker. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D123021
2021-08-24 20:32:50 +00:00
Tom Ritter f492e82a10 Bug 1723204: Update tests to prevent crashes r=ckerschb,jdescottes,robwu
This is most commonly as a result of CU.evalInSandbox which
allows an arbitrary filename but when omitted will default
to the filename of the test, which is a filesystem path
and thus is disallowed.

Differential Revision: https://phabricator.services.mozilla.com/D122246
2021-08-24 14:57:44 +00:00
Belén Albeza 2e76ecbce9 Bug 1706633 - [devtools] Re-enable fission local-storage test r=jdescottes
This should have been fixed by 1706679

Differential Revision: https://phabricator.services.mozilla.com/D123437
2021-08-24 14:24:25 +00:00
Brindusan Cristian dfcfe1d342 Backed out 4 changesets (bug 1724220, bug 1723204) for causing cpp non-unified bustages in TestSmartCrashTrimmer.cpp.
CLOSED TREE

Backed out changeset 0dab9553a2a8 (bug 1724220)
Backed out changeset df236c937895 (bug 1723204)
Backed out changeset 4a20d1832cf4 (bug 1723204)
Backed out changeset d7e4042af76c (bug 1723204)
2021-08-24 15:33:32 +03:00
Julian Descottes 52e4ab408b Bug 1683611 - [devtools] Wait for inspector reloaded event in browser_inspector_remove-iframe-during-load.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D123325
2021-08-24 12:22:57 +00:00
Tom Ritter 2dd9a03c60 Bug 1723204: Update tests to prevent crashes r=ckerschb,jdescottes,robwu
This is most commonly as a result of CU.evalInSandbox which
allows an arbitrary filename but when omitted will default
to the filename of the test, which is a filesystem path
and thus is disallowed.

Differential Revision: https://phabricator.services.mozilla.com/D122246
2021-08-24 11:20:44 +00:00
Hubert Boma Manilla afe0e41ce6 Bug 1726310 - [devtools] Fix css to show the headers panel details in the webconsole r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D123417
2021-08-24 09:31:01 +00:00
Emilio Cobos Álvarez 288e33c678 Bug 1726936 - Use transition: initial in accessibility.js. r=jdescottes
The sheet in here is added as an user agent sheet so it matches also
anonymous content.

It can cause some invariants we rely on for scrollbar caching to break.
In particular, we assert that the style we cache and the style we get
match, but this rule causes it to not match.

Make sure to reset transition to the initial value so that scrollbar
styles don't change. This shouldn't change behavior since
transition-duration is zero anyways, but should avoid the assertion
firing.

An alternative would be to use something like
`:not(:-moz-native-anonymous)` or such instead.

Differential Revision: https://phabricator.services.mozilla.com/D123319
2021-08-23 17:31:13 +00:00
Hubert Boma Manilla 7be75ad351 Bug 1630525 - [devtools] Merge all the BrowsingContext traits to the form() r=ochameau
The traits set on attach have been a source of intermittent failures.
See Bug 1726220

Differential Revision: https://phabricator.services.mozilla.com/D123293
2021-08-23 11:10:13 +00:00
Julian Descottes ac9a92042c Bug 1726004 - [devtools] Remove backward compatibility code for descriptor reload r=bomsy,devtools-backward-compat-reviewers
Depends on D122761

Differential Revision: https://phabricator.services.mozilla.com/D122762
2021-08-23 07:59:09 +00:00