Commit Graph

26555 Commits

Author SHA1 Message Date
Eden Chuang
b0159dc879 Bug 1819570 - P6 Allow a different request order in netmonitor tests. r=jdescottes,devtools-reviewers
Depends on D174444

Differential Revision: https://phabricator.services.mozilla.com/D177269
2023-05-05 15:24:10 +00:00
Eden Chuang
c2c743bd1c Bug 1819570 - P5 Let netmonitor to watch stack trace events on nsIWorkerChannleInfo. r=jdescottes,devtools-reviewers
Depends on D174443

Differential Revision: https://phabricator.services.mozilla.com/D174444
2023-05-05 15:24:10 +00:00
Eden Chuang
c800899fd3 Bug 1819570 - P3 using nsILoadInfo.WorkerAssociatedBrowsingContext for netmonitor. r=jdescottes,devtools-reviewers
After PFetch is enabled, fetch() call in workers will not create a channel in the content process anymore.
Although netmonitor also watches the channels in the parent process, the created channel still loses the BrowsingContext information for netmonitor to connect the network event and the channel.

Depends on D174441

Differential Revision: https://phabricator.services.mozilla.com/D174442
2023-05-05 15:24:09 +00:00
Alexandre Poirot
001a80dd7f Bug 1812576 - [devtools] Fix debugger source tabs missing for original sources, and closed for many others. r=devtools-reviewers,bomsy
Tabs for original sources weren't correctly restored. We were still have tabs registered in the reducer,
but we were never trying to re-link them to the next page load's source objects.

Also, resetTabsForThread was removing tabs entirely instead of only nullifying source/sourceActor attributes.
So that on reload you may easily loose tabs of any additional target and possibly also the top target.

Differential Revision: https://phabricator.services.mozilla.com/D177164
2023-05-05 08:51:20 +00:00
Alexandre Poirot
67a339a0e6 Bug 1767760 - [devtools] Also ignore partially initialized workers in browser_target_parents.js. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D176139
2023-05-04 21:55:15 +00:00
Emilio Cobos Álvarez
4ee8b86e8a Bug 1828790 - Wait for element to be ready. r=devtools-reviewers
See bug 1767679 for a similar bug+fix.

Differential Revision: https://phabricator.services.mozilla.com/D176287
2023-05-04 14:18:41 +00:00
Iulian Moraru
021d7987c7 Backed out 5 changesets (bug 1819570) for causing dt failures on browser_net_worker_stacks.js. CLOSED TREE
Backed out changeset e73379145f9a (bug 1819570)
Backed out changeset addc41903c2f (bug 1819570)
Backed out changeset c8534cf58f86 (bug 1819570)
Backed out changeset 81e926cf92dc (bug 1819570)
Backed out changeset 7d73ec5415a4 (bug 1819570)
2023-05-04 07:19:13 +03:00
Eden Chuang
309bff70a7 Bug 1819570 - P5 Let netmonitor to watch stack trace events on nsIWorkerChannleInfo. r=jdescottes,devtools-reviewers
Depends on D174443

Differential Revision: https://phabricator.services.mozilla.com/D174444
2023-05-04 02:46:31 +00:00
Eden Chuang
215993deb9 Bug 1819570 - P3 using nsILoadInfo.WorkerAssociatedBrowsingContext for netmonitor. r=jdescottes,devtools-reviewers
After PFetch is enabled, fetch() call in workers will not create a channel in the content process anymore.
Although netmonitor also watches the channels in the parent process, the created channel still loses the BrowsingContext information for netmonitor to connect the network event and the channel.

Depends on D174441

Differential Revision: https://phabricator.services.mozilla.com/D174442
2023-05-04 02:46:31 +00:00
Hubert Boma Manilla
f7a86554a1 Bug 1824701 - [devtools] Change the styling for blackboxing r=devtools-reviewers,nchevobbe
1) This patch cleanups the styling for blackboxing
- Ignored sources in the source tree are colored out and the icoon colors are consistent.
- Source content for ignored sources are also colored out.
- Ignored lines are colored out.
- The tab content for ignored sources are also abit lighter.

2) Also added tests to assert the lines in the sources are styled correcty
Thanks

Differential Revision: https://phabricator.services.mozilla.com/D173688
2023-05-04 00:23:44 +00:00
Hubert Boma Manilla
f2d50ffbb8 Bug 1824698 - [devtools] Update blackbox context menu labels after a blackbox r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174391
2023-05-04 00:23:44 +00:00
Hubert Boma Manilla
26b8358c14 Bug 1824698 - [devtools] Add tests for all blackbox context menu items r=devtools-reviewers,ochameau
Tests the blackbox context menu items on the Editor, Editor Gutter and the Source Tree.

Differential Revision: https://phabricator.services.mozilla.com/D173686
2023-05-04 00:23:44 +00:00
Katherine Patenio
485f34bf93 Bug 1830421 - convert CustomizableWidgets, CustomizeMode, DragPositionManager and SearchWidgetTracker in browser/components/customizableui to ESMs r=Standard8,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D176825
2023-05-03 18:05:26 +00:00
Julian Descottes
72ce2212bc Bug 1830967 - [devtools] Storage inspector sidebar should not have a 0 minwidth r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D176950
2023-05-03 16:17:19 +00:00
Mathew Hodson
5ee28fedd1 Bug 1830460 - Convert ComponentUtils.jsm to ESM. r=arai,webdriver-reviewers,webcompat-reviewers,credential-management-reviewers,devtools-reviewers,twisniewski,sgalich,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D176782
2023-05-03 15:18:46 +00:00
Boris Chiou
97804f78e4 Bug 1808410 - Part 2: Add animation-timeline: view() in style system. r=emilio
Support view() notation for animation-timeline:
  `<view()> = view( [ <axis> || <'view-timeline-inset'> ]? )`

We move AnimationTimeline and its related types into the generics folder,
and define two new structs for scroll() and view().

Note:
1. The syntax of scroll() doesn't match the current version of the spec.
   I will update it in Bug 1814444.
2. We will handle the creation/usage of the Anonymous View Progress Timelines
   in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D173904
2023-05-02 22:47:28 +00:00
Stanca Serban
a5a68bb78a Backed out 3 changesets (bug 1824701, bug 1824698) for causing dt failures in
browser_dbg-blackbox.js.

Backed out changeset 15b4fa140e83 (bug 1824701)
Backed out changeset 6166f1440187 (bug 1824698)
Backed out changeset e755873ebf74 (bug 1824698)
2023-05-02 12:57:25 +03:00
Hubert Boma Manilla
cec7f07c44 Bug 1824701 - [devtools] Change the styling for blackboxing r=devtools-reviewers,nchevobbe
1) This patch cleanups the styling for blackboxing
- Ignored sources in the source tree are colored out and the icoon colors are consistent.
- Source content for ignored sources are also colored out.
- Ignored lines are colored out.
- The tab content for ignored sources are also abit lighter.

2) Also added tests to assert the lines in the sources are styled correcty
Thanks

Differential Revision: https://phabricator.services.mozilla.com/D173688
2023-05-02 06:54:59 +00:00
Hubert Boma Manilla
d90ca29cf1 Bug 1824698 - [devtools] Update blackbox context menu labels after a blackbox r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174391
2023-05-02 06:54:59 +00:00
Hubert Boma Manilla
924c9d5cef Bug 1824698 - [devtools] Add tests for all blackbox context menu items r=devtools-reviewers,ochameau
Tests the blackbox context menu items on the Editor, Editor Gutter and the Source Tree.

Differential Revision: https://phabricator.services.mozilla.com/D173686
2023-05-02 06:54:59 +00:00
Cosmin Sabou
543905e105 Backed out 3 changesets (bug 1809568) for causing build bustages on nsBlockFrame.cpp. CLOSED TREE
Backed out changeset eaa7fe280317 (bug 1809568)
Backed out changeset ab0f2bcb2d9b (bug 1809568)
Backed out changeset a481bf06452b (bug 1809568)
2023-05-01 21:42:14 +03:00
David Shin
16b1b29afc Bug 1809568 - Part 1: Implement parsing for baseline-source. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D173884
2023-05-01 17:04:26 +00:00
Iulian Moraru
c9ffb3ffa8 Backed out 3 changesets (bug 1809568) for causing build bustages on nsLineLayout.cpp. CLOSED TREE
Backed out changeset 573dc0bd9554 (bug 1809568)
Backed out changeset b8401947aea0 (bug 1809568)
Backed out changeset 7ecabe895121 (bug 1809568)
2023-05-01 17:59:21 +03:00
David Shin
c7ff30bfe7 Bug 1809568 - Part 1: Implement parsing for baseline-source. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D173884
2023-05-01 13:44:43 +00:00
Nicolas Chevobbe
63b6026575 Bug 1830352 - [devtools] Simplify Sources panel markup. r=bomsy,devtools-reviewers.
The project root UI is now handled in SourcesTree.
We simplify the markup so we keep the number of element to the minimum,
which helps managing the styles.
The CSS is refactored to remove/merge now unused properties, and we use
a CSS grid for the layout.
PrimaryPanes.spec.js is removed as we already have a mochitest asserting
the project root feature (browser_dbg-project-root.js)

Depends on D176666

Differential Revision: https://phabricator.services.mozilla.com/D176683
2023-04-29 08:40:35 +00:00
Nicolas Chevobbe
9731f61f0b Bug 1830308 - [devtools] Remove unused .thread-header rules. r=bomsy,devtools-reviewers.
Depends on D176665

Differential Revision: https://phabricator.services.mozilla.com/D176666
2023-04-27 17:08:21 +00:00
Nicolas Chevobbe
c53290fbfb Bug 1830308 - [devtools] Move rules related to outline panel to Outline.css. r=bomsy,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D176665
2023-04-27 17:08:21 +00:00
Nicolas Chevobbe
42472c79c0 Bug 1828509 - [devtools] Use custom formatter in watch expressions. r=devtools-reviewers,ochameau.
Most of the work needed for this was done in the previous patch of the stack,
but there were a few things we needed to do:
- actually have styling for the expand arrow in reps.css (in the console we're
  (getting the "global" rule for styling arrows)
- not display the expand arrow _before_ the expression label for custom formatter
  with body. The custom formatter handles fetching and displaying body by itself,
  and we shouldn't leak that to the parent ObjectInspector

A test is added to ensure that this works as expected.

We might need a follow up for updating the expression panel style as "wide"
custom formatter might get hidden at certain sizes which isn't great

Differential Revision: https://phabricator.services.mozilla.com/D175847
2023-04-27 09:32:40 +00:00
Nicolas Chevobbe
7f154100c7 Bug 1828509 - [devtools] Pass expression result front to ObjectInspector in Expressions panel. r=devtools-reviewers,ochameau.
With the current implementation, we were always passing a null `front` property
for the ObjectInspector root for a given expression.
The front is needed in CustomFormatter so the the body can be retrieved.

Doing this revealed an issue in ObjectInspector `rootsChanged` action, where we
were releasing actors while they might still be needed.
We now only release actors that are not in the new roots.
This was not visible before because we were only dealing with a grip before,
and we'd create a new ObjectActor whenever we needed to fetch the properties
from it.

Differential Revision: https://phabricator.services.mozilla.com/D175846
2023-04-27 09:32:40 +00:00
Julian Descottes
e797eb6980 Bug 1826954 - [devtools] Disable devtools tests and test suites failing with http3 r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D174528
2023-04-26 22:43:59 +00:00
Alexandre Poirot
ce236d322c Bug 1829688 - [devtools] Avoid selecting the original source everytime we hit a breakpoint. r=devtools-reviewers,nchevobbe
Instead, if we were selecting a generated source, we would keep selecting generated source.
If there is no selected source, we would still try to select the original source.

Many tests were relying on this behavior.

WASM test was failing because of errors with the parser worker.
I added early bailout in order to prevent trying to use the parser worker for WASM.

shared-head test helper were also tweaked to better support select WASM binary sources.

Differential Revision: https://phabricator.services.mozilla.com/D176349
2023-04-26 12:55:41 +00:00
Alexandre Poirot
e4ee099d1d Bug 1829688 - [devtools] Avoid querying the parser worker for unsupported sources. r=nchevobbe,devtools-reviewers
The worker itself ignores already the WASM sources,
but we could save some cycle to avoid calling the parserWorker entirely
when we know the source won't be supported by it.

Differential Revision: https://phabricator.services.mozilla.com/D176414
2023-04-26 12:55:40 +00:00
Nicolas Chevobbe
117b4ba23d Bug 1829807 - [devtools] Simplify getActorIDs. r=ochameau,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D176409
2023-04-26 11:55:57 +00:00
Natalia Csoregi
e6f4a0e8fa Backed out 3 changesets (bug 1826954) for causing http3 failures e.g. browser_net_http3_request_details.js. CLOSED TREE
Backed out changeset fc397a601a63 (bug 1826954)
Backed out changeset 85ad3cfdbe1c (bug 1826954)
Backed out changeset 62802fc23ffe (bug 1826954)
2023-04-26 12:21:10 +03:00
Nicolas Chevobbe
3037fe5bab Bug 1829132 - [devtools] Rename lastToken into previousToken in pretty-fast. r=devtools-reviewers,bomsy.
This better conveys what the token actually is.

Differential Revision: https://phabricator.services.mozilla.com/D176017
2023-04-26 08:34:23 +00:00
Julian Descottes
689494fc99 Bug 1826954 - [devtools] Disable devtools tests and test suites failing with http3 r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D174528
2023-04-26 07:00:50 +00:00
Julian Descottes
c1aee2334a Bug 1829894 - [DevTools Release Tasks - Cycle 114] Update compatibility data r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D176433
2023-04-26 06:59:25 +00:00
Alexandre Poirot
958cab9919 Bug 1829607 - [devtools] Fix exception message when original file failed loading. r=devtools-reviewers,nchevobbe
networkEvent was throwing string exception, which were poorly handled.

Differential Revision: https://phabricator.services.mozilla.com/D176348
2023-04-25 13:42:31 +00:00
Alexandre Poirot
dffb4077bf Bug 1829606 - [devtools] Fix "listener.onTracingToggled is not a function" exceptino when enabling the tracer. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D176347
2023-04-25 13:42:31 +00:00
Alexandre Poirot
d8c705b294 Bug 1829744 - [devtools] Fix jumping to generated location from editor's footer. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D176346
2023-04-25 13:42:31 +00:00
Nicolas Chevobbe
aece2b3864 Bug 1829801 - [devtools] Fix Rule#getCompatibilityIssues guard. r=jdescottes,devtools-reviewers.
This patch sets `this.compatibilityIssues` earlier so we effectively guard on
multiple "concurrent" calls.

Depends on D176395

Differential Revision: https://phabricator.services.mozilla.com/D176396
2023-04-25 09:20:12 +00:00
Nicolas Chevobbe
fcde8ba0ae Bug 1829800 - [devtools] Improve performance of MDNCompatibility methods. r=jdescottes,devtools-reviewers.
In `_getCompatSummary`, we were indirectly calling `getCompatTable` multiple times
with the same parameters. We fix this by calling it once directly in `_getCompatSummary`,
and then looking into the result to extract the data we want.

This patch also removes unecessary spread/rest operators when we didn't get any
values from it.

Differential Revision: https://phabricator.services.mozilla.com/D176395
2023-04-25 09:20:12 +00:00
James Teh
17650eef28 Bug 1572512: Use ComputedARIARole for Dev Tools. r=eeejay,devtools-reviewers,nchevobbe
Dev Tools is primarily targeted at web developers.
Web developers are most comfortable with ARIA roles, rather than Gecko internal role strings.
This is especially true for landmarks, which map to a single landmark role in Gecko, but most Dev Tools users expect separate ARIA roles: main, navigation, etc.
We fall back to a Gecko role string for roles which can't be mapped to ARIA; e.g. iframe.

Differential Revision: https://phabricator.services.mozilla.com/D175585
2023-04-25 07:06:35 +00:00
Stanca Serban
041c4044bd Backed out 8 changesets (bug 1828816, bug 1822112, bug 1572512, bug 1824935) for causing multiple failures. CLOSED TREE
Backed out changeset 8886f7011919 (bug 1822112)
Backed out changeset df566bce405d (bug 1828816)
Backed out changeset 5857e8ef63e1 (bug 1828816)
Backed out changeset 50324d39e9c1 (bug 1822112)
Backed out changeset 7f6bee1959fb (bug 1572512)
Backed out changeset 4effd0bdc4db (bug 1824935)
Backed out changeset a8faf17fcce8 (bug 1824935)
Backed out changeset 0370b0032eb6 (bug 1824935)
2023-04-25 07:45:58 +03:00
James Teh
6da55af6a6 Bug 1572512: Use ComputedARIARole for Dev Tools. r=eeejay,devtools-reviewers,nchevobbe
Dev Tools is primarily targeted at web developers.
Web developers are most comfortable with ARIA roles, rather than Gecko internal role strings.
This is especially true for landmarks, which map to a single landmark role in Gecko, but most Dev Tools users expect separate ARIA roles: main, navigation, etc.
We fall back to a Gecko role string for roles which can't be mapped to ARIA; e.g. iframe.

Differential Revision: https://phabricator.services.mozilla.com/D175585
2023-04-24 23:35:51 +00:00
Jules Simplicio
9b01dfaf74 Bug 1798404 - adding design tokens to Storybook project r=mstriemer,hjones,desktop-theme-reviewers,dao,morgan
This adds the file design-tokens.css which hosts our
tier 1 and tier 2 design tokens. Components can use these
to define their own tier 3 tokens.

Differential Revision: https://phabricator.services.mozilla.com/D164507
2023-04-24 21:11:53 +00:00
Nicolas Chevobbe
664b953b47 Bug 1824910 - Bug 1829100 - [devtools] Decode folder name in Debugger Sources Tree. r=devtools-reviewers,bomsy.
We were decoding groups and files source items label,
but not folders.
We fix this and take the occasion to use decodeURI instead
of the non-standard unescape.
A test is added to ensure the source tree items are rendered
as expected.

Differential Revision: https://phabricator.services.mozilla.com/D176145
2023-04-24 13:46:58 +00:00
Nicolas Chevobbe
feabae8cb0 Bug 1829100 - [devtools] Prevent navigation from network message link. r=bomsy,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D176152
2023-04-24 12:21:39 +00:00
Alexandre Poirot
8dafd0fd7f Bug 1822258 - [devtools] Cover JavaScript tracing against source-mapped sources. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D172543
2023-04-23 21:40:03 +00:00
Alexandre Poirot
f05c27c0c2 Bug 1822307 - [devtools] Ensure checking highlightedLineRange's related source. r=devtools-reviewers,nchevobbe
We were not reading highlightedLineRange's sourceId
and so we might have been highlighting the wrong lines.

Move some logic up to Editor/index which knows about the displayed source.
This also help completely disable the HighlightedLines component until
an highlights start.

Differential Revision: https://phabricator.services.mozilla.com/D175878
2023-04-21 18:00:43 +00:00