mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout 39fe6a5577d7, bustage
This commit is contained in:
parent
25e1bb2c84
commit
2bae4a865d
@ -112,13 +112,6 @@ public:
|
||||
// Create a media stream.
|
||||
nsCOMPtr<nsDOMMediaStream> stream = nsDOMMediaStream::CreateInputStream();
|
||||
|
||||
nsPIDOMWindow *window = static_cast<nsPIDOMWindow*>
|
||||
(nsGlobalWindow::GetOuterWindowWithId(mWindowID));
|
||||
|
||||
if (window && window->GetExtantDoc()) {
|
||||
stream->CombineWithPrincipal(window->GetExtantDoc()->NodePrincipal());
|
||||
}
|
||||
|
||||
// Add our listener. We'll call Start() on the source when get a callback
|
||||
// that the MediaStream has started consuming. The listener is freed
|
||||
// when the page is invalidated (on navigation or close).
|
||||
@ -357,7 +350,7 @@ MediaManager::GetUserMedia(nsPIDOMWindow* aWindow, nsIMediaStreamOptions* aParam
|
||||
|
||||
nsresult rv = aParams->GetPicture(&picture);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
||||
/**
|
||||
* If we were asked to get a picture, before getting a snapshot, we check if
|
||||
* the calling page is allowed to open a popup. We do this because
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include "mozilla/Services.h"
|
||||
|
||||
#include "nsHashKeys.h"
|
||||
#include "nsGlobalWindow.h"
|
||||
#include "nsClassHashtable.h"
|
||||
#include "nsObserverService.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user