Commit Graph

27288 Commits

Author SHA1 Message Date
Nicolas Chevobbe
a9138ad00c Bug 1844062 - [devtools] Properly handle aria-pressed attribute on selector highlighter icon. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189916
2023-10-06 07:52:29 +00:00
Nicolas Chevobbe
9a4832dfe3 Bug 1857065 - [devtools] Don't run browser_dbg-fission-frame-breakpoint.js when fission is disabled. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D190211
2023-10-05 21:47:35 +00:00
Sean Feng
2714359424 Bug 1852870 - Make devtools stop decompress decompressed content r=farre,ochameau,necko-reviewers,devtools-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D188499
2023-10-05 18:51:26 +00:00
Alexandre Poirot
0f714077b7 Bug 1856658 - [devtools] Avoid duplicating the large breakpoints positions array when using function filtering methods. r=devtools-reviewers,nchevobbe
The filterBySource was looping over the whole list once again
but worse, was duplicating the array once more.

Same for filterByUniqLocation.

Finally, once we removed these two last filtering methods... we could prevent the creation of the whole "positions"
intermediate object and craft directly what we aim to store in redux.

Differential Revision: https://phabricator.services.mozilla.com/D189951
2023-10-05 15:03:32 +00:00
Alexandre Poirot
0e5417ff35 Bug 1856658 - [devtools] Better integrate SourceMapLoader into breakable positions computation. r=devtools-reviewers,nchevobbe
We can avoid the creation of an handful of object creations by passing
the "breakpoint positions" objects directly to the Source Map Loader.
(avoid convertToList)

We can also tune `SourceMapLoader.getOriginalLocations` output to better
fit the requirements of the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D189950
2023-10-05 15:03:32 +00:00
Alexandre Poirot
4a83fa6e97 Bug 1856658 - [devtools] Drop unused options/search argument to getOriginalLocation(s). r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D189949
2023-10-05 15:03:31 +00:00
Alexandre Poirot
8b10a8c0c5 Bug 1856658 - [devtools] Document breakable position retrieval and avoid instation of many Sets and Arrays. r=devtools-reviewers,nchevobbe
This code is a bit hard to follow, so let's add some comments.

Also `columns = [...new Set([...existing, ...columns])];` is probably very bad for performance.
It clones existing and columns into a third array, whose content is cloned into a Set,
which is ultimately cloned into the final array.

Differential Revision: https://phabricator.services.mozilla.com/D189948
2023-10-05 15:03:30 +00:00
Nicolas Chevobbe
00a6ccc063 Bug 1849881 - [devtools] Make Copy Location context menu handle original file. r=devtools-reviewers,ochameau.
Copy whatever URL is being displayed to the user.

Differential Revision: https://phabricator.services.mozilla.com/D189395
2023-10-05 05:23:14 +00:00
dylan
12c105f231 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
Nicolas Chevobbe
a25c697f70 Bug 1843330 - [devtools] Make interactive badges keyboard accessible. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189913
2023-10-04 16:52:13 +00:00
Nicolas Chevobbe
a30d5f6b15 Bug 1843328 - [devtools] Turn interactive markup view badges into proper buttons. r=devtools-reviewers,ochameau.
For the badges that act as toggles (e.g. the display badge for toggling flex/grid highlighters),
we also set aria-pressed buttons.

Tests are added in the next patch of this stack.

Differential Revision: https://phabricator.services.mozilla.com/D189911
2023-10-04 16:52:12 +00:00
sotaro
063b01c280 Bug 1856791 - Add the TextureUpdate to the Firefox Graphics and Media presets r=profiler-reviewers,julienw
Bug 1855277 add TextureUpdate thread that is going to be enabled by Bug 1856516.

Differential Revision: https://phabricator.services.mozilla.com/D190000
2023-10-04 12:01:23 +00:00
Cristina Horotan
ae1b65220e Backed out changeset 1d1230bf1bc5 (bug 1844053) for causing dt failures at browser_rules_edit-selector-commit.js CLOSED TREE 2023-10-04 12:28:00 +03:00
Cristina Horotan
c2f1818912 Backed out 2 changesets (bug 1843328, bug 1843330) for causing dt failures at browser_markup_events-windowed-host.js CLOSED TREE
Backed out changeset fda104236c8f (bug 1843330)
Backed out changeset f0dad4ea4f16 (bug 1843328)
2023-10-04 11:43:04 +03:00
Nicolas Chevobbe
b9ebc3c7a9 Bug 1843330 - [devtools] Make interactive badges keyboard accessible. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189913
2023-10-04 07:05:49 +00:00
Nicolas Chevobbe
02db0a18f5 Bug 1843328 - [devtools] Turn interactive markup view badges into proper buttons. r=devtools-reviewers,ochameau.
For the badges that act as toggles (e.g. the display badge for toggling flex/grid highlighters),
we also set aria-pressed buttons.

Tests are added in the next patch of this stack.

Differential Revision: https://phabricator.services.mozilla.com/D189911
2023-10-04 07:05:48 +00:00
Nicolas Chevobbe
b643698e69 Bug 1844053 - [devtools] Make selector highlighter icon keyboard accessible. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189916
2023-10-04 06:31:02 +00:00
Nicolas Chevobbe
7aad4369ba Bug 1832213 - Add pretty print button in StyleEditor. r=devtools-reviewers,fluent-reviewers,ochameau.
This adds a similar button to the one we have in the Debugger that users can
click on to pretty print the stylesheet.
We disable the button when the opened file is an original file, as we don't
support pretty printing non CSS files.

The current test for (automatic) pretty printing is updated to check that the
button has the expected states and behaves as it should.

Differential Revision: https://phabricator.services.mozilla.com/D189762
2023-10-04 06:27:46 +00:00
Nicolas Chevobbe
d895cf273d Bug 1843309 - [devtools] Add aria-pressed attribute on toolbox toggle buttons. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189741
2023-10-03 04:59:03 +00:00
Hubert Boma Manilla
b8be08a9dd Bug 1844205 - [devtools] Add scope nodes test for anonymous functions r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D189742
2023-10-02 23:18:59 +00:00
Hubert Boma Manilla
1c96267d5a Bug 1854889 - [devtools] Add some documentation to the parsing for scope information r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D187734
2023-10-02 23:17:47 +00:00
Norisz Fay
338171a737 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
a97e16eb2e 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
Jonathan Kew
0428bf09b5 Bug 1731541 - Add CSS property text-wrap: auto | stable | balance. r=devtools-reviewers,emilio
Just the CSS property; not hooked up to any rendering behavior yet.

Currently this is implemented as a simple longhand `text-wrap` property,
but we'll want to rename it to `text-wrap-style` when we update white-space
to be a shorthand and introduce white-space-collapse, text-wrap-mode, etc.

The 'pretty' value is omitted as we have no immediate plans to implement it.
Initially, 'auto' and 'stable' will behave identically, although 'auto' could
change in future once we have higher-quality algorithms available.

Differential Revision: https://phabricator.services.mozilla.com/D187543
2023-09-30 15:53:11 +00:00
Hubert Boma Manilla
61083e594d Bug 1853296 - [devtools] Pass the function symbols to the main thread when the Quick open panel is opened r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D188423
2023-09-29 16:22:26 +00:00
Sylvestre Ledru
7aa259d1be Bug 1855935 - doc: move the doc from devtools to the main contrib doc r=marco,nchevobbe,devtools-reviewers DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D189645
2023-09-29 15:04:27 +00:00
Hubert Boma Manilla
860acc902f Bug 1844630 - [devtools] Do not allow setting breakpoints if the codemirror document has been destroyed r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D189640
2023-09-29 14:41:08 +00:00
Nicolas Chevobbe
e64e58ed87 Bug 1855458 - [devtools] Prevent debugger tabs bar to overflow. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189377
2023-09-29 07:19:34 +00:00
Nicolas Chevobbe
3e8f42b9bc Bug 1796241 - [devtools] Fix browser_styleinspector_context-menu-copy-color_02.js intermittent failure. r=devtools-reviewers,ochameau.
Properly close the context menu (and wait until its fully closed).
Use `setProperty` to set the CSS value property as it handles edge cases.
This means we had to move `getRuleViewRuleEditor`, `getTextProperty` and
`setProperty` to `inspector/test/shared-head.js`.

Differential Revision: https://phabricator.services.mozilla.com/D189207
2023-09-29 06:50:28 +00:00
Nicolas Chevobbe
23808d46cd Bug 1844091 - [devtools] Add proper labels to evaluation and evaluation result message icons. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189332
2023-09-29 05:23:22 +00:00
Sandor Molnar
2f5b657343 Backed out 5 changesets (bug 1731541) for causing multiple wpt failures. CLOSED TREE
Backed out changeset c185a38fb335 (bug 1731541)
Backed out changeset 16a3de29e4e6 (bug 1731541)
Backed out changeset 225642ff1de8 (bug 1731541)
Backed out changeset eb0b125d3214 (bug 1731541)
Backed out changeset af42a433722a (bug 1731541)
2023-09-28 23:49:24 +03:00
Yury Delendik
344f0d439b Bug 1855254 - Update wasmparser to version 5.8.0. r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189546
2023-09-28 19:07:47 +00:00
Jonathan Kew
9398860088 Bug 1731541 - Add CSS property text-wrap: auto | stable | balance. r=devtools-reviewers,emilio
Just the CSS property; not hooked up to any rendering behavior yet.

Currently this is implemented as a simple longhand `text-wrap` property,
but we'll want to rename it to `text-wrap-style` when we update white-space
to be a shorthand and introduce white-space-collapse, text-wrap-mode, etc.

The 'pretty' value is omitted as we have no immediate plans to implement it.
Initially, 'auto' and 'stable' will behave identically, although 'auto' could
change in future once we have higher-quality algorithms available.

Differential Revision: https://phabricator.services.mozilla.com/D187543
2023-09-28 17:28:18 +00:00
Nicolas Chevobbe
c5927f7991 Bug 1838393 - [devtools] Tweak paused thread styling. r=devtools-reviewers,bomsy.
Instead of only displaying a small icon when the thread is
paused, add a plain text paused label.
When a thread is paused and not selected, set its background
and color the same as we have for the why paused element.

CSS variables for paused background and color are created and
are used in both WhyPaused and paused thread.

We take this opportunity to refactor Threads.css a bit, cleaning
up spacing and using CSS nesting to make it easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D189341
2023-09-28 14:37:27 +00:00
Emilio Cobos Álvarez
d5b122ab45 Bug 1854441 - Add zoom to animation-type-longhand.js.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2023-09-28 15:47:03 +02:00
Natalia Csoregi
0489f93a3d Backed out 4 changesets (bug 1731541) for causing bustage on nsBlockFrame.cpp. CLOSED TREE
Backed out changeset 7ce2b41bb730 (bug 1731541)
Backed out changeset 71d889de8d97 (bug 1731541)
Backed out changeset 0fd4431f5279 (bug 1731541)
Backed out changeset 5926241957b4 (bug 1731541)
2023-09-28 12:09:30 +03:00
Jonathan Kew
5831a519e3 Bug 1731541 - Add CSS property text-wrap: auto | stable | balance. r=devtools-reviewers,emilio
Just the CSS property; not hooked up to any rendering behavior yet.

Currently this is implemented as a simple longhand `text-wrap` property,
but we'll want to rename it to `text-wrap-style` when we update white-space
to be a shorthand and introduce white-space-collapse, text-wrap-mode, etc.

The 'pretty' value is omitted as we have no immediate plans to implement it.
Initially, 'auto' and 'stable' will behave identically, although 'auto' could
change in future once we have higher-quality algorithms available.

Differential Revision: https://phabricator.services.mozilla.com/D187543
2023-09-28 08:31:20 +00:00
Nicolas Chevobbe
c969881cac Bug 1855202 - [devtools] Use proper label for Debugger checkboxes. r=devtools-reviewers,bomsy.
Depends on D189225

Differential Revision: https://phabricator.services.mozilla.com/D189227
2023-09-28 07:50:03 +00:00
Nicolas Chevobbe
d46e66c87c Bug 1844074 - [devtools] Don't hide focus indicator on checkbox and radio buttons. r=devtools-reviewers,bomsy.
The CSS rule was preventing any focus indicator to be displayed.

Differential Revision: https://phabricator.services.mozilla.com/D189225
2023-09-28 07:50:02 +00:00
Vinny Diehl
6d90b57bac Bug 449921 - Loosen requirements for characters directly following numbers r=arai,devtools-reviewers,nchevobbe
This patch newly allows cases such as MonDDYYYY and Mon.DD.YYYY.
In adding tests for this patch, I noticed that the tests for parsing
periods were broken and could not fail the way that they were written,
so I fixed them.

This patch also fixes a couple of other standing bugs...

fixes Bug 485639 - for cases like "Aug 15 2015 10:00am"
fixes Bug 1760290 - for YYYY.MM.DD

Differential Revision: https://phabricator.services.mozilla.com/D186054
2023-09-27 09:52:46 +00:00
Nicolas Chevobbe
65e2bc317c 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
Boris Chiou
0e32e6e42e Bug 1823475 - Drop DefaultPosition and omit "at <position>" if it is not specified. r=devtools-reviewers,emilio
`at <position>` is optional value and we should omit it if author doesn't
specify it, for all basic-shape functions, and ray().

Note that there is a related interpolation issue [1] if one of the end values
doesn't specify `at <position>`. We didn't address this issue in this patch.

[1] https://github.com/w3c/csswg-drafts/issues/9068

Also, this updates the devtool code to give it the default value, "50% 50%",
for circle() and ellipse() if `at <position>` is not specified.

Differential Revision: https://phabricator.services.mozilla.com/D181918
2023-09-26 21:05:20 +00:00
Sandor Molnar
e22024e42c 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
0c9eb8b05d 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
Nicolas Chevobbe
a108fe5ce3 Bug 1828361 - [devtools] Fix browser_styleeditor_media_sidebar_links.js intermittent. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D188859
2023-09-26 07:10:52 +00:00
Nicolas Chevobbe
55545e7f79 Bug 1844049 - [devtools] Add labels for rule view filter input and clear button. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189097
2023-09-26 06:08:27 +00:00
Alexandre Poirot
c8ee662919 Bug 1806796 - Bug 1822310 - [devtools] Add tests to cover breakpoints on unload. r=devtools-reviewers,nchevobbe
Also fix an issue where Exception tooltip was always overriden
by the preview tooltip when we were paused.

Differential Revision: https://phabricator.services.mozilla.com/D177786
2023-09-25 21:34:53 +00:00
Alexandre Poirot
0f807eab5b Bug 1824393 - [devtools] Fallback on matching source per URL from project search result and show error message on miss. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D183789
2023-09-25 21:34:53 +00:00
Alexandre Poirot
58a4ed9a19 Bug 1824393 - [devtools] Show a refresh button in project search and highlight it when the page navigated. r=devtools-reviewers,bomsy,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D186619
2023-09-25 21:34:52 +00:00
Alexandre Poirot
e946600cb6 Bug 1824393 - [devtools] Move project text search data from Redux store to the React Component state. r=devtools-reviewers,perftest-reviewers,nchevobbe,sparky
This simplifies quite a bit the overall code as this data is specific to only this component.

Differential Revision: https://phabricator.services.mozilla.com/D183499
2023-09-25 21:34:52 +00:00