Bonjourr extension shows up on private window with no permission enabled
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
- set zen.urlbar.replace-newtab to false
- download bonjourr and set extension to show up on homepage with private window permission disabled
- open a private window
Screenshots and videos
Bonjour shows up on private window with no permission enabled
This window should open by default not bonjour
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
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
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.
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.
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