MicrosoftEdge-Extensions icon indicating copy to clipboard operation
MicrosoftEdge-Extensions copied to clipboard

Background permission and error in windows.create()

Open aropb opened this issue 2 years ago • 14 comments
trafficstars

I am using the "background" permission in the MV3 extension. When the browser is closed, the windows.create() method is called in the tabs.onRemoved event. This works great in Chrome. But an error appears in Edge: "window creation is restricted in standalone sidebar mode".

I tried disabling the policies: StandaloneHubsSidebarEnabled, HubsSidebarEnabled. It didn't help. I don't understand what the sidebar has to do with it. This mistake just shouldn't happen!

I think this is a browser error. Is there a solution to this problem?

aropb avatar Sep 07 '23 07:09 aropb

This seems like a bug to me! We're also encountering it.

jacksteamdev avatar Sep 22 '23 12:09 jacksteamdev

Thank you for reporting this. The concerned team is aware of the issue and are looking into it. We will let you know for any update as soon as possible.

Bhuvana-Priya avatar Sep 27 '23 03:09 Bhuvana-Priya

Do you have any news on this bug? Thanks.

aropb avatar Nov 03 '23 09:11 aropb

Hi All,

This has been fixed in Edge Canary and should be working. We will let you know once it is live and fixed in Edge Stable versions as well.

Bhuvana-Priya avatar Nov 03 '23 12:11 Bhuvana-Priya

Hi,

I see that this is fixed in the stable version 119.0.2151.44.

aropb avatar Nov 06 '23 17:11 aropb

@Bhuvana-Priya This is brilliant! Kudos to the MS Edge development team!

jacksteamdev avatar Nov 06 '23 20:11 jacksteamdev

Hello, I'm currently on build 121.0.2277.112 (Official build) (32-bit), and it seems like this issue has been reintroduced. I'm attempting to use windows.create() to open a window when the browser is closed and I'm getting the error: "window creation is restricted in standalone sidebar mode". Has anyone else been having this issue again?

ChristianNoelSchmid avatar Feb 14 '24 14:02 ChristianNoelSchmid

Hello, Everything is fine with us, it works (Edge 121.0.2277.112 x64).

aropb avatar Feb 14 '24 18:02 aropb

Hi, thanks for the response, Interesting - it's possible there's something else going on then. Here's my Error output: image I'll keep investigating, thank you!

ChristianNoelSchmid avatar Feb 14 '24 20:02 ChristianNoelSchmid

Hi, this is still an ongoing issue for us. I was just wondering - is that error ("window creation is restricted in standalone sidebar mode") still supposed to come up under certain conditions? Am I just not setting my manifest file up correctly, or something like that?

ChristianNoelSchmid avatar Feb 26 '24 13:02 ChristianNoelSchmid

This issue still exists! My version is 122.0.2365.80.

derline avatar Mar 10 '24 04:03 derline

We do not repeat the mistake. What are you doing to get this error?

aropb avatar Mar 10 '24 07:03 aropb

I also noticed this error in Edge 124, but only a few times across thousands of users. So this issue probably happens only under some specific conditions. For example: maybe it only happens for extensions installed into Edge from the Chrome Web Store? Or only on admin controlled PCs? I'm not sure.

GaurangTandon avatar May 13 '24 09:05 GaurangTandon

We do not repeat the mistake. What are you doing to get this error?

@GaurangTandon @aropb It's this extension: https://microsoftedge.microsoft.com/addons/detail/saladict-popup-diction/idghocbbahafpfhjnfhpbfbmpegphmmp image

When I set a shortcut key for one of its functions (opening a small window) and set the response scope to "global," everything works fine as long as Edge is not closed. However, when Edge is closed and I press the shortcut key, the system prompt appears. image Regardless of whether it's downloaded from the Chrome store or the Edge store.

derline avatar Jul 11 '24 16:07 derline

傻逼玩意

derline avatar Jan 05 '25 10:01 derline