mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1186708 - Fix debug-only assert (crash) on advanced browserWindow constraint. r=jesup
This commit is contained in:
parent
d33a73d425
commit
e515b47043
@ -1683,12 +1683,12 @@ MediaManager::GetUserMedia(nsPIDOMWindow* aWindow,
|
|||||||
if (!privileged) {
|
if (!privileged) {
|
||||||
// only allow privileged content to set the window id
|
// only allow privileged content to set the window id
|
||||||
if (vc.mBrowserWindow.WasPassed()) {
|
if (vc.mBrowserWindow.WasPassed()) {
|
||||||
vc.mBrowserWindow.Construct(-1);
|
vc.mBrowserWindow.Value() = -1;
|
||||||
}
|
}
|
||||||
if (vc.mAdvanced.WasPassed()) {
|
if (vc.mAdvanced.WasPassed()) {
|
||||||
for (MediaTrackConstraintSet& cs : vc.mAdvanced.Value()) {
|
for (MediaTrackConstraintSet& cs : vc.mAdvanced.Value()) {
|
||||||
if (cs.mBrowserWindow.WasPassed()) {
|
if (cs.mBrowserWindow.WasPassed()) {
|
||||||
cs.mBrowserWindow.Construct(-1);
|
cs.mBrowserWindow.Value() = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user