Граф коммитов

24881 Коммитов

Автор SHA1 Сообщение Дата
Tooru Fujisawa 11c6b37c5f Bug 1765319 - Part 2: Do not use global this in symbolication.jsm.js. r=canaltinova
This `global` variable is used for accessing Error prototypes, and they're
properties of the shared global (`globalThis`), not per-JSM global (`this`).

Differential Revision: https://phabricator.services.mozilla.com/D144131
2022-05-13 20:12:26 +00:00
Luke Swiderski 60d6bfde93 Bug 1695896 - Add/edit log on breakpoint in sidebar scroll line into view. r=bomsy
This patch scrolls the editor to the log input when adding or editing a log
from the breakpoint context menu.

Differential Revision: https://phabricator.services.mozilla.com/D146202
2022-05-13 16:22:01 +00:00
Hubert Boma Manilla 8418e968f1 Bug 1755197 - [devtools] Remove breakpoint shifting on breakpoint syncing r=ochameau
This patch focuses on removing breakpoint shifting which is mostly used in
non-sourcemapping scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D138625
2022-05-13 03:35:18 +00:00
Henrik Skupin 152d44aef0 Bug 1769026 - [devtools] Remove backward-compat comment for supportedResources. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D146165
2022-05-12 15:44:56 +00:00
Nicolas Chevobbe 0a8d6af8a1 Bug 1673806 - [devtools] Rename StyleSheetManager#update and change its signature. r=daisuke.
The new name better conveys what the method does.
We take this as an opportunity to have an option
object as the third parameter, to hold optional
arguments (transition, kind and cause).

Differential Revision: https://phabricator.services.mozilla.com/D146044
2022-05-11 11:48:21 +00:00
Hubert Boma Manilla c7c3e45ec6 Bug 1767188 - [devtools] Make sure the source is in redux before selecting during a pause r=nchevobbe
This tries to fix a race issue where, on reload, the pause event fires way before the
related source is available. This is an issue the had the potential on happening at some point.
This fix is not super perfect but with the trottling of sources there is no guurantee that sources will
always be available before pause event fires.
This pattern is also used for source actors. waitForSourceActorToBeRegisteredInStore.

Differential Revision: https://phabricator.services.mozilla.com/D145925
2022-05-11 05:45:58 +00:00
Cristian Tuns 23517e3d2b Backed out 3 changesets (bug 1758745, bug 1758740, bug 1762462) for causing mochitest failures on test_storagePermissionsAccept.html CLOSED TREE
Backed out changeset fa222c0a9a26 (bug 1762462)
Backed out changeset 9daa04b239f9 (bug 1758745)
Backed out changeset c18aecb431c0 (bug 1758740)
2022-05-10 20:12:45 -04:00
Benjamin VanderSloot 7560dc381a Bug 1762462 - Tests do not reflect Always Partitioning Storage, r=twisniewski
Depends on D143627

Differential Revision: https://phabricator.services.mozilla.com/D144731
2022-05-10 21:49:42 +00:00
Mark Banner 6da9b0cbbf Bug 1766533 - Fix devtools HSplitBox for ESLint rule no-constant-binary-expression. r=nchevobbe
Depends on D145653

Differential Revision: https://phabricator.services.mozilla.com/D145654
2022-05-10 20:04:03 +00:00
Nicolas Chevobbe 088b5c3f34 Bug 1688231 - [devtools] Remove backward command for :block command. r=bomsy.
The command requires having network resource command support,
which is still not enabled everywhere (e.g. non-multiprocess browser toolbox).
We simply remove the backward compat comment but leave the check on network
resource command support.

Differential Revision: https://phabricator.services.mozilla.com/D145890
2022-05-10 11:48:45 +00:00
Nicolas Chevobbe 4363c73f4a Bug 1688231 - [devtools] Delete noPauseOnThreadActorAttach trait. r=bomsy.
This was used for pre-86 servers, and we can now assume that all servers
threads don't pause on attach.

Differential Revision: https://phabricator.services.mozilla.com/D145888
2022-05-10 11:48:45 +00:00
Nicolas Chevobbe e7198c20ea Bug 1688231 - [devtools] Remove unnecessary StyleSheetEditor#_isUpdating. r=bomsy.
This was used for pre-86 servers, so we can remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D145884
2022-05-10 11:48:44 +00:00
Nicolas Chevobbe 82b8cee903 Bug 1651428 - [devtools] Group context selector frame targets by their PIDs in Browser Toolbox console. r=Honza.
Depends on D145880

Differential Revision: https://phabricator.services.mozilla.com/D145942
2022-05-10 11:40:21 +00:00
Nicolas Chevobbe 2186a61def Bug 1768461 - [devtools] Fix content process and worker frame icons in context selector. r=Honza.
Adding the proper attribute on the SVG files is enough.

Differential Revision: https://phabricator.services.mozilla.com/D145880
2022-05-10 11:40:20 +00:00
Nicolas Chevobbe 03d2974d89 Bug 1768150 - [devtools] Turn StyleEditorUI methods private. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D145856
2022-05-10 09:17:50 +00:00
Nicolas Chevobbe bb8c2ad43f Bug 1768150 - [devtools] Turn StyleEditorUI properties into private fields. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D145855
2022-05-10 09:17:49 +00:00
Nicolas Chevobbe 8784696806 Bug 1768150 - [devtools] Don't use ui._* properties from styleeditor tests. r=bomsy.
This is some prep work to make those loosely private properties
actually be private fields.

Differential Revision: https://phabricator.services.mozilla.com/D145854
2022-05-10 09:17:49 +00:00
Nicolas Chevobbe 968874d5ce Bug 1767970 - [devtools] Merge SplitView into StyleEditorUI. r=jdescottes.
This allows to simplify what was done in SplitView and have
direct calls to functions instead of registering callbacks.

Differential Revision: https://phabricator.services.mozilla.com/D145607
2022-05-09 09:09:57 +00:00
Nicolas Chevobbe bf6abde59f Bug 1767970 - [devtools] Turn StyleEditorUI into a class. r=jdescottes.
This is some prep work for the next patch in the stack.

Differential Revision: https://phabricator.services.mozilla.com/D145606
2022-05-09 09:09:56 +00:00
Cosmin Sabou 57c5a2f155 Backed out changeset 3cdc612207bf (bug 1767070) for not having a real failure rate to be disabled. 2022-05-09 09:18:23 +03:00
Norisz Fay b938eef69c Bug 1767070 - disable uncompressed-sourcemaps.js for frequent failures. r=intermittent-reviewers,MasterWayZ
Differential Revision: https://phabricator.services.mozilla.com/D145836
2022-05-08 20:01:10 +00:00
Nicolas Chevobbe 8bb7f3310b Bug 1668219 - [devtools] Refactor test_inspector-scroll-into-view.html . r=bomsy
Removing the framerate tests made an existing issue visible:
running test_inspector-scroll-into-view.html and then test_inspector-search-front.html
was making the latter time out.
Refactoring the test fixes the issue.

Differential Revision: https://phabricator.services.mozilla.com/D145538
2022-05-06 17:16:31 +00:00
Nicolas Chevobbe 2dae975b96 Bug 1668219 - [devtools] Remove prefs used in old perf panel. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D145536
2022-05-06 17:16:30 +00:00
Nicolas Chevobbe 290ab0bcb4 Bug 1668219 - [devtools] Remove unused devtools/client/shared/options-view.js. r=bomsy.
It was only used in the old perf panel.

Differential Revision: https://phabricator.services.mozilla.com/D145535
2022-05-06 17:16:30 +00:00
Nicolas Chevobbe 55d79ae066 Bug 1668219 - [devtools] Remove unused devtools/client/shared/demangle.js. r=bomsy.
It was only used in the old perf panel.

Differential Revision: https://phabricator.services.mozilla.com/D145534
2022-05-06 17:16:30 +00:00
Nicolas Chevobbe 000b84abfd Bug 1668219 - [devtools] Remove now unused devtools/shared/performance folder. r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D145466
2022-05-06 17:16:29 +00:00
Nicolas Chevobbe 073b56709e Bug 1668219 - [devtools] Remove now unused performance-recording actor and front. r=julienw,devtools-backward-compat-reviewers.
Remove files that were only used by this actor as well.

Differential Revision: https://phabricator.services.mozilla.com/D145464
2022-05-06 17:16:29 +00:00
Nicolas Chevobbe eab2a86cbe Bug 1668219 - [devtools] Remove now unused performance actor and front. r=julienw,devtools-backward-compat-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D145463
2022-05-06 17:16:28 +00:00
Nicolas Chevobbe b5a99726eb Bug 1668219 - [devtools] Remove widgets only used on old perf panel. r=bomsy.
This removes FlameGraph.js, Graphs.js, GraphsWorker.js, LineGraphWidget.js, MountainGraphWidget.js
and their related tests.
DevToolsWorker tests that were relying on GraphsWorker.js are updated to use a test-specific blob worker.

Differential Revision: https://phabricator.services.mozilla.com/D145462
2022-05-06 17:16:27 +00:00
Nicolas Chevobbe 30db855c84 Bug 1668219 - [devtools] Remove devtools/client/performance. r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D145461
2022-05-06 17:16:27 +00:00
Nicolas Chevobbe e1f5f32c3a Bug 1668219 - [devtools] Remove isNewPerfPanelEnabled target configuration. r=bomsy,devtools-backward-compat-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D145460
2022-05-06 17:16:26 +00:00
Nicolas Chevobbe faee16015f Bug 1668219 - [devtools] Remove devtools.performance.new-panel-enabled preference. r=julienw.
Remove occurences of the pref (except in devtools/client/performance, which
will be removed further in the stack).

Differential Revision: https://phabricator.services.mozilla.com/D145459
2022-05-06 17:16:26 +00:00
Nicolas Chevobbe f7ae125a11 Bug 1668219 - [devtools] Remove new perf panel setting in DevTools Settings panel. r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D145458
2022-05-06 17:16:26 +00:00
Greg Tatum c8a4b709d5 Bug 1767537 - Update pseudolocalization docs; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D145374
2022-05-05 16:25:32 +00:00
Nicolas Chevobbe ab57d9eaba Bug 1576907 - [devtools] Don't add expressions from private window console in history. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D145200
2022-05-04 12:27:05 +00:00
Nicolas Chevobbe fea6e021bf Bug 1766975 - [devtools] Add keyboard shortcut to focus StyleEditor filter input. r=jdescottes.
We using Ctrl|Cmd+P as Ctrl|Cmd+F is used for a in-file search in
the CodeMirror instance.
We're tesing the keyboard shortcut in browser_style_editor_filter.js
by using it instead of manually calling input.focus and clearing it
programatically.

Differential Revision: https://phabricator.services.mozilla.com/D145057
2022-05-04 06:01:31 +00:00
Nicolas Chevobbe 0f4a927bab Bug 1766603 - [devtools] Lazy load modules in StyleEditor. r=bomsy.
Those modules are only needed on specific user actions, so we might save a few
cycles not loading them upfront.

Differential Revision: https://phabricator.services.mozilla.com/D144796
2022-05-04 06:01:31 +00:00
Nicolas Chevobbe 267bff5ff9 Bug 1766811 - [devtools] Remove StyleEditor list item animation. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D144930
2022-05-04 06:01:31 +00:00
Nicolas Chevobbe c02657bc0c Bug 1470781 - [devtools] Make check in browser_styleeditor_private_perwindowpb.js more specific. r=jdescottes.
For some reason, the new test added in the previous patch has an impact on this test:
when checking the disk cache, there's a `mochi.test:8888/tests.json` entry, and
since the test was only checking if there was an entry with the `mochi.test:8888` entry,
it was failing.
I wasn't able to understand why we have this entry in the cache, but it reveals
that the test check is a bit too broad, since what we cares about is simply to
know if the fetched stylesheet was added in the disk cache.
So here we're doing just that, checking that the fetched stylesheet wasn't added
to the disk cache.

Depends on D144723

Differential Revision: https://phabricator.services.mozilla.com/D145344
2022-05-04 06:01:30 +00:00
Nicolas Chevobbe 677b15d13b Bug 1470781 - [devtools] Add filter input for stylesheets list. r=jdescottes,fluent-reviewers.
The patch adds a filter input in the xhtml file, which will filter the list
of stylesheets displayed on the left side, based on the stylesheet name.
If the active stylesheet is filtered-out, the first visible one gets selected.
If all the stylesheet are filtered-out, a label is displayed indicating that
the search doesn't match any stylesheet.

The splitview CSS already had rules for this behaviour, so we're reusing what's
already there, re-adding the placeholder for the "all filtered" message.

This had an impact on keyboard navigation; the list is sorted by `ordinal` property,
which drives a `MozBoxOrdinalGroup` style property (similar to `order` on a flex item).
The navigation used to simply get the active ordinal, and move to the next one.
Now, the "next" ordinal could be hidden, so we change the behavior to move the focus
to the next (or previous), visible item in the list.

A test is added to check that everything works as intended.

Differential Revision: https://phabricator.services.mozilla.com/D144723
2022-05-04 06:01:30 +00:00
Doug Thayer 04d1c8fd1e Bug 1756823 - Replace ConsoleAPIStorage observer calls with js array r=nchevobbe,webdriver-reviewers,geckoview-reviewers,agi,jdescottes
See the comment in the file explaining it. For a case of logging 100k numbers,
this dropped the time per number from 15 microseconds to 9 with the console
closed, and 55 microseconds to 38 with the console open. I think we could shave
off more with a native approach, but I don't know that it's worth it and it's
much more likely for that to introduce bugs.

Differential Revision: https://phabricator.services.mozilla.com/D143782
2022-05-03 17:21:59 +00:00
Tooru Fujisawa 8c9eb71d74 Bug 1765167 - Part 2: Stop using Cu.import in devtools/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D144095
2022-05-03 06:32:29 +00:00
Tooru Fujisawa 8412ce7da9 Bug 1766984 - Do not remove 3rd and remaining parameters when falling back to log from console.table. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D145138
2022-05-02 11:45:18 +00:00
Feng Yu 2b6e661c17 Bug 1554887 - [devtools] Remove eslint-disable complexity in devtools/client/shared/components/Frame.js. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D144802
2022-05-02 11:42:03 +00:00
criss 31c0885034 Backed out 3 changesets (bug 1766603, bug 1470781, bug 1766811) for causing devtools failures. CLOSED TREE
Backed out changeset 9a28a5613dbd (bug 1766811)
Backed out changeset d1fd983ac8ae (bug 1766603)
Backed out changeset f52a98377722 (bug 1470781)
2022-05-02 09:44:15 +03:00
Nicolas Chevobbe 2034ad0073 Bug 1766811 - [devtools] Remove StyleEditor list item animation. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D144930
2022-05-02 05:44:20 +00:00
Nicolas Chevobbe 5f5ea908d8 Bug 1766603 - [devtools] Lazy load modules in StyleEditor. r=bomsy.
Those modules are only needed on specific user actions, so we might save a few
cycles not loading them upfront.

Differential Revision: https://phabricator.services.mozilla.com/D144796
2022-05-02 05:44:20 +00:00
Nicolas Chevobbe ca25b31905 Bug 1470781 - [devtools] Add filter input for stylesheets list. r=jdescottes,fluent-reviewers.
The patch adds a filter input in the xhtml file, which will filter the list
of stylesheets displayed on the left side, based on the stylesheet name.
If the active stylesheet is filtered-out, the first visible one gets selected.
If all the stylesheet are filtered-out, a label is displayed indicating that
the search doesn't match any stylesheet.

The splitview CSS already had rules for this behaviour, so we're reusing what's
already there, re-adding the placeholder for the "all filtered" message.

This had an impact on keyboard navigation; the list is sorted by `ordinal` property,
which drives a `MozBoxOrdinalGroup` style property (similar to `order` on a flex item).
The navigation used to simply get the active ordinal, and move to the next one.
Now, the "next" ordinal could be hidden, so we change the behavior to move the focus
to the next (or previous), visible item in the list.

A test is added to check that everything works as intended.

Differential Revision: https://phabricator.services.mozilla.com/D144723
2022-05-02 05:44:19 +00:00
Nicolas Chevobbe 8be10dc59d Bug 1766630 - [devtools] Update MDN compat data (2022 April). r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D144810
2022-04-29 14:50:56 +00:00
Hubert Boma Manilla e8139922ea Bug 1762865 - [devtools] Add assertion for server breakpoints in breakpoints tests r=ochameau
This patch also adds assertions for breakpoints on the server to the
breakpoints reload tests. This also asserts that the breakpoint is not removed
on the server when related source no longer exists after a reload

Differential Revision: https://phabricator.services.mozilla.com/D142545
2022-04-29 14:23:51 +00:00