zen-browser / desktop

🌀 Experience tranquillity while browsing the web without people tracking you!
https://zen-browser.app
Mozilla Public License 2.0
13.93k stars 338 forks source link

Permission requests do not work on sites #1520

Open julienallexandre opened 2 weeks ago

julienallexandre commented 2 weeks ago

Captchas

What happened?

Here's a simple example of outlook notifications.

https://github.com/user-attachments/assets/cb2aaa11-5e63-4b08-8592-1c5cb8f901e0

Reproducible?

Version

1.0.1-a.2

What platform are you seeing the problem on?

macOS - Intel

Relevant log output

No response

linear[bot] commented 2 weeks ago

ZEN-1602 Permission requests do not work on sites

ulrichSchreiner commented 1 week ago

requesting the permission generates an error. when testing with the example from mozilla dev-network

https://mdn.github.io/dom-examples/to-do-notifications/

after clicking the "Enable notification" you get the following in the JS console

Failed to get subsystem status for purpose 
Object { rejected: true, message: Error }
​
message: Error: Attempt to postMessage on disconnected port
​​
columnNumber: 14
​​
fileName: "moz-extension://6156a1ac-7235-41e9-8304-717e3c3fb5fe/extension-utils.js"
​​
lineNumber: 72
​​
message: "Attempt to postMessage on disconnected port"
​​
stack: "sendPortMessageWithReply/<@moz-extension://6156a1ac-7235-41e9-8304-717e3c3fb5fe/extension-utils.js:72:14\nsendPortMessageWithReply@moz-extension://6156a1ac-7235-41e9-8304-717e3c3fb5fe/extension-utils.js:58:12\n@moz-extension://6156a1ac-7235-41e9-8304-717e3c3fb5fe/extension.js:247:12\n@moz-extension://6156a1ac-7235-41e9-8304-717e3c3fb5fe/extension-utils.js:130:57\n"