WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
314257
[Site Isolation] [iOS] File picker selection is dropped when <input type=file> is in a cross-origin iframe
https://bugs.webkit.org/show_bug.cgi?id=314257
Summary
[Site Isolation] [iOS] File picker selection is dropped when <input type=file...
zak ridouh
Reported
2026-05-06 16:32:56 PDT
With Site Isolation, an <input type=file> in a cross-origin iframe runs in a different WebContent process than the main frame. After the user picks a file, WebPageProxy::didChooseFilesForOpenPanelWithDisplayStringAndIcon was sending the reply IPCs with the main frame's PageID and granting the read sandbox extension to the main frame's process — so the iframe's WebContent never sees the result. input.files stays empty, and because its m_activeOpenPanelResultListener never clears, subsequent taps on the input are short-circuited by WebChromeClient::runOpenPanel. Route the reply IPCs and the NetworkProcess file-access grant through the WebOpenPanelResultListenerProxy that runOpenPanel created for the originating frame, matching how the non-display-string path already works.
Attachments
Add attachment
proposed patch, testcase, etc.
zak ridouh
Comment 1
2026-05-06 16:33:11 PDT
<
rdar://175037150
>
zak ridouh
Comment 2
2026-05-06 16:36:37 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/64417
EWS
Comment 3
2026-05-20 17:54:21 PDT
Committed
313619@main
(14ef33d019a7): <
https://commits.webkit.org/313619@main
> Reviewed commits have been landed. Closing PR #64417 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug