haikuwebkit/Source/WebKitLegacy/ios/DefaultDelegates
Megan Gardner 3697b18261 Hide password echo when screen is being captured.
https://bugs.webkit.org/show_bug.cgi?id=212060
<rdar://problem/47653578>

Reviewed by Wenson Hsieh.

Source/WebCore:

When the screen is being captured, turn off the password echo.

* editing/InsertIntoTextNodeCommand.cpp:
(WebCore::InsertIntoTextNodeCommand::doApply):
* page/EditorClient.h:
(WebCore::EditorClient::isScreenCaptured const):

Source/WebKit:

Use the UIScreen state and notification to determine if the
screen is being shared or captured. This flag is for all
capture methods, Air Play, Screen Recording, etc. If the screen is
being captured, turn off the password echo to prevent the password from
being leaked.

* UIProcess/WebPageProxy.h:
* UIProcess/ios/WKContentView.mm:
(-[WKContentView _commonInitializationWithProcessPool:configuration:]):
(-[WKContentView _screenCapturedDidChange:]):
* UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::setIsScreenCaptured):
* WebProcess/WebCoreSupport/WebEditorClient.h:
* WebProcess/WebCoreSupport/ios/WebEditorClientIOS.mm:
(WebKit::WebEditorClient::isScreenCaptured const):
* WebProcess/WebPage/WebPage.h:
(WebKit::WebPage::isScreenCaptured const):
* WebProcess/WebPage/WebPage.messages.in:
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::setIsScreenCaptured):


Canonical link: https://commits.webkit.org/225038@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-05-20 22:33:59 +00:00
..
WebDefaultFormDelegate.h
WebDefaultFormDelegate.m
WebDefaultFrameLoadDelegate.h
WebDefaultFrameLoadDelegate.m
WebDefaultResourceLoadDelegate.h
WebDefaultResourceLoadDelegate.m
WebDefaultUIKitDelegate.h
WebDefaultUIKitDelegate.m Hide password echo when screen is being captured. 2020-05-20 22:33:59 +00:00