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

21964 Коммитов

Автор SHA1 Сообщение Дата
Anna Yeddi e475b72826 Bug 1858041 - [devtools] Replace `fail-if` with `skip-if` for 2 tests that inconsistently failing/passing a11y-checks. r=devtools-reviewers,nchevobbe
The two tests affected are now inconsistently passing (in opt builds on all trees) and failing the Tier 2 a11y-checks: `devtools/client/webconsole/test/browser/browser_webconsole_longstring_getter.js` and `devtools/client/inspector/rules/test/browser_rules_edit-property-computed.js`, thus we are replacing the `fail-if` expectations with `skip-if` while the investigation is ongoing.

Related bugs: bug 1849028, bug 1867062, bug 1868497

Differential Revision: https://phabricator.services.mozilla.com/D195468
2023-12-13 16:31:23 +00:00
Alexandre Poirot 65901aa8ae Bug 1868571 - [devtools] Run two blank runs before starting memory tracking test. r=devtools-reviewers,nchevobbe
For some reason, the debugger has a different behavior the second time it opens
compared to its very first opening. So that distinct React elements are instantiated
and are then reported as leaks...

Differential Revision: https://phabricator.services.mozilla.com/D196191
2023-12-13 16:10:50 +00:00
Joel Maher 1ec9975fd9 Bug 1869590 - Batch 19 - convert remaining mochitest ini to toml. r=aryx,necko-reviewers,devtools-reviewers,dom-storage-reviewers,asuth,valentin,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D196203
2023-12-13 15:44:04 +00:00
Masayuki Nakano 4b28083b44 Bug 1868283 - part 2: Make `browser_tooltip.js` synthesize mouse events via the parent process r=daisuke,devtools-reviewers,nchevobbe
The popup manager is in the parent process and the parent process may store
the last mouse cursor position which is set by a preceding test, but the
test synthesizes mouse events only in the content process.  Therefore, the
parent may have unexpected state.

For solving these issues, this patch makes the test synthesize the events via
the parent process with enabling the async event dispatcher.

Then, new issue appeared. When I run this test in the verify mode, it
high-frequently failed with no mouse event logs.  Therefore, this patch makes
the content process waits first `mousemove` outside the target before starting
the test.

Differential Revision: https://phabricator.services.mozilla.com/D195637
2023-12-13 07:13:03 +00:00
Masayuki Nakano 555e587107 Bug 1868283 - part 1: Make `browser_tooltip.js` do not synthesize `mouseover` directly r=daisuke,devtools-reviewers,nchevobbe
`mouseover` should be fired by `EventStateManager` when it gets `mousemove`
events at that time, `PresShell` and `EventStateManager` update their member
to dispatch `mouseout` etc later correctly. So, the test should synthesize
`mousemove` instead.

Additionally, for making it easier to debug, this patch adds event logger
too. Number of logging events are just a few so that it's not problem from
the log size point of view.

Finally, this adds a clean up code to hide the tooltip which was shown by
this test.  That may help to make it stable when continuously run the test.

Differential Revision: https://phabricator.services.mozilla.com/D195636
2023-12-13 07:13:03 +00:00
Nicolas Chevobbe 2ae49bf41c Bug 1868263 - [devtools] Don't include circle/ellipse position when we don't have it in shape highlighter. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D196009
2023-12-12 12:37:12 +00:00
Norisz Fay 1dbc4dfcc1 Backed out changeset 148b695e58fc (bug 1868263) for causing dt failures on browser_rules_shapes-toggle_01.js CLOSED TREE 2023-12-11 17:01:41 +02:00
Nicolas Chevobbe 043008cf9f Bug 1868263 - [devtools] Don't include circle/ellipse position when we don't have it in shape highlighter. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D196009
2023-12-11 13:58:01 +00:00
Nicolas Chevobbe ad7667ad96 Bug 1844057 - [devtools] Add label to property inputs. r=devtools-reviewers,accessibility-frontend-reviewers,morgan,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195224
2023-12-11 12:46:38 +00:00
Nicolas Chevobbe a05e2d3ccf Bug 1844057 - [devtools] Add input labelling options to InplaceEditor. r=devtools-reviewers,ochameau.
Add 2 options, `inputAriaLabel` and `inputAriaLabelledBy`, that when set will
respectively set aria-label/aria-labelledby attribute on the input.

Differential Revision: https://phabricator.services.mozilla.com/D195223
2023-12-11 12:46:37 +00:00
Logan Rosen 141305b4e4 Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre
#ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D193007
2023-12-08 04:26:45 +00:00
Julien Wajsberg 1d92098e85 Bug 1868400 - Open the profiler tab just after the currently selected tab r=canaltinova,ochameau,devtools-reviewers,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D195565
2023-12-07 13:22:12 +00:00
Cristina Horotan ae0dba02b3 Backed out changeset 80cad169f5e1 (bug 1868400) for causing node failures at browser.js on a CLOSED TREE 2023-12-07 14:41:57 +02:00
Julien Wajsberg edcfd12ac7 Bug 1868400 - Open the profiler tab just after the currently selected tab r=canaltinova,ochameau,devtools-reviewers,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D195565
2023-12-07 12:20:59 +00:00
Nicolas Chevobbe 6356a8f52e Bug 1868725 - [devtools] Don't mark rules in pseudo-element section as unmatched. r=ochameau,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D195750
2023-12-07 10:56:40 +00:00
Nicolas Chevobbe 2139a0d4f1 Bug 1844061 - [devtools] Set aria attributes on Rules view toolbar buttons. r=devtools-reviewers,accessibility-frontend-reviewers,ochameau,morgan.
This handles the aria-pressed attribute on toggle pseudo class,
toggle class panel, light, dark and print mode simulation buttons
in the Rules view toolbar.
We remove the checked class that we were using to style the
button when they are pressed as we can use an attribute selector
with aria-pressed.
For the pseudo-class toggle and the class panel toggle, we also
add aria-controls attribute as they both control the display
of another element.
Tests are updated accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D194866
2023-12-06 19:42:39 +00:00
Cosmin Sabou b37d60b3d2 Bug 1767724 - Disable browser_webconsole_console_logging_workers_api.js on linux and apple_catalina debug for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D195519
2023-12-05 06:56:40 +00:00
Cosmin Sabou 829b029552 Bug 1767716 - Disable browser_dbg-windowless-service-workers-reload.js on linux and windows opt for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D195518
2023-12-05 06:50:36 +00:00
Iulian Moraru b7f06b0613 Backed out changeset 07de2cf13c82 (bug 1675646) for causing dt failures on browser_net_http3_request_details.js. CLOSED TREE 2023-12-05 02:18:39 +02:00
Hubert Boma Manilla c821fc74a6 Bug 1675646 - [devtools] Make sure the HTTP version is always in the request/response raw header outputs r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D194981
2023-12-04 22:53:37 +00:00
Nicolas Chevobbe dfc14b3a59 Bug 1867722 - [devtools] Add missing JSDoc description for `InplaceEditor` options `focusEditableFieldAfterApply` and `focusEditableFieldContainerSelector`. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195222
2023-12-04 19:27:58 +00:00
Nicolas Chevobbe 49128d24a4 Bug 1867722 - [devtools] Control InplaceEditor event listeners with an AbortController. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195221
2023-12-04 19:27:58 +00:00
Nicolas Chevobbe 1ecbf9c581 Bug 1867722 - [devtools] Turn InplaceEditor pseudo-private properties into proper js private properties. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195220
2023-12-04 19:27:57 +00:00
Nicolas Chevobbe 220b8da56e Bug 1867722 - [devtools] Turn InplaceEditor pseudo-private method into proper js private methods. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195216
2023-12-04 19:27:57 +00:00
Nicolas Chevobbe 9344ea6902 Bug 1867722 - [devtools] Turn InplaceEditor into a proper ES6 class. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195215
2023-12-04 19:27:56 +00:00
Nazım Can Altınova 6f156b8ec4 Bug 1867599 - Add profiler logging method to JS tracer r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D190576
2023-12-04 13:57:23 +00:00
aaoblivion 7bbf4c7d46 Bug 1865895 - Changed the description of CPU utilization descriptor - r=profiler-reviewers,julienw
Differential Revision: https://phabricator.services.mozilla.com/D195289
2023-12-04 09:32:31 +00:00
Alexandre Poirot c19e89ee06 Bug 1867603 - [devtools] Introduce a tracer command to toggle tracing without the debugger. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D195125
2023-12-02 08:53:38 +00:00
Alexandre Poirot 3a9ec9747c Bug 1616524 - [devtools] Allow console commands override from the page in eager evaluations. r=devtools-reviewers,nchevobbe
It was wrong to both:
* reuse disableBreaks options to add the useInnerBindings as it would prevent overrides for eager evaluation,
* use disableBreaks for eager evaluation.

It sounds safer to let the server control all the server side details and only pass eager attribute
when evaluating js via the console actor.

Differential Revision: https://phabricator.services.mozilla.com/D195097
2023-12-02 08:07:15 +00:00
Alexandre Poirot b1595e7177 Bug 1616524 - [devtools] Allow side effect free console commands to be called in eager evaluation. r=devtools-reviewers,nchevobbe
For now, only console command values like $0, $_ and $x were allowed in eager evaluation,
only by luck as these commands were evaluated and cached *before* Frame.evalWithBinding and Object.executeInGlobalWithBindings
started running the console input string.

But methods were cancelled by onNativeCall. This new isSideEffectFree flag allows to identify these methods.

Differential Revision: https://phabricator.services.mozilla.com/D195022
2023-12-02 08:07:15 +00:00
Nicolas Chevobbe 98515a4c68 Bug 1867326 - [devtools] Add beforetoggle and toggle events in event listeners breakpoint panel. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195007
2023-12-01 12:55:25 +00:00
Nicolas Chevobbe 7bfc5cafcc Bug 1867321 - [devtools] Add link capability to popovertarget attribute. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195005
2023-12-01 10:39:26 +00:00
Alexandre Poirot 4674a9aa02 Bug 1867236 - [devtools] Test that DevTools do not force spawning service workers. r=devtools-reviewers,nchevobbe
I robustify a bit the debugger test, but ended up adding coverage in the target comment test.

Differential Revision: https://phabricator.services.mozilla.com/D195019
2023-11-30 20:10:37 +00:00
Nicolas Chevobbe bccaf5ec3b Bug 1866986 - [devtools] Fix accessibility of Rules view expandable containers. r=accessibility-frontend-reviewers,devtools-reviewers,ayeddi,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D194880
2023-11-30 16:25:50 +00:00
Nicolas Chevobbe e576be0e86 Bug 1866986 - [devtools] Remove _getRuleViewHeaderClassName function. r=devtools-reviewers,ochameau.
The class does not provide much value, we can remove it and
use a constant instead for the main case, and add the specific
expandable class in the only place we need it.

Differential Revision: https://phabricator.services.mozilla.com/D194879
2023-11-30 16:25:49 +00:00
Nicolas Chevobbe 5588c122ee Bug 1866740 - [devtools] Include classes from nested rules in Rules view class autocomplete. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D195084
2023-11-30 16:25:24 +00:00
Mark Banner 3d666f971f Bug 1866641 - Rename workers to use the .worker.(m)js pattern for ESLint (devtools/). r=devtools-reviewers,profiler-reviewers,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D194698
2023-11-30 11:42:17 +00:00
Daisuke Akatsuka 7e9658ab01 Bug 1867400: Remove devtools.inspector.compatibility.enabled pref r=settings-reviewers,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D195051
2023-11-30 10:54:57 +00:00
Iulian Moraru 96b88024a4 Backed out 3 changesets (bug 1866641) for causing talos damp failures on browser-toolbox.js. CLOSED TREE
Backed out changeset 7cab7eb61b23 (bug 1866641)
Backed out changeset dbe3fabc6e89 (bug 1866641)
Backed out changeset 1dfb7cfdc26e (bug 1866641)
2023-11-29 21:00:42 +02:00
Mark Banner 0d17eec4d9 Bug 1866641 - Rename workers to use the .worker.(m)js pattern for ESLint (devtools/). r=devtools-reviewers,profiler-reviewers,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D194698
2023-11-29 11:49:18 +00:00
Mark Banner 4ecff8fb02 Bug 1866720 - Clean up more imports to import ES modules directly. r=arai,extension-reviewers,devtools-reviewers,sync-reviewers,sessionstore-reviewers,dao,robwu
Differential Revision: https://phabricator.services.mozilla.com/D194723
2023-11-29 10:00:27 +00:00
Anna Yeddi e07d89b90c Bug 1802390 - [devtools] Temporarily skip-if a11y_checks for inconsistent browser_jsterm_autocomplete_mapped_variables.js. r=nchevobbe,devtools-reviewers
It appears after the D194403 landed and added an expectations that this test would fail a11y-checks, that the results of the a11y-checks for this test file are not consistent between opt and build in CI, thus we have to skip this test to resolve the perma failure until the issue is investigated and larger accessibility improvement work is done on Dev Tools under bug 1849028.

Differential Revision: https://phabricator.services.mozilla.com/D194889
2023-11-28 16:28:54 +00:00
Nicolas Chevobbe e68f0eb925 Bug 1866401 - [devtools] Remove 120 backward compatibility code. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D194588
2023-11-28 14:14:03 +00:00
Emilio Cobos Álvarez bc41495782 Bug 1866764 - Remove profiler's hack around bug 1866503. r=Gijs,profiler-reviewers,julienw
Differential Revision: https://phabricator.services.mozilla.com/D194756
2023-11-28 14:11:20 +00:00
Tooru Fujisawa f765b41d86 Bug 1564553 - Part 1: Do not put absolute path into GeneratedFile output from CompiledModules. r=devtools-reviewers,ochameau
In order to put the path into generated-sources.json file, use the
relative path from the object directory.

Differential Revision: https://phabricator.services.mozilla.com/D194172
2023-11-27 21:11:17 +00:00
Nicolas Chevobbe 8e9ebe7e76 Bug 1840987 - [devtools] Ignore non-inheriting custom properties when computing CSS variable value. r=devtools-reviewers,ochameau.
Depends on D194630

Differential Revision: https://phabricator.services.mozilla.com/D194719
2023-11-27 18:39:11 +00:00
Nicolas Chevobbe a7e4d18af7 Bug 1840987 - [devtools] Don't assume CSS variables always inherit. r=devtools-reviewers,ochameau.
Remove the specific callsites where we were making such assumption, and update
the calls to `InspectorUtils.isInheritedProperty` to pass a document, since it's
now required to check if custom properties inherit.

Differential Revision: https://phabricator.services.mozilla.com/D194630
2023-11-27 18:39:11 +00:00
Nicolas Chevobbe e77161a317 Bug 1844088 - [devtools] Add title on Tree toggle button. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D194771
2023-11-27 18:38:23 +00:00
Anna Yeddi 3b540a186e Bug 1802390 - [devtools] Temporarily fail-if a11y_checks for browser_jsterm_autocomplete_mapped_variables.js r=devtools-reviewers,nchevobbe
Some Tier 2 accessibility checks for click events fired on controls that should be keyboard accessible were failing for this component. They were captured by testing/mochitest/tests/SimpleTest/AccessibilityUtils.js via bug 1692110. These failing tests were temporarily fail-if'ed in the directory's browser.ini file. After the ongoing accessibility improvements work is completed, we'll need to re-run a11y-checks, investigate new failures, and for confirmed bugs individual defects should be filed.

When the individual test failures are resolved and the individual bugs are closed, remove the fail-if condition for a11y_checks from the appropriate files/sections to ensure better test coverage and to avoid regressions in a11y of these components.

Differential Revision: https://phabricator.services.mozilla.com/D194403
2023-11-27 15:22:16 +00:00
Nicolas Chevobbe 7da9767029 Bug 1843332 - [devtools] Fix search/filter input placeholder color contrast. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D194725
2023-11-27 14:40:48 +00:00