rNeomy / reader-view

Access Firefox's built in reader view from right click context menu
https://webextension.org/listing/chrome-reader-view.html
Mozilla Public License 2.0
471 stars 74 forks source link

stuff.mit.edu - Missing host permission for the tab #162

Open ianchanning opened 1 year ago

ianchanning commented 1 year ago

Screenshot from 2023-02-01 20-23-23

For some reason on https://stuff.mit.edu I get:

"Missing host permission for the tab"

and it refuses to display your reader view. I tested on various pages all the way up to the root. This was the first page I came across: https://stuff.mit.edu/people/dpolicar/writing/poetry/poems/fareForward.html

Seems that it's a general Firefox extension problem, but not sure why I get the error just for this one site and not others. For example https://mit.edu is fine.

From what little I know its something to do with the manifest.json permissions and host_permissions.

ianchanning commented 1 year ago

Further notes - the page is in 'Quirks mode'

Screenshot from 2023-02-01 20-42-12

Regular Firefox reader view works:

Screenshot from 2023-02-01 20-40-01

The similar plugin to yours, unclutter, also fails, but fails silently.

rNeomy commented 1 year ago

The site is sandboxed, hence the extension is not able to access its content! As far as I can tell, there is no way to bypass it. I'll keep this open for suggestions.

Content-Security-Policy: sandbox allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-scripts allow-top-navigation