For content (addon) principals we can store a permission since they're regular content principals. The check here also supports the extension scheme: https://searchfox.org/mozilla-central/rev/19f4fa1c9253a783b0ec2664f2bd91ce963aeec0/toolkit/mozapps/handling/ContentDispatchChooser.jsm#420 However, running the POC from this bug, I end up with a BrowsingContext with no chrome window assigned that we can use for showing the dialog in. We fail the checks here: https://searchfox.org/mozilla-central/rev/19f4fa1c9253a783b0ec2664f2bd91ce963aeec0/toolkit/mozapps/handling/ContentDispatchChooser.jsm#338,345
Bug 1792138 Comment 12 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
For content (addon) principals we can store a permission since they're regular content principals. The check here also supports the extension scheme: https://searchfox.org/mozilla-central/rev/19f4fa1c9253a783b0ec2664f2bd91ce963aeec0/toolkit/mozapps/handling/ContentDispatchChooser.jsm#420 However, running the POC from this bug, I end up with a BrowsingContext with no chrome window associated that we can use for showing the dialog in. We fail the checks here: https://searchfox.org/mozilla-central/rev/19f4fa1c9253a783b0ec2664f2bd91ce963aeec0/toolkit/mozapps/handling/ContentDispatchChooser.jsm#338,345