| Index: third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| index ec49f61e664176189c9eb02eb905e52881ac2b5f..9ef4489c674985325f37a19d9de3a3ccbf984b27 100644
|
| --- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| +++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| @@ -57,6 +57,10 @@ ScriptPromise NavigatorVR::getVRDisplays(ScriptState* scriptState) {
|
| }
|
|
|
| UseCounter::count(*document, UseCounter::VRGetDisplays);
|
| + ExecutionContext* executionContext = scriptState->getExecutionContext();
|
| + String errorMessage;
|
| + if (!executionContext->isSecureContext(errorMessage))
|
| + UseCounter::count(*document, UseCounter::VRGetDisplaysInsecureOrigin);
|
|
|
| controller()->getDisplays(resolver);
|
|
|
|
|