Network: Scope requestDeviceBoundSessionsView.css with @scope
Wrap `requestDeviceBoundSessionsView.css` in
`@scope to (devtools-widget > *)` and remove the redundant
`UI.inspectorCommonStyles` injection from
`RequestDeviceBoundSessionsView` so its Light DOM styles cannot leak
into unrelated views or nested widgets.
`installComponentRootStyles()` already applies `inspectorCommonStyles`
to the document and core shadow roots, so injecting a second copy in a
Light DOM view is unnecessary and violates
`@devtools/no-unscoped-light-dom-styles`.
Changes:
- Wrap `requestDeviceBoundSessionsView.css` in
`@scope to (devtools-widget > *)`.
- Remove `<style>${UI.inspectorCommonStyles}</style>` from
`RequestDeviceBoundSessionsView#DEFAULT_VIEW()`.
- Pass `includeCommonStyles: true` in the
`RequestDeviceBoundSessionsView` screenshot test so it matches
production; the golden is unchanged.
- Remove `RequestDeviceBoundSessionsView.ts` from the
`@devtools/no-unscoped-light-dom-styles` burndown list in
`eslint.config.mjs`.
Bug: 583742398
Change-Id: Ifef490db650e597912878812048b67dd8a58a8e0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/8857544
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
This repository contains the client side of Chrome DevTools. It contains all the TypeScript and CSS code that runs the DevTools web app.
The source code is on chromium.googlesource.com.
The Chromium DevTools documentation tells you how to do these tasks:
The documentation also contains design guidelines and architecture documentation.
Other documentation:
There is a mirror of the DevTools frontend repository on GitHub.
The DevTools frontend is also available on npm as the chrome-devtools-frontend package. The package does not supply CJS modules or ES modules. Thus, it can be difficult to use this package in other tools. For an example of how to use it, see this file.
The version number of the npm package (for example, 1.0.373466) is the Chromium commit position of the latest frontend Git commit. The version number increases with each Chromium commit. But we publish the package only approximately one time each day.
To get the latest news about DevTools development, do one or more of these steps:
Read What's new in DevTools.
Read Umar's Dev Tips.
Follow these accounts on X: @umaar, @malyw, @kdzwinel, @addyosmani, @paul_irish, @samccone, @mathias, @mattzeunert, @PrashantPalikhe, @ziyunfei, and @bmeurer.
Join the g/devtools-reviews@chromium.org mailing list. This list shows all pending code reviews.
Read the commit log, or follow @DevToolsCommits on X.
See all open DevTools bugs on crbug.com.
Use Chrome Canary and try the experiments.