Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove PDF.js in favor of using PDFium #3846

Closed
9 of 12 tasks
bsclifton opened this issue Mar 21, 2019 · 10 comments · Fixed by brave/brave-core#2342
Closed
9 of 12 tasks

Remove PDF.js in favor of using PDFium #3846

bsclifton opened this issue Mar 21, 2019 · 10 comments · Fixed by brave/brave-core#2342

Comments

@bsclifton
Copy link
Member

bsclifton commented Mar 21, 2019

Test plan

See brave/brave-core#2342

Justification

Some of the reasons for removing include:

  • high memory overhead
  • large number of reported PDF issues

Tasks

  • remove option to disable PDF.js from settings
  • remove PDF.js manifest override
  • remove existing install of PDF.js (if present)
  • update build / GN flags to ensure PDFium is included/enabled
  • test existing PDF issues and close ones which are fixed with PDFium
  • security review

Round-up of PDF.js issues this will fix:

Issues that we'll have to ask users for help re-testing:

@bsclifton bsclifton self-assigned this Mar 21, 2019
@rebron rebron added the priority/P2 A bad problem. We might uplift this to the next planned release. label Mar 22, 2019
bsclifton added a commit to brave/brave-core that referenced this issue Apr 2, 2019
bsclifton added a commit to brave/brave-core that referenced this issue Apr 8, 2019
@simonhong simonhong self-assigned this Apr 14, 2019
@GeetaSarvadnya
Copy link

1+ https://community.brave.com/t/google-chrome-like-pdf-inline-pdf-viewer/54283/2

@CalamariDude
Copy link

Hi not sure if this is the right place to ask this but: I've been looking forward to this feature and I see it deployed to the nightly builds which I have. How do I update my stable brave browser to the newest release?

Thanks!

@bbondy
Copy link
Member

bbondy commented Jun 1, 2019

@CalamariDude you can grab Nightly here:
https://brave.com/download-nightly/

Every 3 weeks it'll migrate from Nightly to Dev
Dev to Beta
Beta to Release

There's a different download page for each.

@dionyziz
Copy link

Does this fix the issue with the URL bar not showing just the PDF URL also?

@KiaraGrouwstra
Copy link

KiaraGrouwstra commented Jul 14, 2019

@dionyziz just upgraded to nightly, looks like it does!

edit: I do feel there are a few minor cons to the switch as well:

@btlechowski
Copy link

btlechowski commented Jul 30, 2019

Awesome work!

Verification passed on

Brave 0.68.113 Chromium: 76.0.3809.62 (Official Build) beta (64-bit)
Revision 7b77856b3aa34d72f246d12340fc1ded8b2c0e83-refs/branch-heads/3809@{#798}
OS Windows 7 Service Pack 1 (Build 7601.24494)

Verified test plan from brave/brave-core#2342

Verified that PDF.js extension can still be installed and used as default.

Verified that PDF.js is deleted after update to PDFium
image

Verified opening pdfs over http and https works

Verification passed on

Brave 0.68.113 Chromium: 76.0.3809.62 (Official Build) beta (64-bit)
Revision 7b77856b3aa34d72f246d12340fc1ded8b2c0e83-refs/branch-heads/3809@{#798}
OS Linux
  • Verified Chrome PDF Viewer is installed and enabled
  • Verified able to load pdf file via http/https
  • Verfified PDFjs is removed upon upgrade
    image
  • Verified able to install PDFjs side by side
    image

Verified passed with

Brave 0.68.114 Chromium: 76.0.3809.87 (Official Build) beta (64-bit)
Revision 111fe1e15d5ced26080a7dc239bcfe70f6c49aad-refs/branch-heads/3809@{#967}
OS Mac OS X

@hacker-DOM
Copy link

Is there any way to enable the old viewer? I loved its functionality

@KiaraGrouwstra
Copy link

@dteiml:

Is there any way to enable the old viewer? I loved its functionality

I think you can just install it from the store.

@bsclifton
Copy link
Member Author

@dteiml what @tycho01 shared is correct - you can install PDF.js from the store 😄
https://chrome.google.com/webstore/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm

Once installed, it should work great! Please let us know if you run into any issues

@KiaraGrouwstra
Copy link

I don't think this still lets you use PDF.js for local files anymore though... 😞

fmarier added a commit that referenced this issue Jan 17, 2020
pdf.js was removed in #3846 and so this is no
longer needed.
fmarier added a commit that referenced this issue Jan 18, 2020
pdf.js was removed in #3846 and so this is no
longer needed.
petemill pushed a commit to brave/brave-core that referenced this issue Jul 27, 2020
pdf.js was removed in brave/brave-browser#3846 and so this is no
longer needed.
petemill pushed a commit to brave/brave-core that referenced this issue Jul 28, 2020
pdf.js was removed in brave/brave-browser#3846 and so this is no
longer needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

13 participants