Index: Source/web/FrameLoaderClientImpl.cpp |
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp |
index b23c973cd5e46249f90cbc82be65273a748681a9..5fae110cc09fb7ab05af38fb53aa3cdf469312f0 100644 |
--- a/Source/web/FrameLoaderClientImpl.cpp |
+++ b/Source/web/FrameLoaderClientImpl.cpp |
@@ -57,6 +57,7 @@ |
#include "modules/gamepad/NavigatorGamepad.h" |
#include "modules/serviceworkers/NavigatorServiceWorker.h" |
#include "modules/storage/DOMWindowStorageController.h" |
+#include "modules/vr/NavigatorVRDevice.h" |
#include "platform/MIMETypeRegistry.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/UserGestureIndicator.h" |
@@ -132,6 +133,8 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() |
if (RuntimeEnabledFeatures::serviceWorkerEnabled()) |
NavigatorServiceWorker::from(*document); |
DOMWindowStorageController::from(*document); |
+ if (RuntimeEnabledFeatures::vRDeviceEnabled()) |
+ NavigatorVRDevice::from(*document); |
} |
} |
// FIXME: when extensions go out of process, this whole concept stops working. |