desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Bonjourr extension shows up on private window with no permission enabled

Open DDiegoLopez opened this issue 6 months ago • 4 comments

Preliminary Checks

  • [x] I have read and understood the important section above.
  • [x] I have searched existing issues and avoided creating duplicates.
  • [x] I am not filing an enhancement request.
  • [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • [x] I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

When opening a private window in Zen, the extension loads even though it hasn't been given permission to run in private windows, but it seems that precisely because it doesn't have permission, the extension crashes.

Expected behavior

opening default private window from zen

Actual behavior

Bonjour shows up on private window with no permission enabled

Steps to reproduce

  1. set zen.urlbar.replace-newtab to false
  2. download bonjourr and set extension to show up on homepage with private window permission disabled
  3. open a private window

Screenshots and videos

Bonjour shows up on private window with no permission enabled

Image

This window should open by default not bonjour

Image

Version

1.20.2b

What platform are you seeing the problem on?

Linux (Flatpak)

What component is this issue related to?

Extensions

Relevant log output if applicable


DDiegoLopez avatar Jun 05 '26 00:06 DDiegoLopez

I can replicate this issue, but in the private window, only the default open tab is bonjour, after I create more new tabs it switches back to the default new tab

shadowash8 avatar Jun 05 '26 08:06 shadowash8

What firefox does when the permission is given is this: The default new tab open in firefox private window is a normal private window tab and the new tabs are the customized new tabs.

@mr-cheffy should we do it as firefox does? I can't think of any other solution to this problem.

ashvwinn avatar Jun 05 '26 19:06 ashvwinn

I can replicate this issue, but in the private window, only the default open tab is bonjour, after I create more new tabs it switches back to the default new tab

@shadowash8 @ashvwinn That's the problem, it didn't happen in previous versions. It's not supposed to open as the default tab; it's supposed to not display at all because it doesn't have permission.

DDiegoLopez avatar Jun 05 '26 19:06 DDiegoLopez

it didn't happen in previous versions

I suspect its caused due to this change: https://github.com/zen-browser/desktop/pull/13976/changes#diff-b4e966da4366bfc60d1e4f64c3202aa7d0eeef09eacf6362cb76ed5112ecc75cR864

ashvwinn avatar Jun 05 '26 19:06 ashvwinn