fenced-frame icon indicating copy to clipboard operation
fenced-frame copied to clipboard

Say something about what eventTypes are valid

Open jyasskin opened this issue 1 year ago • 4 comments

https://wicg.github.io/fenced-frame/#dom-fenceevent-eventtype doesn't have any uses that say what values are expected to work in that field. There's one instance of "If event’s eventType is not "reserved.top_navigation", return.", which implies that systems are expected to recognize specific values, but I don't see any way for them to find specific values to recognize.

jyasskin avatar Sep 28 '23 17:09 jyasskin

The values are allowed to be arbitrary strings and "reserved.top_navigation" is currently the only keyword but more might be added in future.

shivanigithub avatar Sep 28 '23 18:09 shivanigithub

cc @gtanzer

shivanigithub avatar Sep 28 '23 18:09 shivanigithub

https://wicg.github.io/shared-storage/#reporting currently has "If a SharedStorageUrlWithMetadata object contains a non-empty reportingMetadata object in the form of a dictionary whose keys are eventTypes ...", which doesn't make sense if eventTypes aren't constrained in any way. That could be a bug in the shared-storage spec. (cc @pythagoraskitty)

But there are still some constraints. I see that the eventType is expected to be a key in the reporting url map, for example. It winds up being hard to read the spec if relationships like this aren't called out and instead require tracing values through several levels of algorithms.

jyasskin avatar Sep 28 '23 22:09 jyasskin

which doesn't make sense if eventTypes aren't constrained in any way.

Eh, maybe? I mean the keys of that map could simply be DOMStrings which isn't "wrong". But yeah elaborating on the overall relationship of all of these would be nice.

domfarolino avatar Sep 30 '23 20:09 domfarolino