Repository navigation
inspector: fix builds without SQLite - #67722
Open
christianaurichzm wants to merge 1 commit into
Open
christianaurichzm wants to merge 1 commit into
christianaurichzm wants to merge 1 commit into
Conversation
dom_storage_agent.h includes node_webstorage.h, which needs sqlite3.h, so `./configure --without-sqlite` only compiles together with `--without-inspector`. Forward-declare webstorage::Storage there and build the agent's web storage fallback only with SQLite. Without it, getDOMStorageItems reports unregistered storage as unavailable. Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
Collaborator
|
Review requested:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67722 +/- ##
=======================================
Coverage 90.54% 90.54%
=======================================
Files 801 801
Lines 284119 284119
Branches 54882 54883 +1
=======================================
+ Hits 257257 257261 +4
+ Misses 17022 17011 -11
- Partials 9840 9847 +7
🚀 New features to boost your workflow:
|
aduh95
approved these changes
Nov 23, 2026
Collaborator
jakecastelli
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
./configure --without-sqlitefails to compile unless the inspector is disabled too:Since #62145,
dom_storage_agent.hincludesnode_webstorage.h, which needs SQLite. This replaces the include with a forward declaration and puts the code that readslocalStorageandsessionStoragebehindHAVE_SQLITE. Without SQLite,getDOMStorageItemsstill returns what was registered withinspector.DOMStorage.registerStorage(). Anything else gets the same "storage is unavailable" error as whenlocalStorageis missing.v24.x and v26.x got the same include in 24.16.0 and 26.1.0.
Refs: #62145