Open Bug 1373035 Opened 7 years ago Updated 1 year ago

Support "muted" property in tabs API

Categories

(Fenix :: WebExtensions, defect, P3)

All
Android

Tracking

(Not tracked)

People

(Reporter: nico, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: dev-doc-complete, Whiteboard: [tabs], triaged)

Attachments

(1 file)

Hello,

"muted" property of Webextension API's browser.tabs.update is documented as supported by Firefox for Android 54+:
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/update#Browser_compatibility

However, I get the following error in the console when used in Firefox 54 and 56.0a1 (2017-06-14 nightly):

Type error for parameter updateProperties (Property "muted" is unsupported by Firefox) for tabs.update. 

Steps to reproduce:
1. Install in Firefox for Android "Mute all inactive tabs" extension, which is almost a minimal test case: https://addons.mozilla.org/firefox/addon/mute-all-inactive-tabs/
2. Open a tab with a video, eg. https://advocacy.mozilla.org/encrypt/
3. Start the video
4. Switch to another tab.

Result: the error above appears in the console, the tab with the video is not muted (you can still hear its audio). This happens if the steps are followed in Firefox for desktop rather than on Android.

Expected result: no error, video tab muted.
Keywords: dev-doc-needed
Whiteboard: [android], triaged
Priority: -- → P3
Whiteboard: [android], triaged → [tabs], triaged
Attached image Bug1373035.png
I can reproduce this issue on Fennec 58.0.2, Fennec 59.0b13 and Fennec 60.0a1 (2018-03-01) under Android 8.0.0.

The error can also be seen when you switch tabs after install of the extension, without playing a video.

Please see the attached screenshot.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → Android
Hardware: Unspecified → All
Version: 56 Branch → Trunk
Product: Toolkit → WebExtensions
Depends on: 1618704
Summary: 'Property "muted" is unsupported by Firefox' (Android) ...although it is documented it is → Support "muted" property in tabs API
Severity: normal → S3
Component: Android → WebExtensions
Product: WebExtensions → Fenix
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: