Repository navigation
Lock WKUSDPreviewView::data and catch unexpected message delivery - #78749
Merged
webkit-commit-queue merged 1 commit intoOct 29, 2026
Merged
webkit-commit-queue merged 1 commit into
webkit-commit-queue merged 1 commit into
Conversation
Author
Author
|
At the time this pull request was created the following files were in conflict and need to be resolved:
|
Collaborator
|
EWS run on previous version of this PR (hash 0ef0579) Details |
squelart
force-pushed
the
integration/conflict/013a5ed53075_013a5ed53075_main
branch
from
October 29, 2026 03:25
0ef0579 to
22eed41
Compare
Collaborator
|
EWS run on current version of this PR (hash 22eed41) Details |
Collaborator
|
Safe-Merge-Queue: Build #108999. |
rdar://180524392 Reviewed by Mike Wyrzykowski. WKUSDPreviewView::data is accessed on both the main thread and the QuickLook background queue; add a Lock around it. Also the didFinishLoadingDataForCustomContentProvider message should only be sent once after displaying a cursom content provider, so add checks to catch other sequences from untrusted processes. Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SystemPreview.mm * Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView _didFinishLoadingDataForCustomContentProviderWithSuggestedFilename:data:]): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::didCommitLoadForFrame): (WebKit::WebPageProxy::didFinishLoadingDataForCustomContentProvider): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/ios/WKUSDPreviewView.mm: (-[WKUSDPreviewView web_setContentProviderData:suggestedFilename:completionHandler:]): (-[WKUSDPreviewView provideDataForItem:]): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SystemPreview.mm: (TestWebKitAPI::TEST(WebKit, SystemPreviewProvideDataForItemIsSafeAgainstConcurrentReassignment)): Originally-landed-as: 316606.451@safari-7625-branch (013a5ed). rdar://191050749 Canonical link: https://commits.webkit.org/325171@main
webkit-commit-queue
force-pushed
the
integration/conflict/013a5ed53075_013a5ed53075_main
branch
from
October 29, 2026 21:10
22eed41 to
53ab83c
Compare
Collaborator
|
Committed 325171@main (53ab83c): https://commits.webkit.org/325171@main Reviewed commits have been landed. Closing PR #78749 and removing active labels. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
53ab83c
22eed41