Skip to content

About usage of pdf.js in WebView #36

@scientificware

Description

@scientificware

Extracted from mozilla/pdf.js#15087

Configuration:

  • Web browser and its version: WebView 102.0.5005.125 ( Released on 13 june 2022 )
  • Operating system and its version: Android 10
  • PDF.js version: 2.9.359 to 2.14.305
  • Is a browser extension:

Steps to reproduce the problem:

  1. See FXMessages X6
  2. MainActivity
Tested pdf.js Version Legacy PDF displayed Error Message Work around
✔️ 2.9.359 Prebuilt ✔️ ⚠️
✔️ 2.10.377 Prebuilt ✔️ ⚠️
✔️ 2.11.338 Prebuilt Uncaught SyntaxError
✔️ 2.12.313 Prebuilt Uncaught SyntaxError
✔️ 2.13.216 Prebuilt Uncaught SyntaxError
2.13.216 Prebuilt
✔️ 2.14.305 Prebuilt Uncaught SyntaxError switch to 2.14.305 Prebuilt Legacy
✔️ 2.14.305 Prebuilt ✔️ ✔️ ⚠️

2.14.305 :

I/chromium: [INFO:CONSOLE(1753)] "Uncaught SyntaxError: Unexpected token '='", source: file:///android_asset/js/moz_pdfjs/build/pdf.js (1753)
I/chromium: [INFO:CONSOLE(1561)] "Uncaught SyntaxError: Unexpected token '='", source: file:///android_asset/js/moz_pdfjs/web/viewer.js (1561)

2.14.305 Legacy :

I/chromium: [INFO:CONSOLE(665)] "_readPreferences: "Cannot read property 'getItem' of null".", source: file:///android_asset/js/moz_pdfjs/web/viewer.js (665)
I/chromium: [INFO:CONSOLE(2101)] "PDF 36e9d6a8dec85dbda59b93a5ad1dcb1d [1.3 ESP Ghostscript 815.03 / -] (PDF.js: 2.14.305)", source: file:///android_asset/js/moz_pdfjs/web/viewer.js (2101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions