Closed Bug 1453740 Opened 3 years ago Closed 3 years ago

Crash when shared window is minimized


(Core :: WebRTC: Audio/Video, defect, P2)

60 Branch



Tracking Status
firefox60 --- verified
firefox61 --- verified


(Reporter: dminor, Assigned: dminor)


(Blocks 2 open bugs)



(1 file)


Make sure a folder is opened in background and not minimized (it will be needed later)

1. Start Firefox.
2. Login to
3. Go to (you have to be logged in with mozilla ldap account, or else it will say that the page is unsupported on Firefox).
4. Click on Start a new meeting.
5. Click on Start Meeting.
6. Click on Present Now and select a Window.
7. The folder from step 1 will be selected for screenshare.
8. After the screenshare started, minimize the folder.

On Ubuntu 16.04 (x64) this issue is not reproducible.

Here is a crash log from macOS:

Bug 1450658 says that Chrome always brings a window to the front when it is shared. I'm not sure if it also prevents it from being minimized.

The problem is that a minimized window has a resolution of 1x1 pixels, which causes the check here [1] to fail.

Rank: 15
Priority: P1 → P2
Blocks: hangouts
Comment on attachment 8967475 [details]
Bug 1453740 - Allow 1x1 windows in VP8EncoderImpl::InitEncode;

What's the upstream status of the same issue? Have they fixed it the same way?
Attachment #8967475 - Flags: review?(apehrson) → review+
Their vp8 codec code is unchanged [1]. I tested Chrome, and the behaviour is the same as what we have with this patch, the screen goes black when the window is minimized.

For what it's worth, we have a release assertion where they have a debug assertion, so it's possible that their codec init is failing silently, and the end result, a black screen, is the same in both cases.
Pushed by
Allow 1x1 windows in VP8EncoderImpl::InitEncode; r=pehrsons
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Comment on attachment 8967475 [details]
Bug 1453740 - Allow 1x1 windows in VP8EncoderImpl::InitEncode;

Approval Request Comment
[Feature/Bug causing the regression]:
I think this has been present since screensharing was implemented, a few months ago we switch a debug assert to a release assert and have since caught problems with screensharing.
[User impact if declined]:
Crashes if the shared window is minimized. This also fixes a crash if the shared window is maximized on OS X (Bug 1452561).
[Is this code covered by automated tests?]:
[Has the fix been verified in Nightly?]:
Has landed in Nightly, has not been fixed.
[Needs manual test from QE? If yes, steps to reproduce]: 
Yes please. Comment 1 has the steps to reproduce.
[List of other uplifts needed for the feature/fix]:
[Is the change risky?]:
[Why is the change risky/not risky?]:
This only affects windows which are 1x1 pixel in size. We used to crash in that case anyway.
[String changes made/needed]:
Attachment #8967475 - Flags: approval-mozilla-beta?
Flags: qe-verify+
I have reproduced the issue on Nightly (2018-04-12) under Windows 10 (x64) using STR from Comment 0.

The issue is fixed on latest Nightly (2018-04-16). Tests were performed on Windows 10 (x64), Ubuntu 16.04 (x64) and macOS 10.12.
Flags: qe-verify+
I should have mentioned in my uplift request that this bug affects Google hangouts / meet. We're hoping to get Firefox support for hangouts / meet enabled for 60, so this bug also impacts that.
Comment on attachment 8967475 [details]
Bug 1453740 - Allow 1x1 windows in VP8EncoderImpl::InitEncode;

fix a crash when minimizing a shared window on google meet, approved for 60.0b13
Attachment #8967475 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Duplicate of this bug: 1452561
The issue is fixed on Firefox 60.0b13 under Windows 10 (x64), Ubuntu 16.04 (x64) and macOS 10.11.
You need to log in before you can comment on or make changes to this bug.