| commit | c6c36e479baec14186658d4536175ecaf29bb6e9 | [log] [tgz] |
|---|---|---|
| author | Benedikt Meurer <[email protected]> | Thu Mar 21 08:28:58 2024 |
| committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 21 08:55:27 2024 |
| tree | 41e41e8993724a31d728437205855f243ce37ba2 | |
| parent | cf229f3b2820ceda5fcceda045b909ab32bc9660 [diff] |
[console] Support custom formatters returning `null` for `body()`. As per (unofficial) custom formatter specification[1], it is perfectly valid to return `null` from the `body()` function, and the developer tools should fall back to using the default body formatter in those cases. This CL teaches DevTools front-end to just put the default object properties in place when expanding an object with a custom formatter whose `body()` returns `null`. Drive-by-fix: Also address a bunch of ESLint pragmas. [1]: https://firefox-source-docs.mozilla.org/devtools-user/custom_formatters/index.html#custom-formatter-structure Screenshot: https://i.imgur.com/KUvUKrt.png Fixed: b:329400119 Bug: b:40166562 Change-Id: Ia5c65c7ed21fe646e62dde245226de1632c671db Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5383080 Auto-Submit: Benedikt Meurer <[email protected]> Commit-Queue: Benedikt Meurer <[email protected]> Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Kim-Anh Tran <[email protected]>
The client-side of the Chrome DevTools, including all TypeScript & CSS to run the DevTools webapp.
The frontend is available on chromium.googlesource.com. Check out the project documentation for instructions to set up, use, and maintain a DevTools front-end checkout, as well as design guidelines, and architectural documentation.
DevTools frontend repository is mirrored on GitHub.
DevTools frontend is also available on NPM as the chrome-devtools-frontend package. It's not currently available via CJS or ES modules, so consuming this package in other tools may require some effort.
The version number of the npm package (e.g. 1.0.373466) refers to the Chromium commit position of latest frontend git commit. It's incremented with every Chromium commit, however the package is updated roughly daily.
All DevTools commits: View the log or follow @DevToolsCommits on Twitter
All open DevTools tickets on crbug.com
File a new DevTools ticket: new.crbug.com
Code reviews mailing list: [email protected]
@ChromeDevTools on Twitter
Chrome DevTools mailing list: groups.google.com/forum/google-chrome-developer-tools