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

PDFs Not Working in Brave Web Browser #817

Closed
qazero opened this issue Apr 27, 2021 · 9 comments
Closed

PDFs Not Working in Brave Web Browser #817

qazero opened this issue Apr 27, 2021 · 9 comments
Labels
Issue: Reproduced Issue reproduced without uncertainties Status: Fixed in Next Build Fixed in the next Sandboxie version

Comments

@qazero
Copy link

qazero commented Apr 27, 2021

Describe the bug
Unable to open PDFs in the latest version of Brave web browser inside of Sandboxie. I've been running Brave sandboxed inside of Sandboxie for years without any problem. However, in one of the recent Brave updates, PDFs no longer open inside of sandboxed Brave but they work fine without using the Sandboxie sandbox for Brave.

To Reproduce
Steps to reproduce the behavior:

  1. Set Brave as your default web browser and PDF viewer in Windows
  2. Configure Sandboxie to force Brave to run inside the sandbox
  3. Double click on any PDF file on your computer (if your configuration is correct per above, Brave will open sandboxed inside Sandboxie)
  4. The PDF doesn't display, it says "Couldn't load plugin" per the screenshot below

image

Expected behavior
The PDF should be displayed in Brave running sandboxed with Sandboxie. I tried opening the PDF without running sandboxed and it displays fine. Interestingly, PDFs work fine in Chrome running sandboxed with Sandboxie so I'm not sure what the issue is with Brave.

Screenshots
See screenshot above.

System details and installed software (please provide the following information):
Sandboxie: 5.49.7 (64 bit)

Brave 1.23.73 Chromium: 90.0.4430.85 (Official Build) (64-bit)
Revision 5bc145d831c180d9ff94f29a0d7a2e1cbd30ef36-refs/branch-heads/4430@{#1311}
OS Windows 10 OS Version 2009 (Build 19042.928)

Sandboxie configuration

My initial sandboxie.ini settings

[GlobalSettings]
Template=RpcPortBindings
Template=Windows10CoreUI
Template=FireFix_for_Win7
Template=Kaspersky
Template=InternetDownloadManager
Template=AdobeDistiller
Template=Avira_Antivirus
Template=KeyScrambler
Template=WindowsRasMan
Template=WindowsLive
Template=OfficeLicensing
Template=OfficeClickToRun
ActivationPrompt=n
ClosedFilePath=*\Windows.System.Launcher.dll
SpecialImage=firefox,brave.exe

.....

[UserSettings_08DA01C0]
SbieCtrl_UserName=user
SbieCtrl_NextUpdateCheck=1619633987
SbieCtrl_UpdateCheckNotify=n
SbieCtrl_ShowWelcome=n
SbieCtrl_WindowCoords=505,612,1553,884
SbieCtrl_ActiveView=40021
SbieCtrl_AutoApplySettings=y
SbieCtrl_SettingChangeNotify=n
SbieCtrl_HideWindowNotify=n
SbieCtrl_HideMessage=1320,[19748]
SbieCtrl_HideMessage=1319,[19748]
SbieCtrl_ProcessViewColumnWidths=250,70,300
SbieCtrl_BoxExpandedView=DefaultBox,Test

.....

ConfigLevel=8
AutoRecover=y
BlockNetworkFiles=y
Template=SkipHook
Template=FileCopy
Template=Firefox_Force
Template=Chrome_Force
Template=IExplore_Favorites_RecoverFolder
Template=IExplore_Force
Template=qWave
Template=WindowsFontCache
Template=BlockPorts
Template=LingerPrograms
Template=Chrome_Phishing_DirectAccess
Template=Firefox_Phishing_DirectAccess
Template=AutoRecoverIgnore
RecoverFolder=%Desktop%
BorderColor=#00FFFF,off
Enabled=y
BoxNameTitle=-
AutoDelete=y
NeverDelete=n
ForceProcess=brave.exe
ForceProcess=microsoftedge.exe

.....

@isaak654
Copy link
Collaborator

isaak654 commented Apr 29, 2021

This post won't fix your issue (most likely), but in order to improve your configuration, I would suggest to remove these lines from GlobalSettings:

Template=Windows10CoreUI
Template=FireFix_for_Win7
ActivationPrompt=n
SpecialImage=firefox,brave.exe
ClosedFilePath=*\Windows.System.Launcher.dll

The first three lines are outdated, the fourth one is as useless as wrong (basically it says that brave is a firefox fork - this mistake was made by David months ago and then fixed internally), while the fifth one is related to an old workaround that's no longer needed, because it's included in the source code.

@qazero
Copy link
Author

qazero commented May 21, 2021

Any update regarding this?

@isaak654
Copy link
Collaborator

isaak654 commented Jun 5, 2021

Release v0.7.5 / 5.49.8 is out, please confirm whether the issue is fixed or not.

@DavidXanatos DavidXanatos added the More Info Needed More information is needed to move forward label Jun 7, 2021
@NewKidOnTheBlock
Copy link
Contributor

NewKidOnTheBlock commented Jun 8, 2021

SB 5.49.8 + Brave Portable 1.25.68-74
Bug confirmed.
This error message appears for all PDFs, not just local ones.
If I try to open a random .pdf in sandboxed Brave, it throws the "Couldn't load plugin" message.

Edit:
The issue seems to be with Brave, because PDFs can be opened in sandboxed Chrome Portable 91.

@isaak654
Copy link
Collaborator

isaak654 commented Jun 9, 2021

I'm able to reproduce it right now in Plus 0.7.5, by following the steps in the first post.
Additionally I recommend, in order to reproduce it, to force pdf opening with Brave through the use of "Open With" feature in the context menu in one PDF of your choice.

@isaak654 isaak654 added Type: Bug Something isn't working to investigate and removed More Info Needed More information is needed to move forward labels Jun 9, 2021
@isaak654
Copy link
Collaborator

Somebody confirmed that it can be reproduced with Sandboxie Classic 5.50.1 (issue #903)

@isaak654 isaak654 added the Known Issue Old known Sandboxie issues label Jun 14, 2021
@qazero
Copy link
Author

qazero commented Jun 14, 2021

Why was this closed? Is there a fix planned?

@isaak654
Copy link
Collaborator

Why was this closed? Is there a fix planned?

This is still open, I think you're making confusion with another closed issue.

@isaak654 isaak654 added the ToDo To be done label Jun 14, 2021
@qazero
Copy link
Author

qazero commented Jun 14, 2021

Thank you :)

@isaak654 isaak654 added the Issue: Reproduced Issue reproduced without uncertainties label Jun 15, 2021
@isaak654 isaak654 added Chromium 90+ compatibility regression Status: Fixed in Next Build Fixed in the next Sandboxie version and removed Known Issue Old known Sandboxie issues ToDo To be done Type: Bug Something isn't working to investigate labels Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Reproduced Issue reproduced without uncertainties Status: Fixed in Next Build Fixed in the next Sandboxie version
Projects
None yet
Development

No branches or pull requests

4 participants