Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index 657ef0749a48fe71afbb43b7a7abc8ee5a761b61..707db09c93c1b5403f489e295eac47e77232bf14 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -151,6 +151,7 @@ |
#include "core/timing/Performance.h" |
#include "modules/geolocation/GeolocationController.h" |
#include "modules/notifications/NotificationPermissionClient.h" |
+#include "modules/permissions/PermissionController.h" |
#include "modules/presentation/PresentationController.h" |
#include "modules/push_messaging/PushController.h" |
#include "modules/screen_orientation/ScreenOrientationController.h" |
@@ -1607,6 +1608,8 @@ void WebLocalFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame> frame) |
ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->webScreenOrientationClient() : nullptr); |
if (RuntimeEnabledFeatures::presentationEnabled()) |
PresentationController::provideTo(*m_frame, m_client ? m_client->presentationClient() : nullptr); |
+ if (RuntimeEnabledFeatures::permissionsEnabled()) |
+ PermissionController::provideTo(*m_frame, m_client ? m_client->permissionClient() : nullptr); |
} |
} |