GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — inspector: fix builds without SQLite by christianaurichzm · Pull Request #67722 · nodejs/node

inspector: fix builds without SQLite #67722

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.

Sign up for GitHub

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

Merged
nodejs-github-bot merged 1 commit into nodejs:main from christianaurichzm:inspector-without-sqlite
Nov 25, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

inspector: fix builds without SQLite #67722

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1 commit
Select commit
b42cf85
inspector: fix builds without SQLite
christianaurichzm Nov 23, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
inspector: fix builds without SQLite
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 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@christianaurichzm
christianaurichzm committed Nov 23, 2026
commit b42cf8527b294da058cec5018f7013c1429a1439

There are no files selected for viewing

12 changes: 12 additions & 0 deletions 12 src/inspector/dom_storage_agent.cc
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#include "util.h"
#include "v8-exception.h"
#include "v8-isolate.h"
#if HAVE_SQLITE
#include "node_webstorage.h"
#endif // HAVE_SQLITE

namespace node {
namespace inspector {
Expand Down Expand Up @@ -98,6 +101,7 @@ protocol::DispatchResponse DOMStorageAgent::getDOMStorageItems(
bool is_local_storage = storageId->getIsLocalStorage();
const StorageMap* storage_map =
is_local_storage ? &local_storage_map_ : &session_storage_map_;
#if HAVE_SQLITE
std::optional<StorageMap> storage_map_fallback;
if (storage_map->empty()) {
auto web_storage_obj = getWebStorage(is_local_storage);
Expand Down Expand Up @@ -139,6 +143,12 @@ protocol::DispatchResponse DOMStorageAgent::getDOMStorageItems(
}
storage_map = &storage_map_fallback.value();
}
#else
if (storage_map->empty()) {
return protocol::DispatchResponse::ServerError(
"Could not read DOM storage items: storage is unavailable");
}
#endif // HAVE_SQLITE

auto result =
std::make_unique<protocol::Array<protocol::Array<protocol::String>>>();
Expand Down Expand Up @@ -317,6 +327,7 @@ void DOMStorageAgent::registerStorage(Local<Context> context,
}
}

#if HAVE_SQLITE
std::optional<node::webstorage::Storage*> DOMStorageAgent::getWebStorage(
bool is_local_storage) {
v8::Isolate* isolate = env_->isolate();
Expand All @@ -339,6 +350,7 @@ std::optional<node::webstorage::Storage*> DOMStorageAgent::getWebStorage(
return storage;
}
}
#endif // HAVE_SQLITE

bool DOMStorageAgent::canEmit(const std::string& domain) {
return domain == "DOMStorage";
Expand Down
5 changes: 4 additions & 1 deletion 5 src/inspector/dom_storage_agent.h
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
#include <string>
#include "env.h"
#include "node/inspector/protocol/DOMStorage.h"
#include "node_webstorage.h"
#include "notification_emitter.h"
#include "v8.h"

namespace node {
namespace webstorage {
class Storage;
} // namespace webstorage

namespace inspector {

class DOMStorageAgent : public protocol::DOMStorage::Backend,
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.