Bug 316182

Summary: [Site Isolation] CSP upgrade-insecure-requests misses cross-origin iframe-to-top navigations
Product: WebKit Reporter: roberto_rodriguez2
Component: New BugsAssignee: roberto_rodriguez2
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

roberto_rodriguez2
Reported 2026-06-02 23:19:33 PDT
When a cross-origin sandboxed iframe with upgrade-insecure-requests does window.top.location = "http://...", the URL should get upgraded to https but doesn't. The upgrade logic looks at the target frame's CSP origin set, which only knows about the target frame's own origin. Since the URL points to the iframe's origin (not the top frame's), nothing matches.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-06-02 23:19:38 PDT
roberto_rodriguez2
Comment 2 2026-06-02 23:23:20 PDT
EWS
Comment 3 2026-06-03 20:26:39 PDT
Committed 314523@main (c1ab79ebcc0f): <https://commits.webkit.org/314523@main> Reviewed commits have been landed. Closing PR #66347 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.