Commit Graph

28900 Commits

Author SHA1 Message Date
Nicolas Chevobbe
32d380ba6d Bug 1927063 - [devtools] Fix splitters in High Contrast Mode. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D226898
2024-10-29 14:42:37 +00:00
Nicolas Chevobbe
bfa233e5cd Bug 1916698 - [devtools] Fix Rules view filter matches in high Contrast Mode. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D226915
2024-10-29 14:37:58 +00:00
Nicolas Chevobbe
e0337b8ebf Bug 1916698 - [devtools] Use light-dark in rules.css. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D226914
2024-10-29 14:37:57 +00:00
Nicolas Chevobbe
de945f1f93 Bug 1920711 - [devtools] Fix markup mutation flash in High Contrast Mode. r=devtools-reviewers,ochameau.
Variables used for the background and text colors now have specific values in HCM.
We take this as an opportunity to add the force-color-on-flash class on closing tags,
as it was missing, which is pretty noticable in HCM.

Differential Revision: https://phabricator.services.mozilla.com/D226908
2024-10-29 14:37:57 +00:00
Hubert Boma Manilla
306e30d670 Bug 1844156 - [devtools] Wait for editor to complete update before setting a log point r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D227093
2024-10-29 08:30:09 +00:00
Hubert Boma Manilla
b7edb77774 Bug 1832017 - [devtools] Wait for updates to complete so popups do not lose focus mid assertion r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D227038
2024-10-29 08:29:19 +00:00
Abhijeet Chawla
3ce27dcb3e Bug 1810462 - Stop using UNSAFE_componentWillReceiveProps in devtools/client/inspector/animation/components/keyframes-graph/ColorPath.js r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D227068
2024-10-29 07:55:49 +00:00
Nicolas Chevobbe
3d39c3a123 Bug 1926852 - [devtools] Use text-decoration to indicate editable items in Rules view declaration. r=devtools-reviewers,bomsy.
Using text-decoration allows us to only do it on hover, as it doesn't
triggers a layout shift (contrary to bottom border). This way, it also
prevent always showing the border in High Contrast Mode, where transparent
color is ignored.

Differential Revision: https://phabricator.services.mozilla.com/D226780
2024-10-28 23:51:53 +00:00
Nicolas Chevobbe
8043462730 Bug 1926851 - [devtools] Handle dirty/new indicator on declaration in High Contrast Mode. r=devtools-reviewers,bomsy.
The indicator was always visible because transparent is forced
into an actual solid color in HCM, and the border is always set
to avoid layout shifts when a declaration becomes updated.
This is fixed by opting out of forced colors just for the declaration
top element, and re-setting it again for children.
The colors used for the indicator, --theme-highlight-green, is properly
set to a high contrast color in HCM.

Differential Revision: https://phabricator.services.mozilla.com/D226779
2024-10-28 23:51:53 +00:00
Nicolas Chevobbe
3a8a05a626 Bug 1926794 - [devtools] Use GrayText for unmatched selector, unused and overridden declarations in High Contrast Mode. r=devtools-reviewers,bomsy.
We're setting --theme-text-color-inactive to GrayText in HCM,
and we use this variable for styling unused/inactive items in
the Rules view, as we still want --theme-text-color-alt to have
the default canvas text in HCM.
In non-HCM, --theme-text-color-inactive was lacking contrast
against the usual background, so it's updated to have
sufficient contrast.

Differential Revision: https://phabricator.services.mozilla.com/D226746
2024-10-28 23:51:53 +00:00
Nicolas Chevobbe
f5512c338b Bug 1926794 - [devtools] Replace incorrect usage of --theme-text-color-inactive. r=devtools-reviewers,bomsy.
The variable was used in a few places for elements that are not inactive.
It was probably picked because of its lighter color, but we do have
specific variable for that (for text and icons), that are better suited
and already adapt to High Contrast Mode.
In one case, the rule using it wasn't even used, so I removed it completely.

Depends on D226789

Differential Revision: https://phabricator.services.mozilla.com/D226745
2024-10-28 23:51:52 +00:00
Nicolas Chevobbe
4934588e94 Bug 1917782 - [devtools] Handle accessibility tree unfocused selected node style in High Contrast Mode. r=accessibility-frontend-reviewers,devtools-reviewers,ochameau,morgan.
Differential Revision: https://phabricator.services.mozilla.com/D221802
2024-10-28 23:26:33 +00:00
Tooru Fujisawa
0f26de7ac2 Bug 1926803 - Do not use -no-remote when launching the Browser Toolbox process. r=devtools-reviewers,jdescottes
The -no-remote argument is removed by bug 1906260, and it's no-op.

Differential Revision: https://phabricator.services.mozilla.com/D226761
2024-10-28 23:23:02 +00:00
Joel Maher
e71bc78eb7 Bug 1844156 - disable browser_webconsole_location_logpoint_debugger_link.js on linux for high frequency failures. r=aryx,devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D227059
2024-10-28 19:01:08 +00:00
Nicolas Chevobbe
3ae8c8b848 Bug 1926878 - [devtools] Refactor Start Performance Analysis button style. r=devtools-reviewers,bomsy.
The button had a children where we were handling the background image,
which is not the pattern we use for other icons.
The element is removed ans we defined the background image on the
button before pseudo element (everything is then handled thanks to the devtools-button class).
This makes the button look correct in High Contrast Mode.

Differential Revision: https://phabricator.services.mozilla.com/D226789
2024-10-28 16:51:48 +00:00
Nicolas Chevobbe
e726b9da0f Bug 1916391 - [devtools] Display Netmonitor Statistics charts legend in High Contrast Mode. r=devtools-reviewers,bomsy.
The colors that are defined for the charts are specified in High Contrast Mode,
so we can display them in the legend just fine.
This requires making the legend element their own element, as we don't want to
opt out of forced colors for the cell content.

Differential Revision: https://phabricator.services.mozilla.com/D226788
2024-10-28 16:51:47 +00:00
Nicolas Chevobbe
9a094d1cbd Bug 1916391 - [devtools] Adapt netmonitor charts to High Contrast Mode. r=devtools-reviewers,bomsy.
Adapt text color, avoid tweaking opacity on hover.

Differential Revision: https://phabricator.services.mozilla.com/D226787
2024-10-28 16:51:47 +00:00
Nicolas Chevobbe
a532b5ae51 Bug 1916391 - [devtools] Use light-dark() in chart.css. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D226786
2024-10-28 16:51:46 +00:00
Sylvestre Ledru
82bb255dee Bug 1923649 - devtools doc: Fix the "Use a sourcemap" link to point to mdn r=devtools-reviewers,bomsy DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D227013
2024-10-28 12:19:06 +00:00
Nicolas Chevobbe
54b67b8b46 Bug 1843320 - [devtools] Turn WhyPaused into a live region and add paused location information r=nchevobbe,devtools-reviewers,accessibility-frontend-reviewers,nlapre
Differential Revision: https://phabricator.services.mozilla.com/D223928
2024-10-28 08:54:05 +00:00
Hubert Boma Manilla
3f83ac4d27 Bug 1927133 - [devtools] Use light-dark() in the debugger variable.css r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D226903
2024-10-28 08:54:04 +00:00
Emilio Cobos Álvarez
0ec8679a90 Bug 1927138 - Remove popover prefs. r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D226956
2024-10-27 08:47:00 +00:00
Nicolas Chevobbe
f4a363375d Bug 1926504 - [devtools] Update compatibility data for 133 cycle. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D226593
2024-10-24 06:35:32 +00:00
Abhijeet Chawla
d7f9b935c6 Bug 1810480 - Stop using UNSAFE_componentWillMount in devtools/client/accessibility/components/MainFrame.js r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D226141
2024-10-24 06:17:39 +00:00
Jan Varga
51b2ebc22d Bug 1925832 - LSNG: Avoid ensuring origin initialization for datastore preloading; r=dom-storage-reviewers,jari,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D226247
2024-10-24 06:01:17 +00:00
Hubert Boma Manilla
9377ba56ad Bug 1870062 - [devtools] Make the breakpoint items in the breakpoints panel accessible r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D226290
2024-10-23 23:22:10 +00:00
Nicolas Chevobbe
f55603feec Bug 1922190 - [devtools] Avoid forcing layout when creating ViewportSizeOnResizeHighlighter. r=devtools-reviewers,bomsy.
The highlighter is created when the inspector
is initialized and we were forcing a layout update
since we're not waiting for the page to load.
This was displaying a warning message in the console
that could confuse end users, and worse, trigger
animations when people didn't expected them to be.

To fix this, we add a new option in CanvasFrameAnonymousContentHelper
to control the layout update.

Differential Revision: https://phabricator.services.mozilla.com/D226320
2024-10-23 13:28:29 +00:00
Nicolas Chevobbe
d5f2971095 Bug 1926495 - [devtools] Fix console architecture chart. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D226591
2024-10-23 09:46:16 +00:00
Abhijeet Chawla
9b21ffe9d0 Bug 1810485 - Stop using UNSAFE_componentWillMount in devtools/client/aboutdebugging/src/components/connect/ConnectPage.js r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D226174
2024-10-22 14:45:16 +00:00
Abhijeet Chawla
a34959c616 Bug 1810482 - Stop using UNSAFE_componentWillReceiveProps in devtools/client/accessibility/Acomponents/Accessible.js r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D226136
2024-10-22 14:30:23 +00:00
Abhijeet Chawla
62d8694582 Bug 1810483 - Stop using UNSAFE_componentWillMount in devtools/client/accessibility/components/Accessible.js r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D226120
2024-10-22 14:22:10 +00:00
Nicolas Chevobbe
e042ccc1f2 Bug 1926075 - [devtools] Don't repeat Symbols with different names in console. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D226438
2024-10-22 14:11:06 +00:00
Hubert Boma Manilla
edd71feab6 Bug 1925664 - [devtools] Wait for cm6 load to complete, so tokens are all rendered r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D226474
2024-10-22 13:00:35 +00:00
Oliver Old
98599e718f Bug 1776893 - Replace do_CreateInstance for nsIFile with NS_NewLocalFile. r=xpcom-reviewers,profiler-reviewers,emilio,aabh
Differential Revision: https://phabricator.services.mozilla.com/D226255
2024-10-22 09:45:32 +00:00
Paul Zuehlcke
6384db62b8 Bug 1911120 - Add a learn more link to the BTP tracker classified web console message. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D226356
2024-10-22 09:28:49 +00:00
Nicolas Chevobbe
3dccde9034 Bug 1924882 - [devtools] Use default color in getThemeColorAsRgba when getCssVariableColor returns null. r=devtools-reviewers,bomsy.
This shouldn't happen but we got report that it did.
Let's hotfix this first so we avoid crashes, and we'll
come up with a proper fix later.

Differential Revision: https://phabricator.services.mozilla.com/D226316
2024-10-22 08:45:01 +00:00
Abhijeet Chawla
ce1febc49c Bug 1855168 - Use MermaidJS to replace ASCII based Console architecture diagram r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D224603
2024-10-22 08:29:09 +00:00
Nicolas Chevobbe
94227ce9f8 Bug 1907049 - [devtools] Remove devtools.inspector.rule-view.starting-style pref. r=devtools-reviewers,jdescottes.
We didn't get any report of issues with starting styles
in the Rules view, so we can remove the pref.

Differential Revision: https://phabricator.services.mozilla.com/D226331
2024-10-22 04:58:34 +00:00
Nicolas Chevobbe
c6e4e333f1 Bug 1925913 - [devtools] Fix new attribute button in markup view. r=devtools-reviewers,jdescottes.
The button could cover previous element (the tagname or an attribute value),
taking precedence over the clicked element.
To avoid this, we move the button hover the > character.

Differential Revision: https://phabricator.services.mozilla.com/D226278
2024-10-21 09:41:11 +00:00
Abhijeet Chawla
3f4b450c69 Bug 1810429 - removing UNSAFE_componentWillReceiveProps in devtools/client/shared/components/splitter/SplitBox.js r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D225054
2024-10-21 08:14:26 +00:00
Abhijeet Chawla
6c4d716ba4 Bug 1810486 - Stop using UNSAFE_componentWillMount in devtools/client/aboutdebugging/src/components/RuntimePage.js r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D226113
2024-10-18 14:18:28 +00:00
Sandor Molnar
d7db4b4a42 Bug 1767691 - Disable browser_toolbox_rule_view_reload.js on linux and mac for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D226083
2024-10-18 01:30:33 +00:00
Alexandre Poirot
70aa387621 Bug 1911054 - [devtools] Make getSelectedFrame selector return the frame for the current thread by default. r=devtools-reviewers,bomsy
This avoids having to pass the current thread from most callsites.
Even the leftovers, still passing a custom thread argument,
should probably be asserting that they are still relevant,
and be working against the currently selected thread.

Differential Revision: https://phabricator.services.mozilla.com/D218295
2024-10-17 22:58:07 +00:00
Alexandre Poirot
4833670a2d Bug 1911054 - [devtools] Only consider inline previews if it matches the currently selected source. r=devtools-reviewers,bomsy
We were doing the check in the mapStateToProps, but only for pausing, not for tracing.
Let's do that consistantly from the selector.

Differential Revision: https://phabricator.services.mozilla.com/D218294
2024-10-17 22:58:07 +00:00
Alexandre Poirot
ebc4ee4de8 Bug 1911054 - [devtools] Assume fetchScopes, generateInlinePreview and getInlinePreviews to always work against the currently selected frame. r=devtools-reviewers,bomsy
This help stop passing the selected frame as argument and ensure we never try to fetch data for an outdated frame.
While doing this, I'm adding assertion after each async call to stop execution if we resumed or moved to another frame.

Differential Revision: https://phabricator.services.mozilla.com/D218293
2024-10-17 22:58:06 +00:00
Julian Descottes
e83960d31e Bug 1923648 - [devtools] Fix logging cached service worker messages in about:debugging r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D225814
2024-10-17 18:52:40 +00:00
Hubert Boma Manilla
c62c89617e Bug 1924829 - [devtools] Fix intermittent for browser_dbg-keyboard-navigation.js r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D225759
2024-10-17 13:31:58 +00:00
Alexandre Poirot
ab3f8953cb Bug 1923903 - [devtools] Instantiate only one object actor per JS object in the JS Tracer. r=devtools-reviewers,bomsy
This will allow to compare Object Actor's IDs in order to track any JS Object
recorded in the trace.

Differential Revision: https://phabricator.services.mozilla.com/D223782
2024-10-17 12:24:12 +00:00
Alexandre Poirot
b3de682266 Bug 1923903 - [devtools] Ensure updating object front's form when re-using the same front instance. r=devtools-reviewers,bomsy
When we communicate a previously notified object actor form,
which was notified through a prevent RDP event or method call,
we passed its actor's form (a.k.a. "grip").
This contains a snapshot of the object in order to be able to display a preview
of it at the time the object was processed in the backend.

Now, when we manipulate the same JS value in the backend,
we may notify about the same object actor instance, but the actor's form ("grip")
will be updated to match the current state of the object.

In the frontend, we need to process this new form/grip in the Object Actor front,
so that the previews are correctly updated over time.

Differential Revision: https://phabricator.services.mozilla.com/D225236
2024-10-17 12:24:12 +00:00
Alexandre Poirot
54304e6123 Bug 1923903 - [devtools] Use ObjectActorPool to instantiate and collect all Object Actors. r=devtools-reviewers,bomsy
This dedicated pool class shared by all the actors instantiating Object Actors
(console, thread and tracer actors) is going to later help reuse the same
WeakMap logic to instantiate only one actor per unique JS value.

I also merged console and target actor to use the same pool
as they basically have the same lifecycle. This simplify lookups
by Actor IDs done for selected object actor or console table objects.

Differential Revision: https://phabricator.services.mozilla.com/D225235
2024-10-17 12:24:11 +00:00