-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
inspector: initial support storage inspection #61139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Review requested:
|
cb8ff6d to
2150295
Compare
2150295 to
611b71e
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #61139 +/- ##
==========================================
- Coverage 88.53% 88.50% -0.04%
==========================================
Files 703 708 +5
Lines 208260 208778 +518
Branches 40160 40268 +108
==========================================
+ Hits 184384 184774 +390
- Misses 15882 16012 +130
+ Partials 7994 7992 -2
🚀 New features to boost your workflow:
|
40b69c5 to
4d0900b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how the Node.js APIs like node:sqlite would be represented on the devtools frontend. Showing it as either local storage or session sotrage would be confusing IMO.
/cc @nodejs/sqlite for opinion.
|
@legendecas It would not make sense to include it, because unlike local storage or session storage, SQLite databases need to be explicitly opened. There is no global SQLite database. |
|
So this feature should only be enabled for The local storage file path is set via cli |
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
|
I agree with limiting this implementation to localStorage. If we want to support other storage types in the future, I think we should either use the existing IndexedDB DevTools domain or add a dedicated section in DevTools for them. |
As shown in the image, this change is intended to enable inspecting storage in DevTools.
Currently, there is no feature to automatically record storage. Instead, storage data is registered using the DOMStorage.registerStorage method.
If this change is acceptable, I am planning to submit the following changes to Chrome DevTools.
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7274801