Closed Bug 822636 Opened 12 years ago Closed 9 years ago

[pdfjs] Possible CSP problems

Categories

(Firefox OS Graveyard :: Gaia::PDF Viewer, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 966865

People

(Reporter: macajc, Assigned: joshua-s)

Details

I've passed a static analysis on the source code of Gaia looking for possible problems regarding the default CSP. The pdfjs application has the following possible issues:

FILE: content/web/viewer.html

71:        <button id="errorShowMore" onclick="" oncontextmenu="return false;" data-l10n-id="error_more_info">
74:        <button id="errorShowLess" onclick="" oncontextmenu="return false;" data-l10n-id="error_less_info" hidden='true'>
31:    <script type="text/javascript">
Component: Gaia → Gaia::PDF Viewer
Should be fairly easy to fix, can I take this?  (I may need a little help because it is my first B2G bug.)
You're right, it should be easy. Go ahead and take it.

Beside the lines reported at the bug description there is another CSP error at line

79 : <button id="errorClose" oncontextmenu="return false;" data-l10n-id="error_close">

of the same file
Ok, I took it :)
Assignee: nobody → joshua-smith
Status: NEW → ASSIGNED
What branch should I submit a pull to?
Oh, I just saw that this pull will have to be submitted to the mozilla/pdf.js repository, not the gaia one.

(https://github.com/mozilla-b2g/gaia/blob/master/apps/pdfjs/README.md)
Adding someone on cc of the bug that might help you better than me on this.
It'd be best if you could do a pull request to https://github.com/mozilla/pdf.js.git and then we'll upstream the changes to gaia.
Ok, thanks!
Wow, I never got back to you guys on this :/ Is it still an issue?
Flags: needinfo?(carmen.jimenezcabezas)
I wouldn't think so. This seems to have been resolved in bug 966865. Closing this as duplicated
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(carmen.jimenezcabezas)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.