sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.78k stars 1.54k forks source link

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

Open qazero opened 1 year ago

qazero commented 1 year ago

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
offhub commented 1 year ago

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

qazero commented 1 year ago

Nope

offhub commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Still no luck :/

offhub commented 1 year ago

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

qazero commented 1 year ago

But those wouldn't have a lot of the more recent fixes and tweaks...

offhub commented 1 year ago

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

qazero commented 1 year ago

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

DavidXanatos commented 1 year ago

@qazero thanks for testing in that case I would bet it was the fix for https://github.com/sandboxie-plus/Sandboxie/issues/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.

qazero commented 1 year ago

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 commented 1 year ago

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. :)

DavidXanatos commented 11 months ago

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 commented 7 months ago

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.