Bug 242894

Summary: REGRESSION(iOS 15.2) [iOS] "Cross-Origin-Opener-Policy: same-origin" breaks forms after back action
Product: WebKit Reporter: Andy Ingram <andy>
Component: HistoryAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: Unspecified   
Attachments:
Description Flags
video-of-repro-demo none

Description Andy Ingram 2022-07-19 03:53:04 PDT
Created attachment 461009 [details]
video-of-repro-demo

# Summary 

On iOS Safari 15.5, if a page sets `Cross-Origin-Opener-Policy: same-origin` and a user navigates back to the page via the back button, form elements on that page aren't correctly interactive. Demo site: https://safari-bug-andy26.vercel.app

# Details 

1. User is on a page without a COOP header (https://safari-bug-andy26.vercel.app)
2. User clicks a link to a page that sets COOP same-origin (https://safari-bug-andy26.vercel.app/api)
3. User submits a GET form with no action, or an action which is the same page - such that the same page is loaded with different query parameters. (https://safari-bug-andy26.vercel.app/api?select=day&search=)
4. User hits back button to return to the original form (https://safari-bug-andy26.vercel.app/api)
5. Form elements aren't correctly interactive. They can receive focus, but the keyboard isn't opened for text inputs, and the select box UI isn't shown for selects.
Comment 1 Radar WebKit Bug Importer 2022-07-19 07:22:27 PDT
<rdar://problem/97258473>
Comment 2 Chris Dumez 2022-07-19 16:10:16 PDT
Thanks for the bug report, I am working on it.
Comment 3 Chris Dumez 2022-07-19 16:23:46 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2569
Comment 4 EWS 2022-07-20 12:34:57 PDT
Committed 252651@main (2e2b021f6768): <https://commits.webkit.org/252651@main>

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