Show prompt for device orientation access if the client does not implement the corres...
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Apr 2019 22:43:55 +0000 (22:43 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Apr 2019 22:43:55 +0000 (22:43 +0000)
commitbd094f6aee6eebad8694c8ea1dab086d91cfbffd
tree3c6a7699debd4368d2a6fbdcbf8bae6dfd92238a
parent94e40d006a5e691753d7167e31456b6b37982be7
Show prompt for device orientation access if the client does not implement the corresponding API delegate
https://bugs.webkit.org/show_bug.cgi?id=196971
<rdar://problem/49945840>

Reviewed by Alex Christensen.

Show prompt for device orientation access if the client does not implement the corresponding
API delegate, instead of rejecting access by default.

* UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::UIClient::shouldAllowDeviceOrientationAndMotionAccess):
* UIProcess/Cocoa/WKOrientationAccessAlert.h: Added.
* UIProcess/Cocoa/WKOrientationAccessAlert.mm: Added.
(WebKit::presentOrientationAccessAlert):
* WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/en.lproj/Localizable.strings
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
Source/WebKit/UIProcess/Cocoa/WKOrientationAccessAlert.h [new file with mode: 0644]
Source/WebKit/UIProcess/Cocoa/WKOrientationAccessAlert.mm [new file with mode: 0644]
Source/WebKit/WebKit.xcodeproj/project.pbxproj