Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index e6a1c2a2164163bece4edb9320396b058e828e01..b95b3bc6d2b16094cbcd7f90aa4d09f82a9b5e6c 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -152,6 +152,7 @@ |
#include "modules/app_banner/AppBannerController.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" |
@@ -1608,6 +1609,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); |
} |
} |