-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Enable compiled sandbox profile caching in macCatalyst builds #56548
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
Open
hortont424
wants to merge
1
commit into
WebKit:main
Choose a base branch
from
hortont424:eng/Enable-compiled-sandbox-profile-caching-in-macCatalyst-builds
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Enable compiled sandbox profile caching in macCatalyst builds #56548
hortont424
wants to merge
1
commit into
WebKit:main
from
hortont424:eng/Enable-compiled-sandbox-profile-caching-in-macCatalyst-builds
+2
−1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
https://bugs.webkit.org/show_bug.cgi?id=305460 rdar://168126328 Reviewed by NOBODY (OOPS!). Enable sandbox caching in macCatalyst builds. These builds use macOS style sandbox profiles (loaded and applied at runtime, unlike iOS), and as such, benefit from caching just like normal macOS WebKit. This improves macCatalyst Web Process launch time by about 2 seconds (from 2.5s to 0.5s) in my local testing. * Source/WebKit/Configurations/WebKit.xcconfig: * Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:
Collaborator
|
EWS run on current version of this PR (hash c2ffa60) Details |
aprotyas
approved these changes
Jan 14, 2026
aprotyas
reviewed
Jan 14, 2026
Comment on lines
81
to
85
| #if PLATFORM(MAC) || PLATFORM(MACCATALYST) | ||
| #define USE_CACHE_COMPILED_SANDBOX 1 | ||
| #else | ||
| #define USE_CACHE_COMPILED_SANDBOX 0 | ||
| #endif |
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird that we define this here rather than in PlatformUse.h, though
pvollan
approved these changes
Jan 14, 2026
Contributor
pvollan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
WebKit Misc.
For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore).
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧪 win-tests
🧪 api-mac
c2ffa60
c2ffa60