Commit Graph
4672 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
Nicolas Chevobbe ab5dc2d65c Bug 2038635 - [devtools] Add InspectorUtils.getComputationStepsSupportedCSSFunctions. r=layout-reviewers,firefox-style-system-reviewers,emilio.
Differential Revision: https://phabricator.services.mozilla.com/D302020
2026-06-12 07:25:29 +00:00
Hubert B Manilla 1b9a5776fa Bug 2043267 - [devtools] Editing stylesheets in the debugger r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D303071
2026-06-12 07:24:24 +00:00
agoloman f008f80b1e Revert "Bug 2041780, Bug 2043267, Bug 2045710 - [devtools] Pretty printing stylesheets in the debugger r=devtools-reviewers,ochameau" for causing dt failures @browser_dbg-javascript-tracer-sidebar.js.
This reverts commit 1d08a5cd99.

Revert "Bug 2043267 - [devtools] Editing stylesheets in the debugger r=devtools-reviewers,ochameau"

This reverts commit 813e0fadb5.

Revert "Bug 2045710 - [devtools] Fix and add style sheet related test r=devtools-reviewers,ochameau"

This reverts commit 2fc4893d8a.
2026-06-12 06:37:36 +00:00
Hubert B Manilla 813e0fadb5 Bug 2043267 - [devtools] Editing stylesheets in the debugger r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D303071
2026-06-12 04:49:02 +00:00
Cristian Tuns bf6ae1ed70 Revert "Bug 2043267, Bug 2045710 - [devtools] Editing stylesheets in the debugger r=devtools-reviewers,ochameau" for causing node failures in devtools/client/*
This reverts commit c07fcd7808.

Revert "Bug 2045710 - [devtools] Fix and add style sheet related test r=devtools-reviewers,ochameau" for causing node failures in devtools/client/*

This reverts commit e46af7df05.
2026-06-11 23:27:54 +00:00
Hubert B Manilla c07fcd7808 Bug 2043267 - [devtools] Editing stylesheets in the debugger r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D303071
2026-06-11 22:57:08 +00:00
Leo McArdle 10b22032e4 Bug 2044941 - [devtools] replace generic icon in network panel with mdn icon r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D304687
2026-06-09 15:14:42 +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
Julian Descottes 5be4b83391 Bug 2044062 - [devtools] Record additional toolbox metadata to toolbox server error telemetry r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D303818
2026-06-03 08:51:15 +00:00
Alexandre Poirot b33f115eb0 Bug 2042894 - [devtools] Show AppErrorBoundary when the inspector fails rendering the markup view. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D302827
2026-06-02 14:17:10 +00:00
Atila Butkovits 811834ef32 Revert "Bug 2042894 - [devtools] Show AppErrorBoundary when the inspector fails rendering the markup view. r=devtools-reviewers,jdescottes" for causing failures at browser_toolbox_backward_forward_navigation.js.
This reverts commit e001fd3251.
2026-06-01 22:57:09 +00:00
Alexandre Poirot e001fd3251 Bug 2042894 - [devtools] Show AppErrorBoundary when the inspector fails rendering the markup view. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D302827
2026-06-01 20:54:45 +00:00
Chris Vander Linden f391b53273 Bug 2027582 - Move CloseButton to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D292686
2026-05-29 11:05:58 +00:00
Chris Vander Linden 8c8db126be Bug 2027580 - Move DebuggerImage to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D292685
2026-05-29 11:05:55 +00:00
Chris Vander Linden a73a3f85d7 Bug 2019260 - Move SearchInput to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D286439
2026-05-29 11:05:52 +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
glob 99718c01c5 [Bug 2016778] - Fix color swatch in @starting-style to use starting-style var value r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D300522
2026-05-26 08:48:43 +00:00
Nicolas Chevobbe 7cfad5d34c Bug 2014751 - [devtools] Handle modern attr() syntax in OutputParser. r=devtools-reviewers,ochameau.
Check if the attribute value does match the definedd attr() attr-type parameter
to see if the attribute value or the fallback is being used.
In the attr() tooltip, indicate when the attribute value doesn't match the specified
type.

Differential Revision: https://phabricator.services.mozilla.com/D301490
2026-05-23 08:05:32 +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
Julian Descottes a4c93ea48f Bug 2040563 - [devtools] Add session_id to toolbox_server_error events r=devtools-reviewers,nchevobbe
Data classification: adding the toolbox session id to existing events, does not leak any personal data.

Differential Revision: https://phabricator.services.mozilla.com/D301238
2026-05-19 12:54:56 +00:00
Julian Descottes 10a69dc090 Bug 2040563 - [devtools] Fix incorrect comment about telemetry session id r=devtools-reviewers,nchevobbe
The implementation is setting a timestamp measured since the process started, however
the metrics.yaml file suggests that this session_id should be unix timestamp (counted from
epoch).

Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1466880#c16 it's intentional to make
the timestamp relative to the start of the browser session so we should update the comments
to reflect that.

However I don't know if the requirement still holds. Also worth noting that a timestamp in ms might
not be enough to differentiate toolboxes started at the same time from the same browser.

Differential Revision: https://phabricator.services.mozilla.com/D301237
2026-05-19 12:54:52 +00:00
Nicolas Chevobbe 70bbbe1a3f Bug 2038920 - [devtools] Handle parenthesis stack entry when setting nestedFunctions property. r=devtools-reviewers,ochameau.
Don't put the (undefined) stack entry function name in nestedFunctions,
this would prevent the data-function-expression attribute to be set
properly on the parent stack entry when closing it.

Differential Revision: https://phabricator.services.mozilla.com/D299989
2026-05-19 08:22:29 +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
Freya Arbjerg ab5588d47c Bug 2036767 - Fix devtools server ignoring blackbox columns; fix client sending wrong columns. r=ochameau,devtools-reviewers
This also fixes a typo in test_blackboxing-08.js, which caused the end column to be undefined.

Differential Revision: https://phabricator.services.mozilla.com/D300173
2026-05-18 08:17:00 +00:00
Nicolas Chevobbe 4d6ed71ed3 Bug 2038889 - [devtools] Support image(<color>) in OutputParser. r=devtools-reviewers,bomsy.
We add the image function in the COLOR_TAKING_FUNCTIONS Set and add a test case
to make sure we show the color swatch for the color parameter.

Differential Revision: https://phabricator.services.mozilla.com/D299949
2026-05-18 07:24:29 +00:00
Alexandre Poirot 59149c9a82 Bug 2019873 - [devtools] Transfer stack to the parent process for content process exceptions. r=devtools-reviewers,jdescottes
When any exception happens from the DevToolsProcess's JSProcessActor,
the stacktrace is lost when the exception reaches the parent process.
Manually transfer the exception payload between processes
so that RDP server can send the full stack to the client.

Using callbacks was losing async stack trace, so I moved super.sendQuery
into an inline async function to be able to use await and preserve async
stacks in case of errors.

Differential Revision: https://phabricator.services.mozilla.com/D298390
2026-05-14 00:42:17 +00:00
Nicolas Chevobbe 705a23973e Bug 2038935 - [devtools] Bump devtools-reps version to 0.27.7. r=devtools-reviewers,bomsy,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D299997
2026-05-12 12:17:40 +00:00
Nicolas Chevobbe df763c6803 Bug 2029172 - [devtools] Parse CSS function data in OutputParser for CSS Explainers. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D291976
2026-05-11 13:38:16 +00:00
Nicolas Chevobbe a7f8be34e3 Bug 2029172 - [devtools] Order if blocks by function name in OutputParser#onCloseParenthesis. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D299045
2026-05-11 13:38:11 +00:00
Julian Descottes d23deab26f Bug 2030260 - [devtools] Fallback to default value when async store fails to read from indexeddb r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D299063
2026-05-07 10:39:43 +00:00
Nicolas Chevobbe 4ce0eeb3c7 Bug 2035950 - [devtools] Remove usage of React.createFactory in Reps. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D298784
2026-05-06 12:34:01 +00:00
Julian Descottes b103ab938f Bug 2035120 - [devtools] Add is_destroying flag to devtoolsMain.toolboxServerError event r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D298474
2026-05-05 08:02:47 +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
Nicolas Chevobbe 01f7f5bd3d Bug 2035143 - [devtools] Move handling of var() in OutputParser to onCloseParenthesis. r=devtools-reviewers,jdescottes.
This is moving the last special cases for Function tokens to onCloseParenthesis,
which means we can also remove `#parseVariable`, `#parseMatchingParens` and the
`stopAtComma` parameter for `#doParse`.

This has the nice side effects of adding color swatches for some declarations
where we didn't use to be able to compute those (results of `color-mix()`,
`contrast-color()`, relative color syntax `from` color, `var()` with fallback),
which are reflected in the changes in the tests.

With this final change, we also needed to change how we're handling font family
names so they can fit nicely in this new design. So instead of keeping track
of the different font family parts, and then appending them to `parts`, we
now keep a single index when we detect a font family name, and when we find
a delimiter or a closing parenthesis, we wrap the meaningful part of the
font family in a dedicated element.

As we needed something similar to what we have for stack entry for fonts, in order
to map a "part" to multiple tokens, we update the `CLOSED_STACK_ENTRY` "token",
renaming it to better convey what it does, and renaming the `stackEntry` into
a more generic `data` property.

Differential Revision: https://phabricator.services.mozilla.com/D296786
2026-05-04 19:45:03 +00:00
Nicolas Chevobbe 300a572b06 Bug 2034517 - [devtools] Move handling of url() to OutputParser#onCloseParenthesis. r=devtools-reviewers,jdescottes.
We still want to share code between proper url() and UnquotedUrl/BadUrl, so we
transform `#appendURL` into `#createURLElements` that we can use in the new
function that handle closing the url function.
It makes us throw away the part that were computed before, but that's quite limited
and I'd rather pay this cost than having to maintain 2 different places to handle
URLs.

Differential Revision: https://phabricator.services.mozilla.com/D296127
2026-05-04 19:45:00 +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
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
Nicolas Chevobbe 1e2dc15e2d Bug 2034339 - [devtools] Add test for polygon() with spaces before closing parenthesis. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D296091
2026-04-29 06:25:14 +00:00
Nicolas Chevobbe 0b2559f350 Bug 2034338 - [devtools] Move onCloseParenthesisFor*Shape functions below OutputParser#onCloseParenthesisForBasicShape. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D296093
2026-04-29 06:25:12 +00:00