Bug 257183 - Some UserActivation tests are incorrect and could use a cleanup
Summary: Some UserActivation tests are incorrect and could use a cleanup
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Marcos Caceres
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-22 22:07 PDT by Marcos Caceres
Modified: 2023-05-22 22:22 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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