Closed
Bug 1387506
Opened 8 years ago
Closed 8 years ago
activeTab permission not granted in commands API for command "_execute_browser_action"
Categories
(WebExtensions :: General, defect, P2)
Tracking
(firefox57 fixed)
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
References
Details
Attachments
(1 file)
The activeTab permission is not applied when the special _execute_browser_action command triggers the browser.browserAction.onClicked event. The fix for bug 1287159 is thus incomplete.
Steps to reproduce:
1. Install #Display Anchors version 1.3 @ https://addons.mozilla.org/en-US/firefox/addon/display-_anchors/versions/?page=1#version-1.3
2. Open a page, e.g. https://github.com/Rob--W/display-anchors/issues/3
3. Press the extension button in the toolbar.
4. Reload the page (to clear any activeTab permission).
5. Press Ctrl-Shift-A.
Expected result:
Step 3 and 5 should enable the activeTab permission (According to https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/permissions#activeTab_permission).
The extension will inject a content script with chrome.tabs.executeScript that toggles the visibility of blue text.
- After step 3, blue text becomes visible.
- After step 5, blue text is hidden.
Actual result:
- After step 5, a notifications appears that shows that access has been denied (this shows that activeTab did not work).
- If step 4 is omitted, then the expected result occurs, because the activeTab permission from step 3 is still active (thus the bug that prevents activeTab from being applied correctly in step 5 does not affect the extension's functionality).
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → rob
Status: NEW → ASSIGNED
Updated•8 years ago
|
Priority: -- → P2
![]() |
||
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8893921 [details]
Bug 1387506 - Apply activeTab permission for _execute_browser_action
https://reviewboard.mozilla.org/r/164986/#review172894
Attachment #8893921 -
Flags: review?(kmaglione+bmo) → review+
Pushed by rob@robwu.nl:
https://hg.mozilla.org/integration/autoland/rev/78541ddae4ab
Apply activeTab permission for _execute_browser_action r=kmag
![]() |
||
Comment 4•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•