Commit Graph
869 Commits
Author SHA1 Message Date
Nicolas Chevobbe 7b550220da Bug 2043977 - [devtools] Add StyleRuleActor.getCssExplainersData. r=devtools-reviewers,devtools-backward-compat-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D303983
2026-06-12 07:25:31 +00:00
canalun 88326e4dd9 Bug 1655941 - Add storage.sync support to the extension storage inspector. r=nchevobbe,devtools-backward-compat-reviewers,devtools-reviewers
Display storage.sync items alongside storage.local items in the extension
storage inspector.

Because storage.local and storage.sync can each contain an item with the same
name, the item name alone is no longer unique. Use a compound uniqueKey
consisting of the item name and storage area to disambiguate them within the
same table. This approach follows the one used by the cookies storage actor.

The Storage Inspector client automatically uses the first field returned by
getFields() as the unique identifier for table rows, so exposing the compound
uniqueKey there lets existing interfaces such as getValuesForHost(),
editItem(), and removeItem() receive it without changes to their external
signatures.

Differential Revision: https://phabricator.services.mozilla.com/D304326
2026-06-11 14:18:50 +00:00
Alexandre Poirot 5c80ff3304 Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy,nchevobbe
This allows opening local files from https via DevTools.

Differential Revision: https://phabricator.services.mozilla.com/D294192
2026-06-10 12:46:16 +00:00
Alexandru Marc 85aff4e02f Revert "Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy,nchevobbe" for causing Android build bustages
This reverts commit f2d8553f79.

Revert "Bug 2031714 - [devtools] Expose a flag on the TargetFront to know if the page is an error page. r=devtools-reviewers,nchevobbe"

This reverts commit 0ef861f993.
2026-06-10 01:13:30 +00:00
Alexandre Poirot f2d8553f79 Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy,nchevobbe
This allows opening local files from https via DevTools.

Differential Revision: https://phabricator.services.mozilla.com/D294192
2026-06-09 20:35:02 +00:00
agoloman 02843a95cb Revert "Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy" for causing bc failures @browser_devtools.js.
This reverts commit 13896a724c.

Revert "Bug 2031714 - [devtools] Expose a flag on the TargetFront to know if the page is an error page. r=devtools-reviewers,nchevobbe"

This reverts commit d6ca9ef038.
2026-06-04 19:14:21 +00:00
Alexandre Poirot 13896a724c Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy
This allows opening local files from https via DevTools.

Differential Revision: https://phabricator.services.mozilla.com/D294192
2026-06-04 10:28:10 +00:00
Norisz Fay 1a8f4c9241 Revert "Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy" for causing dt failure @ browser_networkobserver_localMode.js
This reverts commit 78970467d8.

Revert "Bug 2031714 - [devtools] Expose a flag on the TargetFront to know if the page is an error page. r=devtools-reviewers,nchevobbe"

This reverts commit 6b862813ef.
2026-06-03 13:57:44 +00:00
Alexandre Poirot 78970467d8 Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy
This allows opening local files from https via DevTools.

Differential Revision: https://phabricator.services.mozilla.com/D294192
2026-06-03 13:02:35 +00:00
agoloman d69d1d8e0e Revert "Bug 2031717, Bug 2031714 - [devtools] Expose local mode settings in DevTools options panel. r=devtools-reviewers,fluent-reviewers,bolsson,nchevobbe" for causing bc failures @browser_misused_characters_in_strings.js.
This reverts commit b7f48700d7.

Revert "Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy"

This reverts commit 0f1b6c66ab.

Revert "Bug 2031714 - [devtools] Expose a flag on the TargetFront to know if the page is an error page. r=devtools-reviewers,nchevobbe"

This reverts commit 4cbb3ac689.
2026-06-02 09:35:20 +00:00
Alexandre Poirot 0f1b6c66ab Bug 2031714 - [devtools] Implement "Local Mode" backend. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy
This allows opening local files from https via DevTools.

Differential Revision: https://phabricator.services.mozilla.com/D294192
2026-06-02 08:42:02 +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 336b659dbd Bug 2040393 - [devtools] Remove 151 backward compatibility code for the animation panel. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D301458
2026-05-21 08:45:00 +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 7859f36bde Bug 1149501 - [devtools] Rename animationPlayerSpec to animationSpec. r=devtools-reviewers,devtools-backward-compat-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D292698
2026-04-10 08:24:56 +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 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 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
Valentin Gosu e0eb586a13 Bug 2020946 - Remove isRacing from devtools code r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D286012
2026-03-26 08:52:25 +00:00
Nicolas Chevobbe fe0f71b398 Bug 1903278 - [devtools] Add anchors autocomplete for position-anchor. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D287920
2026-03-20 10:25:03 +00:00
Nicolas Chevobbe 7680f67e98 Bug 1962343 - [devtools] Add <global> node in ObjectInspector. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D254223
2026-03-19 15:18:42 +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
Alexandre Poirot 8f7e2d5a2d Bug 2016577 - [devtools] Clarify appliedstyle objects. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Protocol.js doesn't enforce that packet objects **only** contains
attributes described in types. So that the "appliedstyle"
style was quite outdated.

This type is returned by `PageStyleActor.getApplied` and
is a critical part of Rule View updates as it convays
all the information about each applied rule for a given DOM Element.

But the overall management and definition of these objects
was diffused into manually crafted object of many shapes.
Unify all of them by always creating each of them through the
`#getRuleItem` method.

Also tweak a few comments that could be clearer.

Differential Revision: https://phabricator.services.mozilla.com/D283167
2026-02-18 19:20:39 +00:00
Mark Banner fd62657728 Bug 2004680 - Fix ESLint rule jsdoc/check-tag-names issues in devtools. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D275754
2025-12-22 12:41:26 +00:00
Andrea Marchesini 23f4d7c658 Bug 1986320 - Implement an add-on block URL-Classifier feature - part 3 - devtool support, r=devtools-reviewers,dimi,devtools-backward-compat-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D263364
2025-12-04 01:26:51 +00:00
Cristian Tuns c99c271730 Revert "Bug 1986320: apply code formatting via Lando" for causing lint failures in browser_ext_urlclassifier.js
This reverts commit 8c2c577a03.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 6 - Mobile r=geckoview-reviewers,android-reviewers,geckoview-api-reviewers,tcampbell,ohall"

This reverts commit 7b0c7db7c3.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 5 - Block top-level documents when loaded by add-ons, r=extension-reviewers,dimi,fluent-reviewers,robwu,bolsson,android-reviewers,android-l10n-reviewers,delphine,tcampbell"

This reverts commit 9a058ba0d5.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 4 - Expose the URLClassifier addon feature to non-recommended addons only, r=zombie"

This reverts commit 41e8a464d9.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 3 - devtool support, r=devtools-reviewers,dimi,devtools-backward-compat-reviewers,bomsy"

This reverts commit c0f866931b.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 2 - telemetry, r=dimi,extension-reviewers,robwu"

This reverts commit 1bdba2f426.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 1, r=dimi,geckoview-reviewers,extension-reviewers,tcampbell,robwu"

This reverts commit f1a3613f44.
2025-12-03 19:15:17 +00:00
Andrea Marchesini c0f866931b Bug 1986320 - Implement an add-on block URL-Classifier feature - part 3 - devtool support, r=devtools-reviewers,dimi,devtools-backward-compat-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D263364
2025-12-03 18:47:30 +00:00
iulian moraru a5862a7e70 Revert "Bug 1999177 - Support cursor scroll in the composable toolbar r=android-reviewers,moyin" for causing linting failures on browser_ext_urlclassifier.js.
This reverts commit ae35529fab.

Revert "Bug 1986320: apply code formatting via Lando"

This reverts commit 768f3614ff.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 5 - Block top-level documents when loaded by add-ons, r=extension-reviewers,dimi,fluent-reviewers,robwu,bolsson,android-reviewers,android-l10n-reviewers,delphine,tcampbell"

This reverts commit 5f2e690d2b.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 4 - Expose the URLClassifier addon feature to non-recommended addons only, r=zombie"

This reverts commit 1e7b1753d4.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 3 - devtool support, r=devtools-reviewers,dimi,devtools-backward-compat-reviewers,bomsy"

This reverts commit 928a253e9e.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 2 - telemetry, r=dimi,extension-reviewers,robwu"

This reverts commit 2a13eb6ec3.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 1, r=dimi,geckoview-reviewers,extension-reviewers,tcampbell,robwu"

This reverts commit 1ef88130d9.
2025-12-03 10:26:32 +00:00
Andrea Marchesini 928a253e9e Bug 1986320 - Implement an add-on block URL-Classifier feature - part 3 - devtool support, r=devtools-reviewers,dimi,devtools-backward-compat-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D263364
2025-12-03 09:47:52 +00:00
Nicolas Chevobbe 0c75044fa7 Bug 1895196 - [devtools] Add anchor badge in markup view for node with valid anchor-name. r=devtools-reviewers,devtools-backward-compat-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D274552
2025-12-03 08:44:25 +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 5024760ece Bug 1990474 - [devtools] Remove ChangesActor. r=devtools-reviewers,devtools-backward-compat-reviewers,ochameau.
It's not used anymore since we switched to CSS_CHANGE resources.

Differential Revision: https://phabricator.services.mozilla.com/D265789
2025-11-13 15:22:04 +00:00
Andrea Marchesini c646e9ada6 Bug 1995748 - Add cookie update time column in the storage devtool view, r=devtools-reviewers,fluent-reviewers,devtools-backward-compat-reviewers,nchevobbe,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D270830
2025-11-01 10:05:14 +00:00
Nicolas Chevobbe f37ae3280a Bug 1994758 - [devtools] Retrieve stylesheet indentation directly from the server. r=devtools-reviewers,devtools-backward-compat-reviewers,ochameau.
To detect the indentation of a given stylesheet when adding a property to an
empty rule, we would retrieve the whole stylesheet text on the client and then
run some heuristics.
This is quite costly, stylesheet can be quite large and sending all that text
from the server to the client isn't ideal.
This patch  adds a `getStyleSheetIndentation` RDP method to the `StyleSheetsActor`,
so we're only getting what we want.
We also fix the backward compat case when adding property to an empty rule in
a large stylesheet, by taking the initial text from the long string front we
get in such case.

Differential Revision: https://phabricator.services.mozilla.com/D269349
2025-10-21 13:22:35 +00:00
Henrik Skupin e70019a3f5 Bug 1991642 - [DevTools Release Tasks - Cycle 145] Remove backward compatibility code. r=devtools-backward-compat-reviewers,devtools-reviewers,jdescottes,julienw
Differential Revision: https://phabricator.services.mozilla.com/D266806
2025-10-02 06:15:49 +00:00
Alexandra Borovova 1df91fa83c Bug 1974167 - [devtools] Use "setOrientationOverride" method instead "setRDMPaneOrientation" for screen orientation emulation. r=devtools-reviewers,jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D263098
2025-09-05 12:01:51 +00:00
Alexandra Borovova 6c6b19819c Bug 1981194 - [devtools] Extend backward compat for useBulkTransferForPerformanceProfile trait until cycle 143. r=devtools-reviewers,jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D260164
2025-08-07 10:24:45 +00:00
Nicolas Chevobbe ff9a744b1a Bug 1212289 - [devtools] Display attribute style in Computed panel. r=devtools-reviewers,devtools-backward-compat-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D257822
2025-07-22 09:41:35 +00:00
Alex Jakobi fcffc3f33f Bug 1970616 - Dynamic toolbar in RDM reacts to events from touch simulator r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D248611
2025-06-16 18:07:30 +00:00
Nicolas Chevobbe 6fb5debd79 Bug 1967707 - [devtools] Display error message when submitting invalid cookies. r=devtools-reviewers,fluent-reviewers,devtools-backward-compat-reviewers,jdescottes,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D253128
2025-06-15 02:13:42 +00:00
Serah Nderi 4bd88f6d90 Bug 1602351 - Allow to print the stacktrace in logpoint; r=nchevobbe,devtools-reviewers,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D243803
2025-06-12 12:19:02 +00:00
Julien Wajsberg 2417113533 Bug 1581963 - [devtools] Implement a new remote function to gather the profile data, using the bulk api r=devtools-backward-compat-reviewers,profiler-reviewers,ochameau,mstange
The devtools protocol's bulk API is much more efficient, as we're
transfering the protocol data in a binary form instead of serializing it
using the devtools protocol.
In addition to that, the profile data is now gzipped before sending it.

Differential Revision: https://phabricator.services.mozilla.com/D244341
2025-05-22 18:02:25 +00:00
Alexandre Poirot db7a4f65cc Bug 949595 - [devtools] Convert the memory actor to use protocol.js bulk codepath. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D245923
2025-05-16 00:38:50 +00:00
Alexandre Poirot d415aca971 Bug 1963915 - [devtools] Navigate back and forward from the parent process. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D249595
2025-05-16 00:37:53 +00:00
Alexandre Poirot 6fad3a13b4 Bug 1937738 - [devtools] Expose a new navigateTo method on Tab Descriptor. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
This should help VS Code load the page to debug.

Differential Revision: https://phabricator.services.mozilla.com/D232328
2025-05-16 00:37:49 +00:00
Alexandre Poirot c684086c38 Bug 1944109 - [devtools] Allow debugging scripts via their WindowGlobal target when reusing the browser toolbox codepath. r=devtools-reviewers,devtools-backward-compat-reviewers,hbenl,bomsy
The Browser Toolbox currently debug all scripts in a given content process
via the related Content Process Target actor.
Because of this, we have to ignore the WindowGlobal Target actors
for anything related to Sources, breakpoints,...

But VS.Code would benefit from reusing the Browser Toolbox codepath,
while never using the Content Process targets (which have no real meaning for the user in VS.code),
and instead debug the sources via the WindowGlobal Target actors.

Introduce a new configuration to be able to distinguish the two codepaths.

Differential Revision: https://phabricator.services.mozilla.com/D235681
2025-02-27 09:56:47 +00:00
Hubert Boma Manilla c0898915c3 Bug 1932069 - [devtools] Show early hint headers details r=devtools-backward-compat-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D235567
2025-02-11 19:48:00 +00:00
Alexandre Poirot 8417905eb2 Bug 1413872 - [devtools] Spawn dedicated target actors for Web Extension Content Scripts. r=devtools-backward-compat-reviewers,devtools-reviewers,rpl,nchevobbe
This should ultimately allow to pick up content script as an evaluation context in the console.

Differential Revision: https://phabricator.services.mozilla.com/D221035
2024-12-10 18:30:57 +00:00