haikuwebkit/Source/WebCore/en.lproj
Eric Carlson cb18053524 [iOS] Dynamically set capture attribution
https://bugs.webkit.org/show_bug.cgi?id=227871
rdar://70241665

Reviewed by Jer Noble.

Source/WebCore:

No new tests, tested manually.

* en.lproj/Localizable.strings:

Source/WebCore/PAL:

* PAL.xcodeproj/project.pbxproj:
* pal/ios/SystemStatusSoftLink.h: Added.
* pal/ios/SystemStatusSoftLink.mm: Added.

Source/WebKit:

* GPUProcess/GPUConnectionToWebProcess.cpp:
(WebKit::GPUConnectionToWebProcess::GPUConnectionToWebProcess): Initialize m_captureOrigin.
(WebKit::GPUConnectionToWebProcess::updateCaptureOrigin): Update.
(WebKit::GPUConnectionToWebProcess::setCaptureAttributionString const): Non-Cocoa stub.
* GPUProcess/GPUConnectionToWebProcess.h:

* GPUProcess/GPUProcess.cpp:
(WebKit::GPUProcess::updateCaptureOrigin): Call same method in WebProcessConnection,
if it exists.
* GPUProcess/GPUProcess.h:
* GPUProcess/GPUProcess.messages.in:

* GPUProcess/cocoa/GPUConnectionToWebProcessCocoa.mm: Added.
(WebKit::GPUConnectionToWebProcess::setCaptureAttributionString): Set the attribution
string to "[domain] in [application]".

* Platform/spi/ios/SystemStatusSPI.h: Added.
* Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb: Allow "com.apple.systemstatus.activityattribution"
to be looked up.

* Scripts/process-entitlements.sh: Add the entitlements required to use the
SystemStatus SPI.

* SourcesCocoa.txt:
* UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp:
(WebKit::UserMediaCaptureManagerProxy::startProducingData): Fail capture
if setCaptureAttributionString returns false.
* UIProcess/Cocoa/UserMediaCaptureManagerProxy.h:
(WebKit::UserMediaCaptureManagerProxy::ConnectionProxy::setCaptureAttributionString):

* UIProcess/GPU/GPUProcessProxy.cpp:
(WebKit::GPUProcessProxy::updateCaptureOrigin): Call gpuProcess.updateCaptureOrigin
so the capture origin is correct when capture begins.
* UIProcess/GPU/GPUProcessProxy.h:

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didChangeMainDocument): Update the capture origin.
(WebKit::WebPageProxy::willStartCapture): Ditto.
(WebKit::WebPageProxy::gpuProcessExited): Drive-by - update local variable names
to make their purpose clearer.
* WebKit.xcodeproj/project.pbxproj:


Canonical link: https://commits.webkit.org/239661@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-14 18:06:28 +00:00
..
Localizable.strings [iOS] Dynamically set capture attribution 2021-07-14 18:06:28 +00:00
Localizable.stringsdict
mediaControlsLocalizedStrings.js [PlayStation] Change mediaControlsLocalizedStrings to use unicode escapes 2021-04-06 11:25:34 +00:00
modern-media-controls-localized-strings.js don't use raw unicode characters in modern media controls JS 2021-03-17 19:22:20 +00:00