Closed Bug 1017328 Opened 12 years ago Closed 11 years ago

[Flatfish] PDF files render incorrectly in the browser app

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ggp, Assigned: yifan)

References

Details

(Whiteboard: [Flatfish][TCP])

Attachments

(4 files)

Steps to reproduce: 1- Open the browser app 2- Navigate to a PDF file (I can consistently reproduce this with https://crypto.stanford.edu/craig/easy-fhe.pdf , for example) 3- The file gets rendered incorrectly. OS version 1.4.0.0-prerelease Git commit info: 2014-01-20 07:27:55 62f5852a
Attached image bug-pdf.png
This bug can also be reproduce at OS version: 2.1.0.0-prerelese Hardware revision: flatfish Platform version: 33.0a1 Build Identifier: 20140618202826 Gaia Identifier: 2014-06-18 20:14:05 2526b49a
I can't reproduce this bug at hamachi: B2G: b91a268d3415fd5eec2fab45d3072067e8c0b33d Gecko: a16e68c38aabd1d9c86c8a6fa4e8291dbefeb59e Gaia: 2b1524b9bd1c321d40fe0bea0e26bc2f00f74919
Blocks: flatfish
Component: Gaia::Browser → Gaia::PDF Viewer
Whiteboard: [Flatfish][TCP]
Can you provide a test URL?
Flags: needinfo?(ggoncalves)
Do you mean a PDF file that reproduces the issue? I provided one in the initial report: https://crypto.stanford.edu/craig/easy-fhe.pdf Thanks for looking into this!
Flags: needinfo?(ggoncalves)
Awesome. I can also reproduce this. Maybe the pdf.js version needs to be updated for the devices.
Severity: normal → major
OS: All → Gonk (Firefox OS)
Hardware: All → ARM
the problem happens just with Pdfs with images and layers
Attached image the bug in Flatfish 2.1
Assignee: nobody → yliao
Attached file pull request
Updating pdf.js to version 1.0.524 fix the problem.
Attachment #8466071 - Flags: review?(21)
Comment on attachment 8466071 [details] [review] pull request I'm fine on the principle but I would prefer bdhal or yury to validate that this version works as expected and does not have some bad surprises for Gaia.
Attachment #8466071 - Flags: review?(21) → review?(ydelendik)
Comment on attachment 8466071 [details] [review] pull request ffos has its own viewer that is created by running `node make b2g`. the pull request replaces b2g with the standard one, which is too heavy for ffos.
Attachment #8466071 - Flags: review?(ydelendik) → review-
Comment on attachment 8466071 [details] [review] pull request Thank you for the correction. Updated the pdf.js version with 'node make b2g'.
Attachment #8466071 - Flags: review- → review?(ydelendik)
Comment on attachment 8466071 [details] [review] pull request Looks good when CSS conflict resolved
Attachment #8466071 - Flags: review?(ydelendik) → review+
Yi-Fan, Do you mind updating to the latest pdf.js master? It includes a patch for bug 1054590 which fixes gaia bug 1016817. Thanks.
Thanks for the suggestion. I'll update it and the pull request to be reviewed.
Comment on attachment 8466071 [details] [review] pull request Update pdf.js to version 1.0.700 to use the new web component based header (gaia-header) I'm not sure if you'd like the 2 commits be squashed into one. Please feel free to advice. Thank you!
Attachment #8466071 - Flags: review+ → review?(ydelendik)
Comment on attachment 8466071 [details] [review] pull request Looks good > I'm not sure if you'd like the 2 commits be squashed into one. Please feel > free to advice. Thank you! I have no preference on squashing.
Attachment #8466071 - Flags: review?(ydelendik) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Backout commit: 721809bad3fc5fcaf00f7b25cacccfab2ff9c499 This commit updated pdf.js to version 1.0.700 which also fixed bug 1016817. But produced bug 1056989. Reverting to 1.0.524 reopens bug 1016817. This bug is unaffected.
See Also: → 1016817, 1056989
Per Comment 18 ("This bug is unaffected"), clear verifyme and modify status to VERIFIED FIXED.
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: