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

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

Open
aropb opened this issue Sep 7, 2023 · 14 comments
Open

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

aropb opened this issue Sep 7, 2023 · 14 comments
Assignees

Comments

@aropb
Copy link

aropb commented Sep 7, 2023

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
Copy link

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

@Bhuvana-Priya
Copy link

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
Copy link
Author

aropb commented Nov 3, 2023

Do you have any news on this bug?
Thanks.

@Bhuvana-Priya
Copy link

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
Copy link
Author

aropb commented Nov 6, 2023

Hi,

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

@jacksteamdev
Copy link

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

@ChristianNoelSchmid
Copy link

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
Copy link
Author

aropb commented Feb 14, 2024

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

@ChristianNoelSchmid
Copy link

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
Copy link

ChristianNoelSchmid commented Feb 26, 2024

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
Copy link

derline commented Mar 10, 2024

This issue still exists!
My version is 122.0.2365.80.

@aropb
Copy link
Author

aropb commented Mar 10, 2024

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

@GaurangTandon
Copy link

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.

@derline
Copy link

derline commented Jul 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants