| Index: Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| diff --git a/Source/modules/webmidi/NavigatorWebMIDI.cpp b/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| index 9bff3d7c69ca786f01e8eb4b92815ddf90b5e47a..02db6374dc1bded4372e0744a31f3cc823f539ab 100644
|
| --- a/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| +++ b/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| @@ -65,7 +65,7 @@ NavigatorWebMIDI& NavigatorWebMIDI::from(Navigator& navigator)
|
| {
|
| NavigatorWebMIDI* supplement = static_cast<NavigatorWebMIDI*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
|
| if (!supplement) {
|
| - supplement = new NavigatorWebMIDI(navigator.frame());
|
| + supplement = new NavigatorWebMIDI(navigator.localFrame());
|
| provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
|
| }
|
| return *supplement;
|
| @@ -78,7 +78,7 @@ ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, Navi
|
|
|
| ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, const MIDIOptions& options)
|
| {
|
| - if (!frame() || frame()->document()->activeDOMObjectsAreStopped()) {
|
| + if (!localFrame() || localFrame()->document()->activeDOMObjectsAreStopped()) {
|
| return ScriptPromise::reject(scriptState, toV8(DOMError::create("AbortError"), scriptState->context()->Global(), scriptState->isolate()));
|
| }
|
|
|
|
|