Commit Graph
714 Commits
Author SHA1 Message Date
Nicolas Chevobbe 6abadfd8c8 Bug 2044904 - [devtools] Expose heading level in accessibility highlighter. r=bomsy,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D304685
2026-06-04 10:28:32 +00:00
Chris H-C d89527a234 Bug 2039650 - Remove Legacy Telemetry devtools probes r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D300855
2026-05-28 16:32:18 +00:00
Alexandre Poirot 9c63514236 Bug 1622857 - [devtools] Log RDP packets via MOZ_LOG. r=devtools-reviewers,jdescottes,nchevobbe
RDP can be easily traced via stdout by running:
$ MOZ_LOG="devtools_rdp:3" ./mach run

Differential Revision: https://phabricator.services.mozilla.com/D298483
2026-05-18 09:12:21 +00:00
Hubert B Manilla 2336e65aae Bug 2039413 - [devtools] Update MDN compat data r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D300466
2026-05-15 12:05:04 +00:00
Atila Butkovits 3991538287 Revert "Bug 2039413 - [devtools] Update MDN compat data r=devtools-reviewers,ochameau" for causing failures at test_mdn-compatibility.js.
This reverts commit 4af0d9d48d.
2026-05-15 11:39:16 +00:00
Hubert B Manilla 4af0d9d48d Bug 2039413 - [devtools] Update MDN compat data r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D300466
2026-05-15 10:52:16 +00:00
Sebastian Zartner cf10bb950a Bug 1455294 - Added option to toggle the display of comment nodes in the Inspector. r=devtools-reviewers,fluent-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D186612
2026-05-14 04:48:28 +00:00
Sylvestre Ledru 62b1ca8d05 Bug 2024589 - adjust the code: searchfox.org/mozilla-central is now redirecting to searchfox.org/firefox-main/ r=asuth,perftest-reviewers,necko-reviewers,jgraham,webcompat-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,taskgraph-reviewers,releng-reviewers,desktop-theme-reviewers,win-reviewers,translations-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,profiles-reviewers,dom-worker-reviewers,geckodriver-reviewers,ai-platform-reviewers,Sasha,niklas,manuel,janerik,bhearsum,valentin,twisniewski,nchevobbe,emcminn,webrtc-reviewers,mjf,handyman,mconley,mossop,ahal,sparky,nrishel,robwu,ohall,dimi,hjones
Differential Revision: https://phabricator.services.mozilla.com/D288623
2026-04-30 13:28:49 +00:00
Julian Descottes 2b685b77ba Bug 2033953 - [devtools] Remove unused test file browser_canvasframe_helper_04.js r=devtools-reviewers,nchevobbe
Stepping through the test, the content is not re-inserted on reload.
I think a perma failing test checking a non-existent feature should be removed, it's just debt at this point.

Differential Revision: https://phabricator.services.mozilla.com/D297052
2026-04-28 16:57:46 +00:00
Emilio Cobos Álvarez 34b249c82e Bug 2031757 - Rejigger text input / textarea rendering to make field-sizing easier. r=layout-reviewers,devtools-reviewers,fxview-reviewers,firefox-style-system-reviewers,ochameau,jsudiaman,dshin
This also should fix bug 1881942 (placeholder is now scrollable
alongside the textarea).

This makes nsTextControlFrame a subclass of ScrollContainerFrame (with
an inner block), and tweaks layout to match.

It lays out the inner content using block layout and align-content,
rather than bespoke reflow primitives. This makes field-sizing trivial
to implement on top.

This is a bit scary, but simpler in most ways. In particular, it needs
to teach ScrollContainerFrame of the button, because that goes outside
the scrollable area, like scrollbars. That said it needs less
special-cases added than those removed, and it should also be faster
(needs less frames to layout an input with placeholder etc), and match
other browsers better.

The general set-up is:

  <text-control-editing-root/>
  <placeholder/>
  <autofill-preview/>

text-control-editing-root is always inline-block and always displayed
(since it's what grabs the focus / shows the caret). If the
autofill-preview or placeholder are displayed, the editing-root is
zero-width and clipped (note that for placeholder that's guaranteed
because placeholder is only shown with an empty value, but
autofill-preview needs it).

placeholder and autofill-preview are hidden via `display` rather than
visibility. This doesn't make a difference with this patch but it
matters for bug 1977176.

Caret painting needs an extra hop to paint atop the placeholder (no
observable behavior change, but worth calling out).

There is one subtle behavior change, which is that single-line inputs
never report scrollable overflow in the block axis. This matches other
browsers (see the tweak in nsBlockFrame's overflow computation) and is
needed to avoid regressing scrollable-overflow-padding-input.html.

The changes in window_composition_text_querycontent.xhtml are needed
because before this patch, the height of the control editing root was
always the height of the whole textarea. The characters you're composing
might legitimately be taller than the line. Bump the line height so that
that doesn't happen in this test.

Differential Revision: https://phabricator.services.mozilla.com/D293666
2026-04-16 17:09:40 +00:00
Serban Stanca 5d4176345b Revert "Bug 2031757 - Rejigger text input / textarea rendering to make field-sizing easier. r=layout-reviewers,devtools-reviewers,fxview-reviewers,firefox-style-system-reviewers,ochameau,jsudiaman,dshin" for causing several failures.
This reverts commit 81ef425716.
2026-04-16 09:31:32 +00:00
Emilio Cobos Álvarez 81ef425716 Bug 2031757 - Rejigger text input / textarea rendering to make field-sizing easier. r=layout-reviewers,devtools-reviewers,fxview-reviewers,firefox-style-system-reviewers,ochameau,jsudiaman,dshin
This also should fix bug 1881942 (placeholder is now scrollable
alongside the textarea).

This makes nsTextControlFrame a subclass of ScrollContainerFrame (with
an inner block), and tweaks layout to match.

It lays out the inner content using block layout and align-content,
rather than bespoke reflow primitives. This makes field-sizing trivial
to implement on top.

This is a bit scary, but simpler in most ways. In particular, it needs
to teach ScrollContainerFrame of the button, because that goes outside
the scrollable area, like scrollbars. That said it needs less
special-cases added than those removed, and it should also be faster
(needs less frames to layout an input with placeholder etc), and match
other browsers better.

The general set-up is:

  <text-control-editing-root/>
  <placeholder/>
  <autofill-preview/>

text-control-editing-root is always inline-block and always displayed
(since it's what grabs the focus / shows the caret). If the
autofill-preview or placeholder are displayed, the editing-root is
zero-width and clipped (note that for placeholder that's guaranteed
because placeholder is only shown with an empty value, but
autofill-preview needs it).

placeholder and autofill-preview are hidden via `display` rather than
visibility. This doesn't make a difference with this patch but it
matters for bug 1977176.

Caret painting needs an extra hop to paint atop the placeholder (no
observable behavior change, but worth calling out).

There is one subtle behavior change, which is that single-line inputs
never report scrollable overflow in the block axis. This matches other
browsers (see the tweak in nsBlockFrame's overflow computation) and is
needed to avoid regressing scrollable-overflow-padding-input.html.

The changes in window_composition_text_querycontent.xhtml are needed
because before this patch, the height of the control editing root was
always the height of the whole textarea. The characters you're composing
might legitimately be taller than the line. Bump the line height so that
that doesn't happen in this test.

Differential Revision: https://phabricator.services.mozilla.com/D293666
2026-04-16 08:10:39 +00:00
agoloman dfead40619 Revert "Bug 2031757 - Rejigger text input / textarea rendering to make field-sizing easier. r=layout-reviewers,devtools-reviewers,fxview-reviewers,firefox-style-system-reviewers,ochameau,jsudiaman,dshin" for causing crashtest assertions @399262.html.
This reverts commit 51d51c3b33.
2026-04-16 00:28:13 +00:00
Emilio Cobos Álvarez 51d51c3b33 Bug 2031757 - Rejigger text input / textarea rendering to make field-sizing easier. r=layout-reviewers,devtools-reviewers,fxview-reviewers,firefox-style-system-reviewers,ochameau,jsudiaman,dshin
This also should fix bug 1881942 (placeholder is now scrollable
alongside the textarea).

This makes nsTextControlFrame a subclass of ScrollContainerFrame (with
an inner block), and tweaks layout to match.

It lays out the inner content using block layout and align-content,
rather than bespoke reflow primitives. This makes field-sizing trivial
to implement on top.

This is a bit scary, but simpler in most ways. In particular, it needs
to teach ScrollContainerFrame of the button, because that goes outside
the scrollable area, like scrollbars. That said it needs less
special-cases added than those removed, and it should also be faster
(needs less frames to layout an input with placeholder etc), and match
other browsers better.

The general set-up is:

  <text-control-editing-root/>
  <placeholder/>
  <autofill-preview/>

text-control-editing-root is always inline-block and always displayed
(since it's what grabs the focus / shows the caret). If the
autofill-preview or placeholder are displayed, the editing-root is
zero-width and clipped (note that for placeholder that's guaranteed
because placeholder is only shown with an empty value, but
autofill-preview needs it).

placeholder and autofill-preview are hidden via `display` rather than
visibility. This doesn't make a difference with this patch but it
matters for bug 1977176.

Caret painting needs an extra hop to paint atop the placeholder (no
observable behavior change, but worth calling out).

There is one subtle behavior change, which is that single-line inputs
never report scrollable overflow in the block axis. This matches other
browsers (see the tweak in nsBlockFrame's overflow computation) and is
needed to avoid regressing scrollable-overflow-padding-input.html.

The changes in window_composition_text_querycontent.xhtml are needed
because before this patch, the height of the control editing root was
always the height of the whole textarea. The characters you're composing
might legitimately be taller than the line. Bump the line height so that
that doesn't happen in this test.

Differential Revision: https://phabricator.services.mozilla.com/D293666
2026-04-15 23:25:11 +00:00
Nicolas Chevobbe e3ed0f27fa Bug 1149501 - [devtools] Rename AnimationPlayerFront to AnimationFront. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D289502
2026-04-10 08:24:52 +00:00
Nicolas Chevobbe f67101d76f Bug 1149501 - [devtools] Update server code to simply refer to Animation instead of Animation Player. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes.
The player word is a relic of a past implementation of the Animation API that doesn't
exist anymore.
This patch removes/renames references to player that are easy to handle.
Renaming RDP methods / fronts will be done later in following commits.

Differential Revision: https://phabricator.services.mozilla.com/D289496
2026-04-10 08:24:48 +00:00
Nicolas Chevobbe e51e9c3500 Bug 1245562 - [devtools] Remove now unused AnimationsActor#setPlaybackRates. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D287301
2026-03-26 23:40:01 +00:00
Lorenz A f3f5bcf872 Bug 1939289 - [devtools] Use native CSSStyleDeclaration APIs in FlexItemActor instead of manual parsing. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D277286
2026-03-05 19:47:21 +00:00
Jonathan Moss 1e4695f228 Bug 2019745 - Add Win11 25H2 (11.26200) skip annotations to TOML manifests r=webcompat-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,places-reviewers,urlbar-reviewers,profiles-reviewers,dom-worker-reviewers,twisniewski,hneiva,aryx,scunnane,asuth,dimi,mossop,padenot
Differential Revision: https://phabricator.services.mozilla.com/D285126
2026-02-27 10:51:18 +00:00
Hubert B Manilla 7f273e95fb Bug 2015909 - [devtools] Update MDN compatibility data r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D282696
2026-02-12 08:21:36 +00:00
Atila Butkovits 8afdb0ceb0 Revert "Bug 2015909 - [devtools] Update MDN compatibility data r=devtools-reviewers,nchevobbe" for causing failures at test_mdn-compatibility.js.
This reverts commit c6b8c0b165.
2026-02-12 01:36:57 +00:00
Hubert B Manilla c6b8c0b165 Bug 2015909 - [devtools] Update MDN compatibility data r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D282696
2026-02-11 23:00:43 +00:00
Mark Banner 73473d292f Bug 1967204 - remove superfluous eslint-env annotations from devtools. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D279320
2026-01-21 13:57:56 +00:00
Alexandre Poirot 25c8ad77e8 Bug 2007539 - [devtools] Reload pages as Firefox does in DevTools tests. r=devtools-reviewers,nchevobbe
The `gBrowser.reloadTab` method was doing a very light reload,
which could preserve iframe overriden locations.
The new method ensures we load the original HTML content back,
this seems to also have an impact on keep-alive which is not longer guaranteed.

Only supports reloading the currently selected tab, to better replicate
real user scenarios. But also to comply to `BrowserCommands.reload`,
which only supports reloading the selected tab.

Also tune the har test, now that requests are really cancelled
and we may try to fetch reponse content for such request.

Differential Revision: https://phabricator.services.mozilla.com/D277433
2026-01-20 20:44:46 +00:00
Alexandre Poirot ba7a7a3206 Bug 2011264 - [devtools] Move server stylesheets utils modules to a dedicated folder. r=devtools-reviewers,jdescottes
As I'm about to craft more of these modules, it would help to have a dedicated module for them.

Differential Revision: https://phabricator.services.mozilla.com/D279536
2026-01-20 18:25:09 +00:00
Atila Butkovits d95fe903b7 Revert "Bug 1967204 - remove superfluous eslint-env annotations from remaining places. r=frontend-codestyle-reviewers,geckoview-reviewers,whimboo,Gijs,nalexander" for causing failures at browser_webconsole_stubs_page_error.js.
This reverts commit a0fd5cb925.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from devtools. r=devtools-reviewers,ochameau"

This reverts commit 437173a655.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from netwerk. r=necko-reviewers,cookie-reviewers,valentin"

This reverts commit 379e12b4e7.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from tools. r=frontend-codestyle-reviewers,Gijs"

This reverts commit 78ab55c903.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from testing. r=frontend-codestyle-reviewers,perftest-reviewers,sparky,Gijs"

This reverts commit 24b398368a.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from browser. r=frontend-codestyle-reviewers,credential-management-reviewers,omc-reviewers,home-newtab-reviewers,mkennedy,mconley,dimi,Gijs,emcminn"

This reverts commit f9d3a69d83.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from toolkit. r=frontend-codestyle-reviewers,credential-management-reviewers,desktop-theme-reviewers,manuel,mkennedy,dimi,Gijs,dao"

This reverts commit 1a9053a6b4.

Revert "Bug 1967204 - remove superfluous eslint-env annotations from dom/ r=dom-core,media-playback-reviewers,smaug,aosmond"

This reverts commit f342d41a38.
2026-01-20 15:00:04 +00:00
Mark Banner 437173a655 Bug 1967204 - remove superfluous eslint-env annotations from devtools. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D279320
2026-01-20 13:45:39 +00:00
Nicolas Chevobbe 90e36652f9 Bug 2008845 - [devtools] Remove leading spaces before attribute name in WalkerSearch#_searchAttribute. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D279141
2026-01-15 14:59:10 +00:00
Julian Descottes d15a8073d1 Bug 2008497 - [DevTools Release Tasks - Cycle 148] Add devtools-compat-data tag to all relevant devtools tests r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D277851
2026-01-06 07:49:11 +00:00
Nicolas Chevobbe 55e51e6a9a Bug 2002769 - [devtools] Update MDN compat data for the 147 cycle. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D274283
2025-11-27 16:38:49 +00:00
Nicolas Chevobbe 8188dec434 Bug 2001590 - [devtools] Filter out AnimationPlayerActor instances that aren't handled by AnimationsActor. r=devtools-reviewers,bomsy.
`AnimationActor` `pauseSome`, `playSome`, `setCurrentTimes` and `setPlaybackRates`
all take an array of `AnimationPlayerActor` instances for which we'll perform
some operation on their underlying animation.
It can happen that some of those actors are not handled by the `AnimationsActor`
anymore (e.g. the animation stopped, but the client wasn't updated yet).

Performing any action on those unhandled player (pausing, setting time, …) might
actually trigger a new, unwanted, mutation, which will cause both the server
state and the client state to be out of date.

This patch filters out actors which are not into `AnimationsActor#actors` to avoid
such issue.

Differential Revision: https://phabricator.services.mozilla.com/D273562
2025-11-23 22:48:27 +00:00
Tom Marble 5ce09d7446 Bug 1995583 - test manifest cleanup for idiomatic usage r=jmaher,necko-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,sessionstore-reviewers,tabbrowser-reviewers,translations-reviewers,omc-reviewers,browser-installer-reviewers,twisniewski,masayuki,dom-core,smaug,nalexander,emcminn,sthompson,alwu,ai-ondevice-reviewers,valentin
For TOML manifests:

1. Change processor -> arch
2. Use arch instead of bits bits == '64' =>
   aarch64 (default on mac 15.30) or x86_64 bits == '32' => x86
3. Replace android_version with corresponding os_version
4. Remove conditions with linux os_version=="18.04"
   (unless they contain verify or verify-standalone)
5. Remove conditions with mac os_version=='11.20',
   (unless they contain verify or verify-standalone)
6. Remove conditions with win os_version=='11.2009' or win11_2009,
   (unless they contain verify or verify-standalone)
7. Linux conditions should have os_version, arch and display
   (simple "os == 'linux'" will get expanded to these two)
   "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'"
   "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'"
8. Mac conditions should have os_version and arch
   (simple "os == 'mac'" will get expanded to these three)
   "os == 'mac' && os_version == '10.15' && arch == 'x86_64'",
   "os == 'mac' && os_version == '14.70' && arch == 'x86_64'",
   "os == 'mac' && os_version == '15.30' && arch == 'aarch64'",
9. Replace apple_catalina with
   os == 'mac' && os_version == '10.15' && arch == 'x86_64'
10. Replace apple_silicon with
   os == 'mac' && os_version = '15.30' && arch == 'aarch64'
11. Replace win10_2009 with
   os == 'win' && os_version = '10.2009' && arch == 'x86_64'
12. Replace "!debug" with three conditions "asan", "opt", or "tsan"
13. Replace literal boolean comparison with variables
    (e.g. "debug == false" => "!debug)

Resolves 2000285

Signed-off-by: Tom Marble <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D272815
2025-11-22 00:30:39 +00:00
Nicolas Chevobbe e8fb3ed027 Bug 2001562 - [devtools] Fix AnimationPlayerActor for element with type property. r=devtools-reviewers,bomsy.
In the class, there were a couple places where we would check the animation target
`type` property as a way to detect if the animated element was a pseudo element.
This means that we were considering button elements as pseudo element, and re-assigning
variables with erroneous properties, which would ultimately make the methods throw.
This is also wrong for pseudo elements: the animation target is always the binding
element and we have a `pseudoElement` string property on the animation to detect
if this applies to a pseudo element.

We fix the faulty callsites and add a server test that is covering this.

Differential Revision: https://phabricator.services.mozilla.com/D273546
2025-11-21 17:13:04 +00:00
Mark Banner b38cd3110b Bug 1999554 - Automatically fix ESLint rule jsdoc/check-types for devtools/. r=devtools-reviewers,devtools-backward-compat-reviewers,profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D272173
2025-11-21 16:16:08 +00:00
Nicolas Chevobbe 6cca86e7b1 Bug 1597411 - [devtools] Directly use node.isNativeAnonymous and cleanup usages. r=devtools-reviewers,ochameau.
Remove devtools/shared/layout/utils.js isNativeAnonymous/isAnonymous and switch
callsites to directly use node.isNativeAnonymous getter.
On the client rename isAnonymous into isNativeAnonymous so it's consistent
with the platform implementation.

Differential Revision: https://phabricator.services.mozilla.com/D271553
2025-11-14 10:31:48 +00:00
Nicolas Chevobbe 65ea9dbd82 Bug 1997847 - [devtools] Cleanup pseudo element handling in inspector client and server. r=devtools-reviewers,ochameau
We used to compute the pseudo element name (e.g. `::before`, `::marker`, …) in a
few places, both on the server and the client.
This patch does it directly from `getNodeDisplayName`, which is called for assigning
the NodeActorForm displayName.
We also use `getNodeDisplayName` in `getBindingElementAndPseudo` to avoid duplicating
code.
On the client we now use displayName in the few places we used to re-construct
the pseudo element text in (markup view, breadcrumb, rules view, …)

We also no longer pass "individual" pseudo element booleans (e.g. `isAfterPseudoElement`)
in the NodeActor form, but a more generic `isPseudoElement` one so it's easier
to handle future pseudo element (e.g. `::view-transition`).
And we take this as an opportunity to remove the utility functions that we were
using to build those properties, and instead switch to look into `Node.implementedPseudoElement`
to detect when we do handle pseudo elements.

Differential Revision: https://phabricator.services.mozilla.com/D271002
2025-11-13 14:02:38 +00:00
Sandor Molnar ad2eab95e5 Revert "Bug 1997847 - [devtools] Cleanup pseudo element handling in inspector client and server. r=devtools-reviewers,ochameau" for causing dt failures @ browser_computed_inherited-element-backed-pseudo-elements.js
This reverts commit b653b2c342.
2025-11-13 11:47:27 +00:00
Nicolas Chevobbe b653b2c342 Bug 1997847 - [devtools] Cleanup pseudo element handling in inspector client and server. r=devtools-reviewers,ochameau
We used to compute the pseudo element name (e.g. `::before`, `::marker`, …) in a
few places, both on the server and the client.
This patch does it directly from `getNodeDisplayName`, which is called for assigning
the NodeActorForm displayName.
We also use `getNodeDisplayName` in `getBindingElementAndPseudo` to avoid duplicating
code.
On the client we now use displayName in the few places we used to re-construct
the pseudo element text in (markup view, breadcrumb, rules view, …)

We also no longer pass "individual" pseudo element booleans (e.g. `isAfterPseudoElement`)
in the NodeActor form, but a more generic `isPseudoElement` one so it's easier
to handle future pseudo element (e.g. `::view-transition`).
And we take this as an opportunity to remove the utility functions that we were
using to build those properties, and instead switch to look into `Node.implementedPseudoElement`
to detect when we do handle pseudo elements.

Differential Revision: https://phabricator.services.mozilla.com/D271002
2025-11-13 10:00:41 +00:00
Mark Banner 2542790f53 Bug 1998787 - Automatic fixes for enabling ESLint jsdoc/tag-line rule everywhere. r=frontend-codestyle-reviewers,mtigley,perftest-reviewers,nchevobbe,home-newtab-reviewers,Gijs,mconley,sparky
Differential Revision: https://phabricator.services.mozilla.com/D271745
2025-11-10 21:27:12 +00:00
Julian Descottes 4775083d65 Bug 1998335 - [devtools] Remove and migrate linux 1804 annotations from DevTools browser.toml manifests r=profiler-reviewers,devtools-reviewers,florian,nchevobbe
In most cases, the manifest contained already the same annotation for 2404, so I simply removed the 1804 one, since we no longer run tests on this platform.
In a few cases, the 1804 annotation did not have a 2404 match. In that case I just checked if we had recorded intermittent failures. If yes, I migrated the annotation, if not, I just removed it.

Differential Revision: https://phabricator.services.mozilla.com/D271355
2025-11-05 08:25:24 +00:00
Eitan Isaacson 809deced26 Bug 1992028 - Implement details-from attribute. r=Jamie
This allows ATs to distinguish the source of details relations.

Differential Revision: https://phabricator.services.mozilla.com/D271153
2025-11-04 20:20:00 +00:00
James Teh 63ecf8273b Bug 1997698: DevTools accessibility audit: Treat role searchbox as focusable. r=devtools-reviewers,nchevobbe
After bug 1938624, <input type=search> has a separate searchbox role from the role used for other text inputs.
Update DevTools accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D270982
2025-11-04 01:24:32 +00:00
Magnus Melin ae3f6ada11 Bug 1787457 - Use Services.wm.getMostRecentBrowserWindow() to get most recent browser window in devtools (to work better with Android and Thunderbird). r=devtools-reviewers,profiler-reviewers,ochameau,canaltinova
For Firefox, this will get you exactly the same thing as "navigator:browser".
https://searchfox.org/firefox-main/rev/e02959386f6f89c1476edba10b3902f4e4f3ed4c/xpfe/appshell/nsWindowMediator.cpp#254

Differential Revision: https://phabricator.services.mozilla.com/D263243
2025-09-01 09:31:32 +00:00
Nicolas Chevobbe ebaa206dae Bug 1981682 - [devtools] Add a contentRootHostClassName option to CanvasFrameAnonymousContentHelper. r=devtools-reviewers,jdescottes.
When provided, this will add a class to the anonymous content root host.
We pass it from the different highlighters so it's easier to spot a given
highlighter when inspecting a page.

Differential Revision: https://phabricator.services.mozilla.com/D260264
2025-08-08 10:21:54 +00:00
Nicolas Chevobbe 1d8ce6322c Bug 1980576 - [devtools] Remove CanvasFrameAnonymousContentHelper#createNode prefix option. r=jdescottes,devtools-reviewers.
Explicitely setting the final id/class from the callsite to createNode is better for search,
and overally maintainability in the long run.

Differential Revision: https://phabricator.services.mozilla.com/D259527
2025-08-08 10:21:43 +00:00
Nicolas Chevobbe 984841a1f9 Bug 1980892 - [devtools] Remove use of InspectorUtils.isCustomElementName on WalkerSearch#_searchSelectors. r=devtools-reviewers,jdescottes.
We used to check if the passed query looked like a tag name so we could
bail out early, as we'd get those results from _searchIndex.
But InspectorUtils.isCustomElementName does match some legitimate
selectors, like div.a-b.
Let's remove the check on custom element and trigger the search in such case.

Differential Revision: https://phabricator.services.mozilla.com/D259783
2025-08-04 13:28:14 +00:00
Florian Quèze 98a3716cc6 Bug 1970118 - Ensure tests pass when pushing to try with --env MOZ_PROFILER_STARTUP=1, r=canaltinova,profiler-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D252327
2025-07-29 09:49:24 +00:00
Julian Descottes 29dd4cedb0 Bug 1978535 - [devtools] Remove unused preference devtools.every-frame-target.enabled r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D258183
2025-07-25 09:25:29 +00:00
Emilio Cobos Álvarez fd1f57b58d Bug 1873301 - Remove nsHTMLButtonControlFrame. r=dholbert,layout-reviewers,dshin
This removes the implementation of nsHTMLButtonControlFrame, instead
reusing nsBlockFrame + align-content (or the relevant display type for
flex / grid / columns / etc).

This matches what Blink does and, for the most part, it is trivial.
It requires moving some special cases around, and override inline flow
display, tho so that buttons don't suddenly start fragmenting in the
inline axis.

It adds a tiny fix for a writing-mode mismatch in
nsBlockFrame::AlignContent(), covered by
layout/reftests/writing-mode/1138356-1-button-contents-alignment.html

containing-block-change-button tests are tweaked to avoid overflowing
the 600px viewport from WPT reftests causing scrollbar fuzziness.

contain-layout-baseline-005.html removes the <select> element just like
https://chromium-review.googlesource.com/c/chromium/src/+/5479489
removed the <button>s, since they align the same now, added a test for
that.

Differential Revision: https://phabricator.services.mozilla.com/D257149
2025-07-15 11:05:54 +00:00
Joel Maher 1a4fb71e2c Bug 1975729 - adjust whitespace and newlines for most mochitest .toml files, also remove unnecessary skip-if=verify conditions. r=florian,webdriver-reviewers,necko-reviewers,mtigley,webcompat-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,dom-storage-reviewers,translations-reviewers,omc-reviewers,home-newtab-reviewers,sidebar-reviewers,urlbar-reviewers,firefox-ai-ml-reviewers,twisniewski,bytesized,emcminn,Standard8,karlt,padenot,jdescottes,dimi,kershaw,robwu,canaltinova,nbarrett,asuth
Differential Revision: https://phabricator.services.mozilla.com/D256136
2025-07-12 16:26:27 +00:00