Opened 4 years ago

Closed 4 years ago

Last modified 2 years ago

#18592 closed defect (wontfix)

pdfjs breaks when javascript.enabled=false

Reported by: cypherpunks Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I'm using hardened tor browser 6.0a4 in high security mode with noscript disabled and javascript.enabled=false (noscript somehow breaks sites in ways that disabling javascript doesn't; I haven't figured it out yet or found a good testcase).

When I navigate to a pdf, e.g. https://upload.wikimedia.org/wikipedia/commons/d/d3/Test.pdf I get a blank pdfjs viewer. It seems disabling javascript breaks the viewer, which is silly: most of firefox is written in JS and it doesn't stop working. pdfjs, as a built-in component, shouldn't either. But of course it shouldn't execute any JS found in the pdf file (I don't know whether it will by default).

Workaround is to set pdfjs.disabled=true and download them. But I'd rather have a built-in viewer.

Child Tickets

Change History (2)

comment:1 Changed 4 years ago by gk

Resolution: wontfix
Status: newclosed

It does not execute any JS found in the PDF file. That said. I think the way to resolve your problem is using NoScript for disabling content JavaScript and getting it fixed to not breaks sites.

comment:2 Changed 2 years ago by cypherpunks

Summary: pdfjs breaks when javascript disabledpdfjs breaks when javascript.enabled=false
Note: See TracTickets for help on using tickets.