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

PDFJS not installed by default #1375

Closed
LaurenWags opened this issue Oct 1, 2018 · 14 comments · Fixed by brave/brave-core#596
Closed

PDFJS not installed by default #1375

LaurenWags opened this issue Oct 1, 2018 · 14 comments · Fixed by brave/brave-core#596

Comments

@LaurenWags
Copy link
Member

Description

@GeetaSarvadnya and myself have run into an issue where PDFJS is not being installed for us with clean profiles. I noticed that the last time it appears to have been installed by default was with version 0.54.4. From 0.55.1 onward it is not installed by default for me. (unsure if @GeetaSarvadnya sees the same) I'm using macOS 10.12.6

Steps to Reproduce

  1. Use rm -rf ~/Library/Application\ Support/BraveSoftware and rm -rf ~/Library/Caches/BraveSoftware to remove any existing Brave data
  2. Delete app from Applications folder and delete existing .dmg file.
  3. Download 0.55.1 or later.

Actual result:

PDFJS is not installed by default
0551-nopdfjs

Expected result:

PDFJS installed by default
0544-pdfjs

Reproduces how often:

easily

Brave version (chrome://version info)

Brave 0.55.10 Chromium: 70.0.3538.22 (Official Build) beta(64-bit)
Revision ac9418ba9c3bd7f6baaffa0b055dfe147e0f8364-refs/branch-heads/3538@{#468}
OS Mac OS X

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds? n/a
  • Does it reproduce on browser-laptop? n/a

Website problems only:

  • Does the issue resolve itself when disabling Brave Shields? n/a
  • Is the issue reproducible on the latest version of Chrome? n/a

Additional Information

cc @GeetaSarvadnya @srirambv who also experienced the issue however @kjozwiak did not.

@bsclifton
Copy link
Member

@LaurenWags I think this is expected, right? If you launch Brave via the command line, you can use the following argument to show "built in" extensions: --show-component-extension-options

ex:
/Applications/Brave-Browser-Dev.app/Contents/MacOS/Brave\ Browser\ Dev --show-component-extension-options

cc: @yrliou

@LaurenWags
Copy link
Member Author

LaurenWags commented Oct 1, 2018

@kjozwiak were you launching via command line with the argument when you saw PDFJS installed?

also, @bsclifton if I launch with the argument this is what I see:
screen shot 2018-10-01 at 5 47 41 pm

@yrliou
Copy link
Member

yrliou commented Oct 1, 2018

PDF Viewer should be shown without that argument.

@bsclifton
Copy link
Member

bsclifton commented Oct 1, 2018

woah- it's showing the Chromium PDF Viewer?!

@yrliou
Copy link
Member

yrliou commented Oct 1, 2018

@bsclifton They're two different extensions, I think PDFJS (PDF Viewer) should be shown without the argument, which I could see that it is there in my Brave-Browser-Dev.

@bsclifton
Copy link
Member

@yrliou correct- I remember seeing that too. But I don't think we want Chromium PDF Viewer being loaded right? IIRC, including it increases the surface for vulnerabilities

cc: @diracdeltas

@bbondy
Copy link
Member

bbondy commented Oct 1, 2018

@LaurenWags Chromium PDF Viewer we can probably blacklist, pls branch off another issue for that with STR with the args @bsclifton mentioned.

@LaurenWags for this one, can you check if you have a firewall blocking
https://go-updater.brave.com/extensions by chance?

@bbondy
Copy link
Member

bbondy commented Oct 1, 2018

Or can you completely disable your firewall temporarily to try to narrow down the problem?

@LaurenWags
Copy link
Member Author

@bbondy disabling my firewall does not appear to help. I can get PDFJS by downloading version 0.54.4 but if I clear my profile and then try using version 0.55.1 or later PDFJS does not download.

@kjozwiak
Copy link
Member

kjozwiak commented Oct 2, 2018

@GeetaSarvadnya & @srirambv ran into the same thing under Win 10 and mentioned that they didn't see PDFJS being listed under chrome://extensions after initially starting brave-core. However, I haven't personally ran into this before.

@kjozwiak were you launching via command line with the argument when you saw PDFJS installed?

I was running it via the terminal/command line, but I wasn't using any argument/flags. Just the basic /Applications/Brave\ Browser\ Beta.app/Contents/MacOS/Brave\ Browser\ Beta.

@bbondy I don't think it's a firewall issue as @LaurenWags & @srirambv have had the PDFJS before as they verified a few issues. @LaurenWags confirmed that Little Snitch has also been disabled since the Ethereum work.

Could this be a network issue? When we're fetching PDFJS on startup, could it be possible that there's some kind of network error/timeout which prevents PDFJS from being installed? Would debugging with Wireshark help?

@GeetaSarvadnya
Copy link

@bbondy: As @LaurenWags @kjozwiak mentioned I ran into the same issue on Windows 10. I have tried uninstalling brave completely by deleting both Executable file folder and profile folders. But issue did not resolve, also i observed one thing there is no "Extension" folder in the profile folder path.
pdfjs issue on windows 10

@srirambv
Copy link
Contributor

srirambv commented Oct 2, 2018

I can reproduce this on clean profile for Beta and Dev on Windows. No PDF extension shown on chrome://extensions. Linux however for Beta shows the blank page momentarily before loading PDF extension. Linux Dev build shows instantly. This is happening on the same network for both Windows and Linux and default firewall settings on Windows.

@bbondy bbondy added the QA/Yes label Oct 10, 2018
bbondy added a commit to brave/brave-core that referenced this issue Oct 10, 2018
This also fixes a problem where PDF.js was not always installed.
This also fixes PDF.js disabling command line.
This also fixes intermittent PDF.js failures in tests.

Fix brave/brave-browser#1375
Fix brave/brave-browser#1253
Fix brave/brave-browser#1072
@bbondy
Copy link
Member

bbondy commented Oct 10, 2018

QA notes, when testing it won't show up in about:extensions anymore, only in about:components. And file access will now work.

@LaurenWags
Copy link
Member Author

LaurenWags commented Oct 12, 2018

Verified passed with

Brave 0.55.13 Chromium: 70.0.3538.54 (Official Build) beta(64-bit)
Revision 4f8e578b6680574714e9ed3bb9f02922b4dde40d-refs/branch-heads/3538@{#937}
OS Mac OS X

Verification Passed on

Brave 0.55.13 Chromium: 70.0.3538.54 (Official Build) beta(64-bit)
Revision 4f8e578b6680574714e9ed3bb9f02922b4dde40d-refs/branch-heads/3538@{#937}
OS Linux

image

Verification passed on

Brave 0.55.13 Chromium: 70.0.3538.54 (Official Build) beta (64-bit)
Revision 4f8e578b6680574714e9ed3bb9f02922b4dde40d-refs/branch-heads/3538@{#937}
OS Windows 7

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment