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

23524 Коммитов

Автор SHA1 Сообщение Дата
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
Julian Descottes 8095799bcf Bug 1726002 - [devtools] Remove backward compatibility code about hasNativeConsoleAPI in dom-complete DOCUMENT_EVENT r=bomsy
Depends on D122760

Differential Revision: https://phabricator.services.mozilla.com/D122761
2021-08-23 07:59:08 +00:00
Julian Descottes 4e8867aa9c Bug 1726001 - [devtools] Remove backward compatibility code supportsDocumentEventWillNavigate r=bomsy
Depends on D122759

Differential Revision: https://phabricator.services.mozilla.com/D122760
2021-08-23 07:59:08 +00:00
Julian Descottes 8a5ce6a47c Bug 1725999 - [devtools] Remove backward compatibility code for trait supportsThreadActorIsAttached r=bomsy
Depends on D122758

Differential Revision: https://phabricator.services.mozilla.com/D122759
2021-08-23 07:59:08 +00:00
Julian Descottes 6d33922813 Bug 1725999 - [devtools] Remove backward compatibility code for ThreadConfigurationOptions r=bomsy
Depends on D122751

Differential Revision: https://phabricator.services.mozilla.com/D122758
2021-08-23 07:59:07 +00:00
Julian Descottes 4bd565b3e0 Bug 1725994 - [devtools] Remove backward compatibility code about javascriptEnabledHandledInParent r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D122751
2021-08-23 07:59:07 +00:00
Andreea Pavel 26554f995c Bug 1706633 - disable browser_storage_fission_local_storage.js on linux debug r=intermittent-reviewers,bhearsum DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D122977
2021-08-21 17:19:30 +00:00
Alexandre Poirot 71b0d2d8f7 Bug 1726248 - [devtools] Wait for source before reloading in browser_dbg-inline-cache.js. r=bomsy
Also use `refreshTab`, which better waits for full target switching.

Differential Revision: https://phabricator.services.mozilla.com/D123051
2021-08-21 09:44:04 +00:00
Butkovits Atila 39638fc638 Bug 1604751 - disable browser_browser_toolbox_fission_contentframe_inspector.js on Linux_64_QR_debug for frequent failures. r=intermittent-reviewers,bhearsum DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D122957
2021-08-20 20:36:01 +00:00
Julian Descottes 8e36afc865 Bug 1726463 - [devtools] Avoid error in NodeFront remoteFrame() if devtools.browsertoolbox.fission=false r=bomsy
As explained in the bug, the test test_inspector-dead-nodes.html exercises an edge case which is probably irrelevant now.
It aimed to check that you could call APIs on target scoped fronts during target reload.

Eg, get the children of a node, while you reload a page. However with SSTS, we now destroy the target, so all fronts are destroyed.
This test should probably be migrated to a commands test, and we should define what should be the behavior of such a command during reload.

However in its current shape the test is doing the following:
- get walkerFront1 and nodeFront1 for target1
- reload the page
- wait for the new target target2 and get walkerFront2
- call walkerFront2.children(nodeFront1)
- check there are no errors

This call doesn't really make sense however. walkerFront2 and nodeFront1 are fronts from different targets and nodeFront1 is already destroyed. Here it happens to crash when trying to use a getter on nodeFront1 and it would be nicer to not throw anyway, hence the proposed fix.

But the test should still be reviewed.

Differential Revision: https://phabricator.services.mozilla.com/D123138
2021-08-20 08:33:59 +00:00
Belén Albeza 71efd9dabe Bug 1706679 - [devtools] Fix local/session storage intermittents due to TableWidget error while sorting r=jdescottes
There is a race condition in which the TableWidget was trying to sort values that are no longer available in the table itself, if we change the contents of the table too quickly. This patch should also fix Bug 1696727

Differential Revision: https://phabricator.services.mozilla.com/D122970
2021-08-19 09:00:54 +00:00
Butkovits Atila fb5a705709 Bug 1689101 - disable browser_webconsole_network_messages_expand_before_updates.js on Linux_64_QR for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D122955
2021-08-18 13:52:37 +00:00
Sebastian Hengst 2fc5ede43e Bug 1726309 - don't skip tests on macOS 11 which actually pass. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D122938
2021-08-18 13:40:32 +00:00
Julian Descottes 28ed5009f5 Bug 1721692 - [devtools] Wait for presShell in browser_aboutdevtools tests r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D122726
2021-08-18 08:17:59 +00:00
Sonia Singla 0b1104fbc9 Bug 1681892 - Remove defer usage in devtools/client/shared/test/shared-head.js r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D100475
2021-08-18 08:01:24 +00:00
Mark Banner 9383f3e40e Bug 1725934 - Remove unnecessary babel plugin, and update node modules to the latest versions. r=Mardak
plugin-syntax-class-properties was supported by default in Babel 7.14.0.
This also adds top level await support in modules with the upgrade to Babel 7.15.0.

Differential Revision: https://phabricator.services.mozilla.com/D122865
2021-08-18 07:44:47 +00:00
Julian Descottes e30d2f70f2 Bug 1724207 - [devtools] Skip browser_enable_devtools_popup_new_user.js on test-verify r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D122855
2021-08-17 18:47:01 +00:00
Nicolas Chevobbe 51feb51bfb Bug 1702715 - [devtools] Enable server side target switching. r=bomsy,Honza,jdescottes,ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D122327
2021-08-17 18:15:15 +00:00
André Bargull d2bbf86876 Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai
In preparation for the next part, add missing includes to "js/" public headers.

Differential Revision: https://phabricator.services.mozilla.com/D122843
2021-08-17 15:45:39 +00:00
Kimberly Sereduck 2a98fab26a Bug 1725399: [perfdocs] Add link to DAMP tests in performance testing index page r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D122774
2021-08-17 13:33:45 +00:00
Julian Descottes ba6c47c851 Bug 1724186 - [devtools] Wait for presShell in all devtools test helper addTab r=Honza
Depends on D122696

Differential Revision: https://phabricator.services.mozilla.com/D122697
2021-08-17 11:18:47 +00:00
Julian Descottes a53ee5bf0b Bug 1724186 - [devtools] Rely on promise instead of message in sw push mochitests r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D122696
2021-08-17 11:18:47 +00:00
Markus Stange 0c9acde69c Bug 1563316 - Add SymbolicationService.querySymbolicationApi. r=canaltinova
With the existing getSymbolTable API, we always expose all symbols.
This new API will save memory and time when symbolicating profiles for local
Firefox builds, and it will scale to returning more information per address.

The profiler-get-symbols wasm module currently supports two "path" entry points:
 - /symbolicate/v5: This one has the same API as the /symbolicate/v5 entry
   point of the official Mozilla symbolication API, see the docs:
   https://tecken.readthedocs.io/en/latest/symbolication.html#symbolication-symbolicate-v5
 - /symbolicate/v6a2: This has the same request API as v5 but returns
   richer data: For each address it also returns file and line information,
   as well as the inline stack at that address.

In the future, we may want to add more supported "paths". Since this glue
code is really generic, doing so should be possible without touching most
of the glue code, only by updating the wasm bundle to a newer version of
profiler-get-symbols.

Differential Revision: https://phabricator.services.mozilla.com/D121932
2021-08-17 02:19:58 +00:00
Mohit Tarani 1f275c6961 Bug 1721825 - [devtools] Updated 'Learn more' link in the new Performance panel r=jdescottes,julienw.
Differential Revision: https://phabricator.services.mozilla.com/D122572
2021-08-16 17:41:24 +00:00
Alexandru Michis 15e0a58ca6 Backed out changeset 6e198353df13 (bug 172182) for having the wrong bug number. 2021-08-16 20:27:53 +03:00