Index: Source/web/FrameLoaderClientImpl.cpp |
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp |
index 7c3b52d74e50761451e76c140d80d860ce16ee87..7b36cc71aeeef56a3687ac1fb2f97071106709eb 100644 |
--- a/Source/web/FrameLoaderClientImpl.cpp |
+++ b/Source/web/FrameLoaderClientImpl.cpp |
@@ -53,6 +53,7 @@ |
#include "core/page/Page.h" |
#include "core/page/WindowFeatures.h" |
#include "core/rendering/HitTestResult.h" |
+#include "modules/device_light/DeviceLightController.h" |
#include "modules/device_orientation/DeviceMotionController.h" |
#include "modules/device_orientation/DeviceOrientationController.h" |
#include "modules/gamepad/NavigatorGamepad.h" |
@@ -119,6 +120,8 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld& |
Document* document = m_webFrame->frame()->document(); |
if (document) { |
WheelController::from(*document); |
+ if (RuntimeEnabledFeatures::deviceLightEnabled()) |
+ DeviceLightController::from(*document); |
if (RuntimeEnabledFeatures::deviceMotionEnabled()) |
DeviceMotionController::from(*document); |
if (RuntimeEnabledFeatures::deviceOrientationEnabled()) |