layout | title | authors | date | updated | description | hero | alt | tags | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
layouts/blog-post.njk |
What's New In DevTools (Chrome 103) |
|
2022-06-14 |
2022-06-14 |
Record double-click and right-click events, new options to measure user flow in Lighthouse and more. |
image/dPDCek3EhZgLQPGtEG3y0fTn4v82/TWCiJaqb6IKBRsOyqYBo.jpg |
|
{% Partial 'devtools/banner.md' %}
{% YouTube id='LyMts4yfQu8' %}
The Recorder panel can now capture double-click and right-click events.
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/qsleBCUrr2twMujW0R94.png", alt="Capture double-click and right-click events in the Recorder panel", width="800", height="572" %}
In this example, start a recording and try to perform the following steps:
- Double-click the card to enlarge it
- Right-click the card and select an action from the context menu
To understand how Recorder captured these events, expand the steps:
- Double-click is captured as
type: doubleClick
. - Right-click event is captured as
type: click
but with thebutton
property is set tosecondary
. Thebutton
value of a normal mouse click isprimary
.
Chromium issues: 1300839, 1322879, 1299701, 1323688
You can now use Lighthouse to measure your website’s performance beyond page load.
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/3GGcCxlOGrnXLMfp0t9y.png", alt="New timespan and snapshot mode in the Lighthouse panel", width="800", height="507" %}
The Lighthouse panel now supports 3 modes of user flow measurement:
- Navigation reports analyze a single page load. Navigation is the most common report type. All Lighthouse reports before the current version are navigation reports.
- Timespans reports analyze an arbitrary time period, typically containing user interactions.
- Snapshots reports analyze the page in a particular state, typically after the user has interacted with it.
For example, let’s measure the performance of adding items to cart on this demo page. Select the Timespan mode and click Start timespan. Scroll and add a few items to the cart. Once you are done, click on End timespan to generate a Lighthouse report of the user interactions.
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/pq9Vg8xOUzplWAlXGJEa.png", alt="Timespan mode", width="800", height="549" %}
See User flows in Lighthouse to learn about the unique use cases, benefits, and limitations of each mode.
Chromium issue: 1291284
DevTools will now zoom in based on your mouse cursor rather than the playhead position.With the latest cursor-based zoom, you can move your mouse to anywhere in the track, and zoom in to the desired area right away.
{% Video src="video/dPDCek3EhZgLQPGtEG3y0fTn4v82/U8d1PjOFZuGkyOXHQ5Z8.mp4", autoplay=true, loop=true, class="screenshot" %}
See Performance Insights to learn how to get actionable insights and improve your website’s performance with the panel.
Chromium issue: 1313382
DevTools now shows a confirmation dialog before deleting a performance recording.
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/DaoCroAA60WmMLpuVU9P.png", alt="Confirm to delete a performance recording", width="800", height="549" %}
Chromium issue: 1318087
You can now reorder panes in the Elements panel based on your preference.
For example, when you open DevTools on a narrow screen, the Accessibility pane is hidden under the Show more button. If you frequently debug accessibility issues, you can now drag the pane to the front for easier access.
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/hcaQzMTxecNyw4RY0PMX.png", alt="Reorder panes in the Elements panel", width="800", height="616" %}
Chromium issue: 1146146
DevTools now supports picking a color outside of the browser. Previously, you could only pick a color within the browser.
In the Styles pane, click on any color preview to open a color picker. Use the eyedropper to pick color from anywhere.
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/JAp1UdPCnWNduuNadLVz.png", alt="Picking a color outside of the browser", width="800", height="450", class="screenshot" %}
Chromium issue: 1245191
The debugger now shows the inline values preview correctly.
In this example, the double
function has an input parameter a
and a variable x
. Put a breakpoint at the return
line and run the code. The inline preview shows values a
and x
correctly. Previously, the debugger did not show the value x
in the inline preview.
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/XMHyRsyK24fWLK7o72K7.png", alt="Improved inline value preview during debugging", width="800", height="534" %}
Chromium issue: 1316340
The WebAuthn tab now has the new Supports large blob checkbox for virtual authenticators.
This checkbox is disabled by default. You can enable it only for the authenticators with ctap2
protocol that support resident keys.
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/m58oDW2ZwCMxX6zoUoJM.png", alt=" Support large blobs for virtual authenticators", width="800", height="601" %}
Chromium issue: 1321803
Two new keyboard shortcuts are now available in the Sources panel:
- Toggle navigation sidebar (left) with Control / Command + Shift + Y
- Toggle debugger sidebar (right) with Control / Command + Shift + H
{% Img src="image/dPDCek3EhZgLQPGtEG3y0fTn4v82/1PacYBEm9DoSeW7iai8M.png", alt="New keyboard shortcuts for the Sources panel", width="800", height="494" %}
Chromium issues: 1226363
Previously, developers experience random failure during:
- Debugging with Codepen example
- Identifying source location of performance issues in a Codepen example
- Missing Component tab when React DevTools is enabled
Here are a few fixes on source maps to improve the overall debugging experience:
- Correct mapping between location and offset for inline scripts and source location
- Use fallback information for frame’s text location
- Properly resolve relative urls with frame's URL
{# https://chromium.googlesource.com/v8/v8/+/d821a6a373ecf086a2ef0d233ace7f3431e47732 #} {# https://chromium.googlesource.com/devtools/devtools-frontend/+/9d3d33e0bde8357d58a3c4981dd016e9b9c553f3 #} {# https://chromium.googlesource.com/devtools/devtools-frontend/+/04a58f2837c1ec9e78bd722bbe81e9cd7ab38727 #}
Chromium issues: 1319828, 1318635, 1305475
{% Partial 'devtools/reach-out.md' %} {% Partial 'devtools/whats-new.md' %}