Index: Source/web/FrameLoaderClientImpl.cpp |
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp |
index 706b4b622586cadc904d4564a73962bc2aa981a7..984b88fc89de3169393815cb7d2661fd20b9814e 100644 |
--- a/Source/web/FrameLoaderClientImpl.cpp |
+++ b/Source/web/FrameLoaderClientImpl.cpp |
@@ -56,6 +56,7 @@ |
#include "modules/device_orientation/DeviceOrientationController.h" |
#include "modules/gamepad/NavigatorGamepad.h" |
#include "modules/serviceworkers/NavigatorServiceWorker.h" |
+#include "modules/vr/NavigatorVRDevice.h" |
#include "platform/MIMETypeRegistry.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/UserGestureIndicator.h" |
@@ -130,6 +131,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. |