HelloZeroNet / HelloZeroNet/ZeroNet

Cannot use ZeroNet in Private Browsing due to localStorage

Open
#828 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Using any browser that properly implements localStorage isolation during Private Browsing (tested using Gecko and Webkit based browsers), the pages only load the ZeroNet wrapper, while pages remain otherwise blank.

It is important to use Private Browsing to avoid caching and other privacy concerns.

Per the browser's debugger, the problem lies on all.js, Line 4030.
if (Page.local_storage.sites_orderby === "modified") {
Error: null is not an object (evaluating 'Page.local_storage.sites_orderby')

Also Line 4820:
data = localStorage.getItem("site." + _this.site_info.address + "." + _this.site_info.auth_address);
Error: null is not an object (evaluating 'localStorage.getItem')

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in all.js around lines 4030 and 4820, where private-browsing failures are reported for Page.local_storage and localStorage. Reproduce the issue in a Gecko- or WebKit-based browser's Private Browsing mode and trace how storage is initialized. Done means ZeroNet pages load beyond the wrapper without the reported null-object errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.