Commit Graph
808 Commits
Author SHA1 Message Date
Nicolas Chevobbe 746f944388 Bug 2036995 - [devtools] Add CSS Explainers tooltip. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D303709
2026-06-12 07:25:33 +00:00
Alexandre Poirot e34b3d9044 Bug 2032221 - [devtools] Avoid triggerring rule view updates when previewing the same value. r=devtools-reviewers,nchevobbe
Any code asking for a declaration change preview will trigger unecessary
updates if the value is the same as the current value.
Because of this we were awaiting for more than one rule-view-changed
event in a couple of tests.

It looks like we can also get rid of `flushCount` workaround.

Shapes highlighter are now doing full updates instead of light preview+commit.

Differential Revision: https://phabricator.services.mozilla.com/D294905
2026-06-08 12:55:04 +00:00
Alexandre Poirot 6f645ba1a2 Bug 2032220 - [devtools] Re-attach swatches when the declaration value is updated. r=devtools-reviewers,nchevobbe
The swatches are currently broken when a rule view updates while they
are already opened. This is hard to reproduce yet as the rule view
rarely updates and it often requires interacting with the page or the
browser window to trigger one.
But this is much easier to reproduce with bug 2032221 patches.

Differential Revision: https://phabricator.services.mozilla.com/D294904
2026-06-08 12:55:01 +00:00
agoloman f0b50b535f Revert "Bug 2032221 - [devtools] Avoid triggerring rule view updates when previewing the same value. r=devtools-reviewers,nchevobbe" for causing bc failures @browser_devtools.js.
This reverts commit d1e8e2dad9.

Revert "Bug 2032220 - [devtools] Re-attach swatches when the declaration value is updated. r=devtools-reviewers,nchevobbe"

This reverts commit 70bb651cb9.

Revert "Bug 2032220 - [devtools] Fix unregistering for filter swatches. r=devtools-reviewers,nchevobbe"

This reverts commit a054f4fc68.
2026-06-04 18:11:57 +00:00
Alexandre Poirot d1e8e2dad9 Bug 2032221 - [devtools] Avoid triggerring rule view updates when previewing the same value. r=devtools-reviewers,nchevobbe
Any code asking for a declaration change preview will trigger unecessary
updates if the value is the same as the current value.
Because of this we were awaiting for more than one rule-view-changed
event in a couple of tests.

It looks like we can also get rid of `flushCount` workaround.

Shapes highlighter are now doing full updates instead of light preview+commit.

Differential Revision: https://phabricator.services.mozilla.com/D294905
2026-06-04 10:28:57 +00:00
Alexandre Poirot 70bb651cb9 Bug 2032220 - [devtools] Re-attach swatches when the declaration value is updated. r=devtools-reviewers,nchevobbe
The swatches are currently broken when a rule view updates while they
are already opened. This is hard to reproduce yet as the rule view
rarely updates and it often requires interacting with the page or the
browser window to trigger one.
But this is much easier to reproduce with bug 2032221 patches.

Differential Revision: https://phabricator.services.mozilla.com/D294904
2026-06-04 10:28:55 +00:00
Nicolas Chevobbe 9d79ade0e0 Bug 2040393 - [devtools] Remove 151 backward compatibility code for the Rules view. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D301460
2026-05-21 08:45:03 +00:00
Nicolas Chevobbe ff0293ba60 Bug 1898254 - [devtools] Don't display contrast information in color tooltip for relative color in color function. r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D296926
2026-05-04 19:45:05 +00:00
Emilio Cobos Álvarez e833a1757b Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-02 22:04:13 +00:00
iulian moraru 480fc572da Revert "Bug 2036439, Bug 2033243 - Deal with ownerGlobal -> documentGlobal rename in extensions. r=robwu,home-newtab-reviewers,mconley" for causing newtab failures.
This reverts commit 4f62279d01.

Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug"

This reverts commit 91a4ece356.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 5a95a889e1.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 7177a68e67.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 5263254690.
2026-05-02 16:43:35 +00:00
Emilio Cobos Álvarez 5263254690 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-02 15:33:20 +00:00
rperta d4cc71008d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" on developer request
This reverts commit e58e122135.

This reverts commit 84ca206f3e.

This reverts commit a7945292ed.

This reverts commit 367d83d299.
2026-05-02 06:20:30 +00:00
Emilio Cobos Álvarez 367d83d299 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-01 11:58:10 +00:00
agoloman c814da612d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" for causing multiple failures.
This reverts commit c7246654bc.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 8873ddf33c.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 8bf999e03c.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 7dea1af2e0.
2026-04-30 20:13:14 +00:00
Emilio Cobos Álvarez 7dea1af2e0 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-04-30 17:47:07 +00:00
Nicolas Chevobbe 9a6bbfa4cb Bug 2031688 - [devtools] Move select container element button from @container condition to the tooltip. r=devtools-reviewers,jdescottes.
Also, only show the element highlighter when the "objectBox-node" is hovered,
like we do in the console.
Tests are updated to assert the new behavior.

Differential Revision: https://phabricator.services.mozilla.com/D295750
2026-04-25 09:48:44 +00:00
Nicolas Chevobbe 6563f489b0 Bug 2030239 - [devtools] Include property values referenced in container query condition in the @container tooltip. r=devtools-reviewers,jdescottes,devtools-backward-compat-reviewers.
This patch make it so the tooltip we show when hovering a `@container` query condition
in the rule view will have the properties that are directly referenced in the condition.
So for example, if the query is `@container (width > 10px)` it'll have `width`,
if it's `@container style(--x)` it'll have `--x`, if it's `@container style(attr(data-x px))`,
it'll have `data-x` and so on.
We also indicate when referenced variables and attributes are not set.
Tests case are added in !!browser_rules_container-queries.js!! to cover the different
features we can have. We also now assert the condition text in `assertQueryContainerTooltip`
so it's easier to understand which condition the function is asserting.

Differential Revision: https://phabricator.services.mozilla.com/D294420
2026-04-17 12:22:07 +00:00
Nicolas Chevobbe 0960deadc3 Bug 2030731 - [devtools] Show container name in @container tooltip. r=devtools-reviewers,fluent-reviewers,bolsson,ochameau.
We now show the `container-name` property (when it's not `none`), in the tooltip
that is displayed on `@container` condition tooltip.
Along this change, we also show the tooltip when the condition does not match
any container element (e.g. there's no parent element with the specified `container-name`
value), with a label indicating that there's no container with such name.
From the server, that means that instead of returning a vague `unmatched` property,
we now pass a `hasContainer` property that we can use to include the "open in inspector"
icon in the condition.
The existing test for container queries is updated to assert those updates.

Differential Revision: https://phabricator.services.mozilla.com/D293026
2026-04-14 03:26:33 +00:00
Nicolas Chevobbe fc8ca9c91f Bug 2023125 - [devtools] Handle @container queries with multiple conditions in Rules view. r=devtools-reviewers,devtools-backward-compat-reviewers,ochameau.
container queries can now have multiple conditions, so we're computing those
on the server and sending it to the client, where we render them separately.
As each condition might refer to a different container, we need to update how
we were handling hovering the container query to show the container tooltip.
Before, we were underlining the `@container` part plus the eventual container
name; now, we underline the whole condition (eventual container name + eventual
container query).
This also impacts how we were triggering the box model highlighter for the container,
it is now displayed when the tooltip is visible, and the tooltip is actually
responsible to toggle it.
The tooltip code is also tweaked so we would always show the tooltip based on
the condition element, not any of its children (e.g. the jump button).
And since we were updating things here, we now add a tooltip-anchor class to
the element that is used as the anchor for the tooltip, so it can be styled.
In this case, we use it to have the same style as we put on hover on the condition
so things feels a bit more stable.

Finally, in order for us to get the proper container, we had to update
`CSSContainerRule.queryContainerFor` in the previous patch so it would know which
condition we should get the container for.
This patch now properly pass the condition index to the RDP method, and the server
functions pass it to `CSSContainerRule.queryContainerFor`.

Differential Revision: https://phabricator.services.mozilla.com/D291482
2026-04-08 12:02:39 +00:00
Sylvestre Ledru 074b376055 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-28 10:21:10 +00:00
Nicolas Chevobbe 26c0e31a45 Bug 2024622 - [devtools] Remove remaining references to defunct Launchpad. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D288647
2026-03-19 18:38:28 +00:00
Alexandru Marc 630e6cf0e8 Revert "Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe" for causing devtools failures
This reverts commit ed535dace9.
2026-03-17 12:46:01 +00:00
Sylvestre Ledru ed535dace9 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-17 12:03:34 +00:00
Nicolas Chevobbe da2772f00a Bug 2020911 - [devtools] Use InspectorUtils.getCSSWideKeywords when we need CSS wide keywords. r=devtools-reviewers,layout-reviewers,emilio,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D286946
2026-03-12 08:38:36 +00:00
Cosmin Sabou 11162cf763 Revert "Bug 2020911 - [devtools] Use InspectorUtils.getCSSWideKeywords when we need CSS wide keywords. r=devtools-reviewers,layout-reviewers,emilio,ochameau." for causing font related dt failures.
This reverts commit f204119c98.

Revert "Bug 2020911 - [devtools] Add InspectorUtils.getCSSWideKeywords. r=emilio,devtools-reviewers,firefox-style-system-reviewers,layout-reviewers,ochameau."

This reverts commit 8bdbca9607.
2026-03-11 19:06:26 +00:00
Nicolas Chevobbe f204119c98 Bug 2020911 - [devtools] Use InspectorUtils.getCSSWideKeywords when we need CSS wide keywords. r=devtools-reviewers,layout-reviewers,emilio,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D286946
2026-03-11 17:42:21 +00:00
Emilio Cobos Álvarez d9f08ccbc6 Bug 2021694 - Remove GetXULBoolAttr. r=smaug,devtools-reviewers,nchevobbe
Three callers:

 * fixed attribute is only used as fixed=true for treecolumns, so no
   behavior change.
 * noautofocus is already only used as =true or removed, so no behavior
   change.
 * incontentshell is only used with ="false", rename to
   escapecontentshell and flip the meaning.

Remove the API and similar GetXUL* stuff that did the same.

Differential Revision: https://phabricator.services.mozilla.com/D286520
2026-03-09 19:33:57 +00:00
Emilio Cobos Álvarez 4064391907 Bug 2021694 - Make noautohide a regular bool attr. r=aminomancer,omc-reviewers,devtools-reviewers,nchevobbe
FeatureCallout and one other devtools bit was the only front-end bit
that was already not treating it as such.

Differential Revision: https://phabricator.services.mozilla.com/D286523
2026-03-09 19:20:28 +00:00
Nicolas Chevobbe cfc31a19b1 Bug 2020977 - [devtools] Use getMdnLinkParams for compatibility tooltip MDN links. r=leo,devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D285996
2026-03-05 09:09:52 +00:00
Nicolas Chevobbe 64c7bf26cb Bug 2020451 - [devtools] Fix compatibility panel learn more link for properties without MDN page and multiple spec urls. r=devtools-reviewers,bomsy.
We don't add a test for it as the issue only impact the baseline-shift property,
for which the compat data will have a MDN url the next time we fetch the data in
the repository.

Differential Revision: https://phabricator.services.mozilla.com/D285995
2026-03-05 09:09:50 +00:00
cvl123abc e3d8154758 Bug 2015241 - Convert TableWidget internals to private fields and update accessors. r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D283630
2026-02-18 11:38:03 +00:00
Nicolas Chevobbe f5eedf8751 Bug 2017064 - [devtools] Turn PieChart, TableChart and PieTableChart into ES classes. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D283521
2026-02-17 10:45:24 +00:00
Nicolas Chevobbe 1347b04fcc Bug 2017058 - [devtools] Make classes extend EventEmitter instead of calling EventEmitter.decorate. r=devtools-reviewers,profiler-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D283517
2026-02-17 10:45:11 +00:00
Nicolas Chevobbe 6b480923fe Bug 2011646 - [devtools] Add Rules view tooltip for attr(). r=devtools-reviewers,jdescottes.
Add specific class from the OutputParser for the attribute name and fallback
spans so they're easier to target in tests.
Refactor and augment browser_rules_attr.js so it covers showing the preview
tooltip.

Differential Revision: https://phabricator.services.mozilla.com/D282021
2026-02-09 08:58:09 +00:00
Emilio Cobos Álvarez 0f05ae3356 Bug 2008041 - Fix DevTools TableWidget checked usage. 2026-01-07 00:06:37 +00:00
Mark Banner 88ea51175c Bug 2004680 - Automatically fix issues raised by jsdoc/check-tag-names. r=frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D275753
2025-12-22 12:41:23 +00:00
Kagami Sascha Rosylight 3c797bb745 Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D272893
2025-12-21 12:40:47 +00:00
Sandor Molnar 16b534c337 Revert "Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones" for causing dt failures @ browser_spectrum.js
This reverts commit d2bbd50a60.
2025-12-20 18:14:42 +00:00
Kagami Sascha Rosylight d2bbd50a60 Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D272893
2025-12-20 17:01:52 +00:00
pstanciu 0586797141 Revert "Bug 1629388, Bug 2000644, Bug 2004409 - Use HTML panel for color picker r=desktop-theme-reviewers,webidl,frontend-codestyle-reviewers,tschuster,emilio" for causing wpt failures @color-picker-value.html
This reverts commit 6c5157b828.

Revert "Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones"

This reverts commit 0604161977.

Revert "Bug 2004409 - Split window opener logic from DateTimePicker classes r=emilio"

This reverts commit dbe80fc5ce.
2025-12-19 23:53:12 +00:00
Kagami Sascha Rosylight 0604161977 Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D272893
2025-12-19 22:38:47 +00:00
Sandor Molnar bb5b4322e1 Revert "Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones" for causing mochitest failures
This reverts commit 2c7d7e1bba.
2025-12-19 10:23:30 +00:00
Kagami Sascha Rosylight 2c7d7e1bba Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D272893
2025-12-19 09:27:58 +00:00
Cristina Horotan ee0b7e0291 Revert "Bug 1629388, Bug 2000644, Bug 2004409 - Use HTML panel for color picker r=desktop-theme-reviewers,webidl,frontend-codestyle-reviewers,tschuster,emilio" for causing bc failures on browser_all_files_referenced.js
This reverts commit a0d863ae05.

Revert "Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones"

This reverts commit 11f938e477.

Revert "Bug 2004409 - Split window opener logic from DateTimePicker classes r=emilio"

This reverts commit 16894a9e46.
2025-12-17 18:44:37 +00:00
Lorenz A d19af0f64f Bug 2004251 - [devtools] Remove unused class Item from devtools/client/shared/widgets/view-helpers.js. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D276859
2025-12-17 17:18:04 +00:00
Kagami Sascha Rosylight 11f938e477 Bug 2000644 - Introduce a superclass of color picker to prepare for multiple subclasses r=devtools-reviewers,nchevobbe,desktop-theme-reviewers,frontend-codestyle-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D272893
2025-12-17 17:12:02 +00:00
Nicolas Chevobbe 202ae50fb8 Bug 2005708 - [devtools] Handle SiblingCombinatorAfterScope selector warning in the Inspector. r=dshin,fluent-reviewers,devtools-reviewers,bolsson,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D276181
2025-12-16 06:55:33 +00:00
Lorenz A a192b4adac Bug 2004255 - [devtools] Turn devtools/client/shared/widgets/TreeWidget.js into an ES class. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D276393
2025-12-15 15:41:51 +00:00
Lorenz A 1432c0f4de Bug 2004253 - [devtools] Turn devtools/client/shared/widgets/tooltip/TooltipToggle.js into an ES class. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D276396
2025-12-15 15:39:36 +00:00
Lorenz A 28b770dc03 Bug 2004254 - [devtools] Turn devtools/client/shared/widgets/tooltip/HTMLTooltip.js into an ES class. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D276394
2025-12-15 15:39:10 +00:00