HelloZeroNet / HelloZeroNet/ZeroNet

Cannot use ZeroNet in Private Browsing due to localStorage

Aperta
#828 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
18.8k
Fork
2.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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')

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.