Closed Bug 1855677 Opened 2 years ago Closed 2 years ago

tabs.captureVisibleTab() not working in manifest v3 for firefox

Categories

(Firefox :: Extension Compatibility, defect)

Firefox 118
Desktop
All
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: neelabhnagaich, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Steps to reproduce:

While migrating my addon to manifest v3, I am not able to execute method tabs.captureVisibleTab(), even after adding all the premissions as mentioned in the docs.
Here is my manifest for permission looks like:
"permissions": [
"downloads",
"cookies",
"tabs",
"activeTab",
"storage",
"menus",
"contextMenus",
"notifications",
"unlimitedStorage"
],
"host_permissions": [
"<all_urls>"
],

Actual results:

captureVisibleTab method is undefined.

Expected results:

tabs.captureVisibleTab() should not be undefined after adding the requied permissions in mv3.

The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Tabbed Browser

A correct component seems to be (Firefox) Extension Compatibility. If incorrect, please set the right one.

@Neelabh: Could you please explain how I should use the attached file in order to reproduce the issue?

Thank you for your contribution!

Component: Tabbed Browser → Extension Compatibility
Flags: needinfo?(neelabhnagaich)
OS: Unspecified → All
Hardware: Unspecified → Desktop

Hello Daniel,
On discussing on community forum I came to know that we need to provide the option permission manually after which this seems to be working fine and I am able to execute this method.
It's just that with MV3 we need to do this extra permission step.
Thanks for your reply I think this bug can be closed.

Flags: needinfo?(neelabhnagaich)

Closing this report based on the last comment.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: