microsoft / MicrosoftEdge-Extensions

This is a community space for Microsoft Edge Add-ons developers, to share resources and information about building, publishing and growing their Microsoft Edge extension.
MIT License
134 stars 120 forks source link

Background permission and error in windows.create() #109

Open aropb opened 10 months ago

aropb commented 10 months ago

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?

jacksteamdev commented 9 months ago

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

Bhuvana-Priya commented 9 months ago

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.

aropb commented 8 months ago

Do you have any news on this bug? Thanks.

Bhuvana-Priya commented 8 months ago

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.

aropb commented 8 months ago

Hi,

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

jacksteamdev commented 8 months ago

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

ChristianNoelSchmid commented 4 months ago

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?

aropb commented 4 months ago

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

ChristianNoelSchmid commented 4 months ago

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

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?

derline commented 3 months ago

This issue still exists! My version is 122.0.2365.80.

aropb commented 3 months ago

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

GaurangTandon commented 1 month ago

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.