From e515b470432207e572b67e748dd8d6cd4482832e Mon Sep 17 00:00:00 2001 From: Jan-Ivar Bruaroey Date: Thu, 23 Jul 2015 00:44:52 -0400 Subject: [PATCH] Bug 1186708 - Fix debug-only assert (crash) on advanced browserWindow constraint. r=jesup --- dom/media/MediaManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp index c0a914a966a..7af74e55c71 100644 --- a/dom/media/MediaManager.cpp +++ b/dom/media/MediaManager.cpp @@ -1683,12 +1683,12 @@ MediaManager::GetUserMedia(nsPIDOMWindow* aWindow, if (!privileged) { // only allow privileged content to set the window id if (vc.mBrowserWindow.WasPassed()) { - vc.mBrowserWindow.Construct(-1); + vc.mBrowserWindow.Value() = -1; } if (vc.mAdvanced.WasPassed()) { for (MediaTrackConstraintSet& cs : vc.mAdvanced.Value()) { if (cs.mBrowserWindow.WasPassed()) { - cs.mBrowserWindow.Construct(-1); + cs.mBrowserWindow.Value() = -1; } } }