Open Bug 1940396 Opened 5 months ago Updated 3 months ago

browser.tabs.captureVisibleTab doesn't capture video player content (video player have black screen)

Categories

(GeckoView :: General, defect)

Firefox 135
defect

Tracking

(firefox134 affected, firefox135 affected, firefox136 affected)

Tracking Status
firefox134 --- affected
firefox135 --- affected
firefox136 --- affected

People

(Reporter: mironnesvetaylov, Unassigned, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Steps to reproduce:

  1. Install the attached extension on your Android device.
  2. Go to YouTube (or any website with a video player) and start watching any video.
  3. Open the extension popup and press the "Take Screenshot" button.

Actual results:

The tab page was successfully captured and inserted into the popup, but the video player appears black. I have attached a video for better understanding. (The extension and the screen recording are in one archive because I am unable to attach multiple files here.)

Note: You might think the black screen of the video player is due to opening the popup window, but it also occurs when I capture a screenshot through repl when debugging the extension without opening the popup.

Expected results:

The screenshot should contain the video player content.

Due to the 10MB limit, I was unable to attach the ZIP archive, so I uploaded it to Dropbox

https://www.dropbox.com/scl/fo/c6ug0mlnrqtiqfjjnq5pg/APTVHSBa0A9v-7r--fmvVmM?rlkey=wj0hwdzgtpygx93yspawspo68&st=2dago6vo&dl=0

Hello,

I reproduced the issue on the latest Nightly (136.0a1 Build #2016066663, hg-bf40d95ccc9b+,
GV: 136.0a1-20250108093633, AS: 136.20250107050243), Beta (135.0b1 Build #2016066343, hg-a1e5d1f58aca+, GV: 135.0-20250106170344, AS: 135.0) and Release (134.0 Build #2016064983, hg-b8005f63d9eb+, GV: 134.0-20241230151726, AS: 134.0) for Android on an Oppo Reno6 5G running Android 13.

The screenshot taken via the extension does not contain the video player content and appears black.

Status: UNCONFIRMED → NEW
Ever confirmed: true

The severity field is not set for this bug.
:willdurand, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(wdurand)
Flags: needinfo?(wdurand)

This is almost certainly not a bug in extensions framework, but I'm not sure if it's a bug in GV, or some lower layout/rendering layer, so moving to Firefox Untriaged for someone who knows better where it belongs.

Component: Android → Untriaged
Product: WebExtensions → Firefox

Trying with GeckoView::General

Component: Untriaged → General
Product: Firefox → GeckoView
Attached file test extension.zip

Attaching test extension here.

It seems to work fine for me on macOS, not sure if it fails with a specific type of video/codec.

(In reply to Francesco Lodolo [:flod] from comment #6)

Created attachment 9468271 [details]
test extension.zip

Attaching test extension here.

It seems to work fine for me on macOS, not sure if it fails with a specific type of video/codec.

I forgot to point out in the issue title that the problem only appears in Firefox on Android devices. Everything works fine on PC. Or do you mean something else when you said it works on macOS?

The severity field is not set for this bug.
:owlish, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bugzeeeeee)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: