зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1509442 - Enter a realm here. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D13481 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
cb3d965403
Коммит
d418ca74d9
|
@ -382,6 +382,13 @@ void AudioBuffer::GetChannelData(JSContext* aJSContext, uint32_t aChannel,
|
|||
|
||||
already_AddRefed<ThreadSharedFloatArrayBufferList>
|
||||
AudioBuffer::StealJSArrayDataIntoSharedChannels(JSContext* aJSContext) {
|
||||
nsPIDOMWindowInner* global = GetParentObject();
|
||||
if (!global || !global->AsGlobal()->GetGlobalJSObject()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
JSAutoRealm ar(aJSContext, global->AsGlobal()->GetGlobalJSObject());
|
||||
|
||||
// "1. If any of the AudioBuffer's ArrayBuffer have been detached, abort
|
||||
// these steps, and return a zero-length channel data buffers to the
|
||||
// invoker."
|
||||
|
|
Загрузка…
Ссылка в новой задаче