Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Use finer-grained media services when available #7397

Conversation

brentfulgham
Copy link
Contributor

@brentfulgham brentfulgham commented Dec 9, 2022

"com.apple.coremedia.mediaplaybackd.formatreader.xpc"
"com.apple.coremedia.mediaplaybackd.player.xpc"
"com.apple.coremedia.mediaplaybackd.remaker.xpc"
"com.apple.coremedia.mediaplaybackd.samplebufferaudiorenderer.xpc"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there other services we can remove access to when mediaaybackd is present? I may look like there are old counterparts to some of these new services?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can add telemetry to the old services if HAVE_MEDIAPLAYBACKD = 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pvollan: Indeed, we should consider that in the future, but for now the relevant people working on this finer-grained XPC layer say they do not intend for us to remove the old items yet (though this will hopefully happen soon).

Copy link
Contributor

@pvollan pvollan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R=me.

@brentfulgham brentfulgham added the merge-queue Applied to send a pull request to merge-queue label Dec 9, 2022
https://bugs.webkit.org/show_bug.cgi?id=249033
<rdar://100435873>

Reviewed by Per Arne Vollan.

Use more specific mach services for media features on platforms that support them.
This will allow us to narrow the scope to only those endpoints required for
web-related media tasks.

No change in behavior.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in:

Canonical link: https://commits.webkit.org/257653@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/iOS-Use-finer-grained-media-services-when-available branch from cfd16b9 to 6cbeaff Compare December 10, 2022 00:12
@webkit-early-warning-system webkit-early-warning-system merged commit 6cbeaff into WebKit:main Dec 10, 2022
@webkit-commit-queue
Copy link
Collaborator

Committed 257653@main (6cbeaff): https://commits.webkit.org/257653@main

Reviewed commits have been landed. Closing PR #7397 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants