Closed
Bug 1742281
Opened 3 years ago
Closed 3 years ago
Extensions API permissions.request does not resolve/call back
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: daniel.munkacsi, Unassigned)
Details
Attachments
(1 file)
5.09 KB,
application/x-zip-compressed
|
Details |
Steps to reproduce:
- Click extension icon
- Click button in extension popup to "enable" extension on current site (active tab)
- Browser shows a prompt which requests host permission from user
- User clicks "Allow"
- Some logic executes immediately after/in direct response to the user's action on the permission prompt (i.e. after they click Allow/Deny)
Actual results:
Step 4's logic does not execute - nothing is executed in response to the user action on the perimission request prompt
This happens because the callback passed to chrome.permissions.request(perm, callback) does not get called, or when using the Promise-based browser.permissions.request(perm), the Promise returned by the function never resolves.
Note, this only happens when calling the permissions.request function brings up the permission request prompt/alert which the user needs to action (click Allow/Deny).
E.g.
browser.permissions.request(hostPerm, (granted) => {
// this should execute immediately after user clicks Allow/Deny
});
Expected results:
Logic in step 4 should execute.
Group: firefox-core-security
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•