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

Microsoft Edge - Certain context menus/prompts aren't working in Sandboxie #3331

Open
qazero opened this issue Sep 26, 2023 · 16 comments
Open
Labels
ToDo To be done Type: Regression A Sandboxie build broke compatibility, it was working before Workaround Temporary or alternative solution

Comments

@qazero
Copy link

qazero commented Sep 26, 2023

Describe what you noticed and did

Sandboxie: 5.662 64 bit

Microsoft Edge: 117.0.2045.43 (Official build) (64-bit)
Revision: fe8879882c1b3f88d70d7eee3124f6773ecdb5cc
Chromium version: 117.0.5938.92
Operating system: Windows 10 Version 22H2 (Build 19045.3448)

When running Microsoft Edge in Sandboxie, the following 2 context menus/prompts aren't being displayed. However, it works fine when running Edge outside of Sandboxie.

  1. When logged into Gmail and trying to add an attachment to an email (by clicking on the paperclip icon) nothing happens. CTRL+O on the keyboard to open a new file in Edge also doesn't work (which is supposed to open the same prompt to find a file).

  2. CTRL+F doesn't display the find-in-page text-box in the top right hand corner of the browser.

How often did you encounter it so far?

Every time

Affected program

Microsoft Edge: 117.0.2045.43 (Official build) (64-bit)

Download link

N.A.

Where is the program located?

The program is installed only outside the sandbox.

Expected behavior

The same context menus should appear as when Edge is running outside of Sandboxie.

What is your Windows edition and version?

Windows 10 Version 22H2 (Build 19045.3448) 64 bit

In which Windows account you have this problem?

A local account (Administrator).

Please mention any installed security software

Kaspersky (Edge extension has been uninstalled)

What version of Sandboxie are you running?

5.662 64 bit

Is it a new installation of Sandboxie?

I recently did a new clean installation.

Is it a regression?

No response

In which sandbox type you have this problem?

I only reproduced it with Sandboxie Classic.

Can you reproduce this problem on a new empty sandbox?

I can confirm it also on a new empty sandbox.

Did you previously enable some security policy settings outside Sandboxie?

N.A.

Crash dump

No response

Trace log

No response

Sandboxie.ini configuration

[GlobalSettings]

Template=Proxifier
Template=Edge_Fix
Template=Edge_Win11Fix
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

[DefaultBox]

ConfigLevel=10
AutoRecover=y
BlockNetworkFiles=y
Template=Edge_Force
Template=Brave_Force
Template=OpenSmartCard
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=Firefox_Force
Template=Chrome_Force
Template=IExplore_Favorites_RecoverFolder
Template=IExplore_Force
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=Chrome_Phishing_DirectAccess
Template=Firefox_Phishing_DirectAccess
Template=AutoRecoverIgnore
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Desktop%
BorderColor=#00FFFF,off
Enabled=y
BoxNameTitle=-
AutoDelete=y
NeverDelete=n
ForceProcess=microsoftedge.exe

[UserSettings_08DA01C0]

SbieCtrl_UserName=user
SbieCtrl_NextUpdateCheck=1696105846
SbieCtrl_UpdateCheckNotify=n
SbieCtrl_ShowWelcome=n
SbieCtrl_WindowCoords=-2668,221,2475,1265
SbieCtrl_ActiveView=40021
SbieCtrl_AutoApplySettings=y
SbieCtrl_SettingChangeNotify=n
SbieCtrl_HideWindowNotify=n
SbieCtrl_HideMessage=2224,msedge.exe [DefaultBox]
SbieCtrl_HideMessage=2308,[41 / C0000024]
SbieCtrl_HideMessage=2335
SbieCtrl_HideMessage=2335,plugins_nms.exe [3
SbieCtrl_HideMessage=2335,plugins_nms.exe [33 / 5]
SbieCtrl_HideMessage=1320,[19748]
SbieCtrl_HideMessage=1319,[19748]
SbieCtrl_ProcessViewColumnWidths=250,70,300
SbieCtrl_BoxExpandedView=DefaultBox,Test

[Test]

Enabled=y
ConfigLevel=10
AutoRecover=y
BlockNetworkFiles=y
Template=OpenSmartCard
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=Chrome_Phishing_DirectAccess
Template=Firefox_Phishing_DirectAccess
Template=AutoRecoverIgnore
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Favorites%
RecoverFolder=%Desktop%
BorderColor=#00FFFF,ttl
@qazero qazero added the Confirmation pending Further confirmation is requested label Sep 26, 2023
@offhub
Copy link
Collaborator

offhub commented Sep 26, 2023

Does the find box open when you select "Find on Page" from the settings menu?

@qazero
Copy link
Author

qazero commented Sep 26, 2023

Nope

@offhub
Copy link
Collaborator

offhub commented Sep 27, 2023

I tried it on a host system running Windows 10 and on a virtual machine running Windows 11. I did not encounter this problem. There is no security software installed on either system other than Windows Defender.

  1. Create a new sandbox and
  2. add the following settings to its configuration, then
    UsePrivacyMode=y
  3. run the browser in that sandbox and
  4. see if there are any problems with the shortcuts.

@qazero
Copy link
Author

qazero commented Sep 27, 2023

The issue still persists. Also, just wanted to point out the issue isn't with the shortcuts, the find in page feature still works but the text box is missing so I can't see what I'm typing to search for or how many results are returned. Please see the screenshots below to better illustrate the issue:

Without Sandboxie:
image

With Sandboxie (tried in both private mode and non-private and using your line added to my config file):
image

Also, the issue still persists regarding the CTRL+O or Gmail attachments as well. I am running Windows 10 Version 22H2 (Build 19045.3448) 64bit. I tried uninstalling Kaspersky but the issue still persists.

@qazero
Copy link
Author

qazero commented Sep 27, 2023

Interestingly, after some trial and error I've come to the realization that the text search box is present but for some reason it is invisible. For some reason Sandboxie is not rendering it properly. After pressing CTRL+F the default behavior is to put the text input into the find-in-page text search box, but if I click on a blank part of the website it will remove the focus to outside of the text box (as it should). Next, if I put my cursor to where the text box should appear as shown in the first screenshot (on top of the "Sign Up" button in the top left hand corner) and then click, and then try typing something the focus is back to the find-in-page text search box instead of navigating to a new Sign Up page. This is how I know the search box is overlaid there just invisible for some reason. Any ideas on why this is happening only when opening Edge in Sandboxie and how to fix it?

@offhub
Copy link
Collaborator

offhub commented Sep 27, 2023

Try removing some of the templates in [GlobalSettings].

[GlobalSettings]

#Template=Proxifier
#Template=Edge_Fix
#Template=Edge_Win11Fix
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

@qazero
Copy link
Author

qazero commented Sep 27, 2023

Still no luck :/

@offhub
Copy link
Collaborator

offhub commented Sep 27, 2023

Try installing older versions. (starting from Release v1.9.8 / 5.64.8)

@qazero
Copy link
Author

qazero commented Sep 27, 2023 via email

@offhub
Copy link
Collaborator

offhub commented Sep 27, 2023

For testing purposes, to see if the same problem occurs in older versions.

@qazero
Copy link
Author

qazero commented Sep 27, 2023

Just did some testing. It appears the the issue was introduced in 5.65.1. Previous versions seem to work fine.

@offhub offhub added the Type: Regression A Sandboxie build broke compatibility, it was working before label Sep 27, 2023
@DavidXanatos
Copy link
Member

DavidXanatos commented Sep 30, 2023

@qazero thanks for testing in that case I would bet it was the fix for #1919
please test if NoRestartOnPAC=y resolves your issue

Important

NoRestartOnPAC=y is going to be changed to NoRestartOnPCA=y starting from version 1.11.4 / 5.66.4.
This requires a manual edit in the Sandboxie.ini configuration until a permanent fix is provided.

@DavidXanatos DavidXanatos added the ToDo To be done label Sep 30, 2023
@qazero
Copy link
Author

qazero commented Oct 3, 2023

Yes, that resolved my issue, thanks! Should I replace it with NoRestartOnPCA=y after 5.66.4 is released or will it automagically work without it in my config after updating?

@qazero
Copy link
Author

qazero commented Oct 6, 2023

Ok I'll leave that in my config even after updating, no problem. That being said, is there any reason why this should be required to be manually entered in the config file instead of making the change/fix for the next update? Figured that it was a bug since it takes away from the native functionality of the web browser no?

What I'm gathering is that fixing it would cause other things to break so the plan is to just stick with the band-aid fix by manually adding that line in the config? If so, while that's not ideal, it would suffice for me, I'm just happy it's working now. :)

@sandboxie-plus sandboxie-plus deleted a comment from qazero Oct 6, 2023
@DavidXanatos
Copy link
Member

I cant reproduce the issue on windows latest windows 10,
how do you start edge, doy ou force it, run as context menu in explorer or run from sandman?

@engrdev
Copy link

engrdev commented Mar 23, 2024

Adding NoRestartOnPCA=y solved my issue too. I'm using Google Chrome Version 123.0.6312.59 (Official Build) (64-bit) on Windows 10 Home Version 22H2 Build 19045.4170 with Sandboxie-Plus Version 1.13.3

I was experiencing a similar issue where right click context menus and Save As \ Open prompts were not displaying in Google Chrome.

@offhub offhub added Workaround Temporary or alternative solution and removed Confirmation pending Further confirmation is requested labels Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ToDo To be done Type: Regression A Sandboxie build broke compatibility, it was working before Workaround Temporary or alternative solution
Projects
None yet
Development

No branches or pull requests

4 participants