| Index: Source/web/FrameLoaderClientImpl.cpp
|
| diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
|
| index 71b7f0ba53014df785569b2cecd3505590938d31..1c4e63e0fef941dd49c16d7a81f6231a4e7b17f7 100644
|
| --- a/Source/web/FrameLoaderClientImpl.cpp
|
| +++ b/Source/web/FrameLoaderClientImpl.cpp
|
| @@ -71,6 +71,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"
|
| @@ -117,6 +118,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())
|
|
|