Index: Source/web/FrameLoaderClientImpl.cpp |
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp |
index 381eaddb3109848c30be3f04cd371f9caded4205..db1f2150b3c2592cb9c2251946b323a26b836e96 100644 |
--- a/Source/web/FrameLoaderClientImpl.cpp |
+++ b/Source/web/FrameLoaderClientImpl.cpp |
@@ -76,6 +76,7 @@ |
#include "core/rendering/HitTestResult.h" |
#include "modules/device_orientation/DeviceMotionController.h" |
#include "modules/device_orientation/DeviceOrientationController.h" |
+#include "modules/devicelight/DeviceLightController.h" |
#include "modules/screen_orientation/ScreenOrientationController.h" |
#include "platform/MIMETypeRegistry.h" |
#include "platform/UserGestureIndicator.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()) |