hypothesis / hypothesis/via

PDF.js viewer triggers localStorage access error in Chrome's private browsing mode

Open
#412 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29
Forks
13
PR merge metrics
No merged PRs in 30d

Description

When testing an LMS PDF assignment in Incognito Mode in Chrome I noticed an error from Via3's copy of PDF.js in the console:

Chrome localhost error

In this environment, any attempt to access `window.localStorage` generates the following error:

```
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
```

Chrome version: 90.0.4430.19 (Official Build) dev (x86_64)

The PDF content still loaded though and I haven't noticed any adverse effects on using Hypothesis yet.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.