Index: Source/web/FrameLoaderClientImpl.cpp |
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp |
index 487e4a771da87db2c681bf7715a76206c56998f4..1c1e605c7dbeb8ed7432077a25e9f87974e2847a 100644 |
--- a/Source/web/FrameLoaderClientImpl.cpp |
+++ b/Source/web/FrameLoaderClientImpl.cpp |
@@ -73,6 +73,7 @@ |
#include "core/frame/Settings.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()) |