Commit Graph
1179 Commits
Author SHA1 Message Date
Julian Descottes c6e7ad0994 Bug 1913529 - [devtools] Fix propTypes warnings when using the debugger r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D219367
2024-09-02 10:05:45 +00:00
Alexandre Poirot 4c946b19bd Bug 1885054 - [devtools] Display tracer data in a debugger sidebar. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204446
2024-07-22 18:49:43 +00:00
Sandor Molnar 0e45f1b380 Backed out changeset b6571a4222fb (bug 1885054) for causing bug 1909068 CLOSED TREE 2024-07-22 18:24:44 +03:00
Masayuki Nakano f27ebf7d6c Bug 1907490 - Make Draggable listen to pointerdown to capture the pointer r=nchevobbe,devtools-reviewers
`MouseEvent.pointerId` is `undefined` so that `setPointerCapture(undefined)`
means `setPointerCapture(0)` and it captures both click of mouse and first
touch of touch input devices.  It needs to listen to `pointerdown` event to
get the correct `pointerId` value.  Then, it can use only `pointerdown` and
`pointerup` because they are fired before `mousedown` and `mouseup`.
Additionally, it handles a drag while a mouse button is pressed.  Therefore,
it can ignore pointer events which are caused by other devices.

Although it's not required explicitly to release the capture when the pointer
is up, it needs to release capturing the pointer if `Escape` is pressed.
Therefore, this patch keeps the explicit release call.

Depends on D217216

Differential Revision: https://phabricator.services.mozilla.com/D217217
2024-07-22 08:05:35 +00:00
Alexandre Poirot c2af106622 Bug 1885054 - [devtools] Display tracer data in a debugger sidebar. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204446
2024-07-18 09:02:06 +00:00
Alexandre Poirot b76baed99c Bug 1906125 - [devtools] Implement memory panel odd background in CSS instead of JS. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D216061
2024-07-10 21:25:48 +00:00
Alexandre Poirot 0a42a5eddb Bug 1906125 - [devtools] Use default Tree stylesheets for the memory panel. r=devtools-reviewers,nchevobbe
We could also drop the custom "focused" classname and instead rely on one being put by VirtualizedTree on tree-node
(like Tree is doing).

Differential Revision: https://phabricator.services.mozilla.com/D216025
2024-07-10 21:25:47 +00:00
Alexandre Poirot 27ee6fdd0f Bug 1906125 - [devtools] Unify VirtualizedTree and Tree CSS and move SourcesTree specifics to Tree. r=devtools-reviewers,nchevobbe
- make them both use .theme-twisty to show an arrow icon.
- move some specifics stylings of SourcesTree to the base class.
- make SourcesTree use the arrow React component provided by Tree class.
- use .theme-twisty instead of .arrow (which already implements rotation and colors on expand). But it uses "open" instead of "expanded" classname.
  (VirtualizedTree was already using theme-twisty)

This impacts the Source Tree, ObjectInspector (console, debugger), Watch Expressions, memory panel (dominator view).

Differential Revision: https://phabricator.services.mozilla.com/D215637
2024-07-10 21:25:46 +00:00
Nicolas Chevobbe d69ea51f10 Bug 1843325 - [devtools] Keep Scopes and Project Search panel focused node when tree is blurred. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D213954
2024-06-20 09:37:15 +00:00
Nicolas Chevobbe 76ed337a67 Bug 1844054 - [devtools] Rename --frame-link-source and move it to variables.css . r=devtools-reviewers,ochameau.
We want to use the color for stylesheet location in the rules view, which doesn't
load component-frame.css, so let's move the custom property to variables.css, and
rename it so it's a bit more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D213244
2024-06-18 11:30:39 +00:00
Nicolas Chevobbe e249389848 Bug 1844087 - [devtools] Make SearchBox input described by summary element. r=devtools-reviewers,accessibility-frontend-reviewers,ochameau,ayeddi.
This should allow the number of hidden messages to be notified to
screen reader users.
We update the Console FilterBar behavior to always show the "X hidden" message
when the input is focused, so screen reader can also pick up when no messages
are hidden.

Differential Revision: https://phabricator.services.mozilla.com/D213181
2024-06-17 06:31:26 +00:00
James Teh aa6433b484 Bug 1898661: In the Dev Tools tree LabelCell and TreeCell components, don't aria-labelledby the span with the column header. r=devtools-reviewers,nchevobbe
Now that the a11y engine correctly traverses aria-labelledby during name computation per the spec, the aria-labelledby overrides the content of the cell when computing the name for the tree item.
Strictly speaking, putting aria-labelledby on a span is a spec violation these days anyway.

Differential Revision: https://phabricator.services.mozilla.com/D211503
2024-05-27 06:40:35 +00:00
Nicolas Chevobbe badb49de19 Bug 1897469 - [devtools] Fix focus-indicator glitch in inspector sidebar tabs. r=jdescottes,devtools-reviewers.
We make the focused tab appear in fronts of the others,
so the box-shadow of the focus-indicator applies properly
on each side.
We also hide the small line on active tab when it is also
focused, so we avoid it to overlap with the focus-indicator
outline.

Differential Revision: https://phabricator.services.mozilla.com/D210818
2024-05-17 16:10:18 +00:00
Henrik Skupin a05a1f4dca Bug 1892248 - [devtools] Remove backward compatibility code for Firefox 127. r=devtools-backward-compat-reviewers,devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D209198
2024-05-02 11:48:36 +00:00
Alexandre Poirot d7f3cddc7f Bug 1888171 - [devtools] Convert Browser Loader to ESM. r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D205867
2024-03-28 15:15:24 +00:00
Emily McMinn d4f51984fa Bug 1724300 - Remove What's New Panel, ToolbarPanelHub components & related tests & references r=desktop-theme-reviewers,omc-reviewers,aminomancer,pdahiya,emilio,devtools-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201867
2024-03-21 22:05:28 +00:00
Nicolas Chevobbe d907b26b91 Bug 1862896 - [devtools] Preview support for CustomStateSet. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D204597
2024-03-15 06:05:17 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Sean Feng 58b1092a75 Bug 1483828 - [Part 3] Update the expected focusing behavior for some devtools tests r=smaug,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D202505
2024-03-04 14:16:31 +00:00
Sean Feng d7254ccf1b Bug 1483828 - [Part 1] Disallow <tab> to move focus to root element r=smaug
Brings us on-par with Chrome and Safari

Differential Revision: https://phabricator.services.mozilla.com/D198436
2024-03-04 14:16:30 +00:00
Alexandre Poirot 4481e217ee Bug 1880809 - [devtools] Compute each source displayed name only once. r=devtools-reviewers,bomsy
We were calling this getFilename many times from many callsites.
Cache it once for all on the source object.

Also clarify what we typically display in the UI:
  * we display internal ID for source without a URL,
  * we strip query/search parameters,
  * we decode the URI string for special characters,
  * index files, i.e. files loaded without a file name, are named "(index)",
  * we omit the internal ":formatted" URL prefix used for pretty printed sources.

Differential Revision: https://phabricator.services.mozilla.com/D202442
2024-03-01 00:01:43 +00:00
Nicolas Chevobbe 05250a52d9 Bug 1879806 - [devtools] Only apply unicode-bidi: isolate to relevant elements. r=devtools-reviewers,ochameau.
The CSS property was applied broadly on all element with
a objectBox parent, which was bad for performance.
We now use `Services.intl.stringHasRTLChars` to detect if the string we're going
to render has some RTL chars, and in such case, we add a `has-rtl-char` class
to the element so we can target it in CSS.

Differential Revision: https://phabricator.services.mozilla.com/D202200
2024-02-23 18:18:42 +00:00
Sandor Molnar ee34402b52 Backed out 2 changesets (bug 1881078, bug 1879806) for causing dt failures @ devtools/client/jsonview/test/browser_jsonview_copy_json.js CLOSED TREE
Backed out changeset 3475061cb5df (bug 1879806)
Backed out changeset c4dcd746b1b5 (bug 1881078)
2024-02-23 18:26:48 +02:00
Nicolas Chevobbe 3a2b43ab8f Bug 1879806 - [devtools] Only apply unicode-bidi: isolate to relevant elements. r=devtools-reviewers,ochameau.
The CSS property was applied broadly on all element with
a objectBox parent, which was bad for performance.
We now use `Services.intl.stringHasRTLChars` to detect if the string we're going
to render has some RTL chars, and in such case, we add a `has-rtl-char` class
to the element so we can target it in CSS.

Differential Revision: https://phabricator.services.mozilla.com/D202200
2024-02-23 12:03:41 +00:00
Alexandre Poirot c9c5297677 Bug 1853899 - [devtools] Introduce a new Menu Button dedicated to source maps. r=devtools-reviewers,nchevobbe
It allows
* toggling Source Map support entirely
* open the source map URL (when a bundle file is currently selected)
* open the mapped source (original or bundle)
* toggle the "open original source by default" setting
* show source map status (source map error, is it original or bundle file, is this a regular source?)

Differential Revision: https://phabricator.services.mozilla.com/D187577
2024-02-20 11:14:33 +00:00
Narcis Beleuzu e2b42b8b1d Backed out changeset 749f10073ff4 (bug 1853899) for dt failure on browser_dbg-sourcemaps-bogus.js CLOSED TREE 2024-02-09 03:56:22 +02:00
Alexandre Poirot 658bd889e8 Bug 1853899 - [devtools] Introduce a new Menu Button dedicated to source maps. r=devtools-reviewers,nchevobbe
It allows
* toggling Source Map support entirely
* open the source map URL (when a bundle file is currently selected)
* open the mapped source (original or bundle)
* toggle the "open original source by default" setting
* show source map status (source map error, is it original or bundle file, is this a regular source?)

Differential Revision: https://phabricator.services.mozilla.com/D187577
2024-02-08 16:43:59 +00:00
Julian Descottes be83677dbe Bug 1874386 - [devtools] Force __default__ format for bugzilla link in AppErrorBoundary r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D199496
2024-01-24 18:26:35 +00:00
Nicolas Chevobbe 11771bdcb9 Bug 1867726 - [devtools] Handle cross-process iframe content window in previewers. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D196289
2023-12-18 14:36:50 +00:00
Joel Maher 4072dc32c4 Bug 1869590 - Batch 19 - convert remaining mochitest ini to toml. r=aryx,necko-reviewers,devtools-reviewers,dom-storage-reviewers,asuth,valentin,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D196203
2023-12-13 15:44:04 +00:00
Nicolas Chevobbe 7ad78b458f Bug 1844088 - [devtools] Add title on Tree toggle button. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D194771
2023-11-27 18:38:23 +00:00
Nicolas Chevobbe 363b63120c Bug 1866087 - [devtools] Add focus indicator on Tabs component. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D194390
2023-11-23 06:27:44 +00:00
Hubert Boma Manilla 27535ff27d Bug 1864905 - [devtools] Use strict inequality for comparing member props r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D193785
2023-11-16 16:57:19 +00:00
Hubert Boma Manilla bb1cb064d0 Bug 1857244 - [devtools] Reset netmonitor offline when throttling mode is changed r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D190665
2023-11-16 11:40:14 +00:00
Nicolas Chevobbe 27a299dc67 Bug 1855200 - [devtools] Fix and harmonize focus indicator across the toolbox. r=devtools-reviewers,ochameau.
The new focus indicator is bigger and has a better contrast, making it more accessible
than the thin dotted line we had previously.
It also includes a white box-shadow so even on our blue "active/selected" backgrounds,
the indicator is still visible (e.g. in the markup view, for a selected node, with
focus on badges / text inputs).

Finally, I tried to go over the elements of the shared components and most used
panels to adjust the outline offset when it was not visible/clipped, or when
it could be conflated with the focused element border/background.

Differential Revision: https://phabricator.services.mozilla.com/D192185
2023-11-03 10:05:53 +00:00
Nicolas Chevobbe c97c54ec41 Bug 1860983 - [devtools] Better contrast for AppErrorBoundary stacktrace in dark mode. r=devtools-reviewers,bomsy.
This gives us a 6.7:1 (AA) ratio.
Also bump font size on different element ot make the panel more legible.

Differential Revision: https://phabricator.services.mozilla.com/D191864
2023-10-26 12:22:54 +00:00
Nicolas Chevobbe dc41c8c34b Bug 1844092 - [devtools] Make Stacktrace frame location keyboard accessible. r=devtools-reviewers,bomsy.
The frame elements already had the correct roles assigned,
but this was made completely useless because we had a
`display: contents` on them, which strips any accessibility role.
This was done for layout purpose that we now can do with
subgrids, so we update the component's CSS.
We also update the markup so copying stacktrace still works as expected.
A webconsole test is added to ensure those stactkrace frames
can be navigated with the keyboard.

Differential Revision: https://phabricator.services.mozilla.com/D190594
2023-10-23 09:19:22 +00:00
Norisz Fay a16b53104b Backed out changeset 1f3e7fe297e2 (bug 1844092) for causing dt failures on browser_webconsole_context_menu_copy_message_with_framework_stacktrace.js 2023-10-12 17:53:32 +03:00
Nicolas Chevobbe ea24c20e95 Bug 1844092 - [devtools] Make Stacktrace frame location keyboard accessible. r=devtools-reviewers,bomsy.
The frame elements already had the correct roles assigned,
but this was made completely useless because we had a
display: contents on them, which strips any accessibility role.
This was done for layout purpose that we now can do with
subgrids, so we update the component's CSS.
A webconsole test is added to ensure those stactkrace frames
can be navigated with the keyboard.

Differential Revision: https://phabricator.services.mozilla.com/D190594
2023-10-12 12:05:32 +00:00
Alexandre Poirot 5f38dd0029 Bug 1822303 - [devtools] Remove unused Tree.itemHeight attribute. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D190077
2023-10-12 10:07:30 +00:00
Hubert Boma Manilla 3b238af334 Bug 1857977 - [devtools] Remove backward compatibility code related to Highlight Registries r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D190499
2023-10-10 09:58:23 +00:00
dylan 44ff1ada13 Bug 1156659 - Added offline network throttling to devtools. r=devtools-reviewers,bomsy,devtools-backward-compat-reviewers
Depends on D187704

Differential Revision: https://phabricator.services.mozilla.com/D187705
2023-10-04 19:42:57 +00:00
Norisz Fay 6ae0ebd216 Backed out 2 changesets (bug 1156659) for causing dt failures on browser_net_throttle.js CLOSED TREE
Backed out changeset af64e5a0109a (bug 1156659)
Backed out changeset 7e9b86bce76b (bug 1156659)
2023-10-02 16:11:21 +03:00
dylan b4d73f6806 Bug 1156659 - Added offline network throttling to devtools. r=devtools-reviewers,bomsy,devtools-backward-compat-reviewers
Depends on D187704

Differential Revision: https://phabricator.services.mozilla.com/D187705
2023-10-02 04:13:43 +00:00
Nicolas Chevobbe 9e43bb92eb Bug 1844086 - [devtools] Add title to SearchBox clear input button. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D189194
2023-09-27 07:53:36 +00:00
Sandor Molnar b16754676a Backed out 2 changesets (bug 1156659) for causing multiple dt failures on browser_jsterm_evaluation_context_selector_targets_update/browser_jsterm_file_load_save_keyboard_shortcut/browser_jsterm_focus_reload/etc CLOSED TREE
Backed out changeset 72676017aaf3 (bug 1156659)
Backed out changeset c5e205051938 (bug 1156659)
2023-09-26 19:54:00 +03:00
dylan 542645bfef Bug 1156659 - Added offline network throttling to devtools. r=devtools-reviewers,bomsy,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D187705
2023-09-26 15:33:34 +00:00
Tom Marble 6c1231e2e8 Bug 1853244 - convert .ini manifests to .toml: batch 6 {caps,devtools,dom}/**/browser.ini r=jmaher,media-playback-reviewers,devtools-reviewers,profiler-reviewers,alwu,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D188856
2023-09-22 20:42:14 +00:00
Zachary Svoboda 824d105a3d Bug 1673582 - Introduce theme-link-color for better contrast on devtools links r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D187863
2023-09-19 07:00:47 +00:00
Tom Marble d70780c99c Bug 1850545 - convert .ini manifests to .toml: batch 3 chrome.ini (bis) r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,places-reviewers,profiler-reviewers,m_kato,mak,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187597
2023-09-13 18:28:32 +00:00