| Index: third_party/WebKit/Source/modules/vr/VRDisplay.cpp
|
| diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
|
| index 29f0f3bcf0fcda35c85471cb3f3e075424bc83c5..4cf3973662823f203c01223e67c35aa38b26ad44 100644
|
| --- a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
|
| +++ b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
|
| @@ -282,8 +282,6 @@ ScriptPromise VRDisplay::requestPresent(ScriptState* scriptState,
|
| return promise;
|
| }
|
|
|
| - m_isPresenting = false;
|
| -
|
| // A valid number of layers must be provided in order to present.
|
| if (layers.size() == 0 || layers.size() > m_capabilities->maxLayers()) {
|
| forceExitPresent();
|
| @@ -349,6 +347,7 @@ ScriptPromise VRDisplay::requestPresent(ScriptState* scriptState,
|
| if (firstPresent) {
|
| bool secureContext = scriptState->getExecutionContext()->isSecureContext();
|
| if (!m_display) {
|
| + forceExitPresent();
|
| DOMException* exception = DOMException::create(
|
| InvalidStateError, "The service is no longer active.");
|
| resolver->reject(exception);
|
|
|