Closed Bug 1460659 Opened 8 years ago Closed 8 years ago

CSP blocks bookmarklets in reader view

Categories

(Toolkit :: Reader Mode, defect)

60 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 866522

People

(Reporter: ivan.idris, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:60.0) Gecko/20100101 Firefox/60.0 Build ID: 20180503143129 Steps to reproduce: On Mac View/Reader View then clicked bookmarklet with code: javascript:var%20isScrolling;%20var%20scrolldelay;%20function%20pageScroll()%20{%20window.scrollBy(0,1);%20scrolldelay%20=%20setTimeout('pageScroll()',50);%20isScrolling%20=%20true;%20}%20if(!isScrolling)%20{%20pageScroll();%20}%20else%20{%20isScrolling%20=%20false;%20clearTimeout(scrolldelay);%20} Actual results: Did not work. If not in reader view works fine. Expected results: Should work in reader view. THis is important because we don't want to be disctracted while reading etc sof fix it please
Browser console output: Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). reader
Has STR: --- → yes
Component: Untriaged → Reader Mode
OS: Unspecified → All
Product: Firefox → Toolkit
Hardware: Unspecified → All
Summary: Bookmarklet not working in reader view → CSP blocks bookmarklets in reader view
This is fundamentally the same as bug 866522. We're not going to weaken or remove the CSP from about:reader just to enable bookmarklets.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Why not? If it is such a big deal to you give us a workaround. No point using a browser if it doesn't support minimal features.
You need to log in before you can comment on or make changes to this bug.