Bug 1679925 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The permission requesting popup looks to be bound to the context tab instead of the active tab, even if the requested permission is not related to a specific website. This causes a non-intuitive result when we request a permission from the tab context menu.

# Steps to reproduce

1. Start Firefox.
2. Open multiple tabs in a window.
3. Go to `about:debugging`.
4. Load the attached `testcase.xpi` as a temporary extension.
5. Right-click on a background tab.
6. Choose "Request Permission".

# Actual result

* Nothing happens. The permission requesting popup does not appear.
* When I close the context menu and activate the background tab, the permission requesting popup appears for the tab.

# Expected result

* The permission requesting popup appears immediately.

# Environment

* Nightly 85.0a1 (build id: 20201130215246) on Windows 10 Pro 20H2
* Firefox 83.0 (build id: 20201126174332) on ArchLinux

# Compatibility note

Google Chrome doesn't support `contexts:['tab']` type context menu, so this is quite Firefox specific issue.
The permission requesting popup looks to be bound to the context tab instead of the active tab, even if the requested permission is not related to a specific website (e.g. `bookmarks`). This causes a non-intuitive result when we request a permission from the tab context menu.

# Steps to reproduce

1. Start Firefox.
2. Open multiple tabs in a window.
3. Go to `about:debugging`.
4. Load the attached `testcase.xpi` as a temporary extension.
5. Right-click on a background tab.
6. Choose "Request Permission".

# Actual result

* Nothing happens. The permission requesting popup does not appear.
* When I close the context menu and activate the background tab, the permission requesting popup appears for the tab.

# Expected result

* The permission requesting popup appears immediately.

# Environment

* Nightly 85.0a1 (build id: 20201130215246) on Windows 10 Pro 20H2
* Firefox 83.0 (build id: 20201126174332) on ArchLinux

# Compatibility note

Google Chrome doesn't support `contexts:['tab']` type context menu, so this is quite Firefox specific issue.

Back to Bug 1679925 Comment 0