HelloZeroNet / HelloZeroNet/ZeroNet

Cannot use ZeroNet in Private Browsing due to localStorage

Đang mở
#828 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
2.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.