| Index: Source/web/FrameLoaderClientImpl.cpp
|
| diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
|
| index ad753c8403aec3dd6d65b403cb08cfba0106e3b5..c251ca48fd1048626054724050605128ec6d26f5 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"
|
| @@ -120,6 +121,8 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld()
|
| 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())
|
|
|