Closed
Bug 1667973
Opened 5 years ago
Closed 5 years ago
Add a sandbox for evaluating js scripts embedded in PDFs
Categories
(Firefox :: PDF Viewer, enhancement)
Firefox
PDF Viewer
Tracking
()
RESOLVED
FIXED
87 Branch
People
(Reporter: calixte, Assigned: calixte)
References
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•5 years ago
|
||
PDF files can embed some js code in order to validate, format, ... the data entered by a user in a PDF form.
So in order to safely execute this js code, we create a Cu.Sandbox with only what we need/want to expose to the scripts.
Pushed by cdenizet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8c8e776cbd29
Add a sandbox to evaluate js embedded in PDF r=bdahl,dveditz,robwu
Comment 3•5 years ago
|
||
Backed out for causing failures on browser_all_files_referenced.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/5e657efb7e68f12c4206df442eb9cd65aee3d68f
Failure log: https://treeherder.mozilla.org/logviewer?job_id=330488865&repo=autoland&lineNumber=2643
Flags: needinfo?(cdenizet)
Assignee | ||
Comment 4•5 years ago
|
||
I updated the patch to remove some js files from the whitelist in browser_all_files_referenced.js
and made a try:
https://treeherder.mozilla.org/jobs?repo=try&revision=95a0392b151f07a7141381c30ff4d2321ef96d1d&selectedTaskRun=UJlWcXIvSrKjQqs3ROiNCw.0
Flags: needinfo?(cdenizet)
Pushed by cdenizet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a13e286152a8
Add a sandbox to evaluate js embedded in PDF r=bdahl,dveditz,robwu
![]() |
||
Comment 6•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox87:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Updated•5 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•