Bug 257183

Summary: Some UserActivation tests are incorrect and could use a cleanup
Product: WebKit Reporter: Marcos Caceres <marcosc>
Component: Tools / TestsAssignee: Marcos Caceres <marcosc>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Marcos Caceres 2023-05-22 22:07:18 PDT
In particular: 

* consumption-sameorigin.html - it's same origin, so it doesn't need to use postMessage()!
* propagation-crossorigin.sub.html - the current structure is way too hard to follow. It should just use async/await. 

Further, propagation-crossorigin.sub.html makes a number of incorrect assumptions: it seems to assume that hasBeenActive gets reflected across origins. That's wrong per the HTML spec (or at least my reading of "activation notification").
https://html.spec.whatwg.org/#activation-notification


which says it only applies same origin.
Comment 1 Radar WebKit Bug Importer 2023-05-22 22:08:18 PDT
<rdar://problem/109696805>
Comment 2 Marcos Caceres 2023-05-22 22:22:04 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14229