Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link headers - where to emit monetization/error events? #343

Open
sublimator opened this issue Jun 29, 2023 · 0 comments
Open

Link headers - where to emit monetization/error events? #343

sublimator opened this issue Jun 29, 2023 · 0 comments
Labels
discussion A discussion thread pondering a meta-topic that may lead to specific proposals

Comments

@sublimator
Copy link
Collaborator

sublimator commented Jun 29, 2023

Link: <https://ilp.uphold.com/gRa4mXFEMYrL>; rel="monetization"

Where to emit the events from when link is specified as a header

monetization event target

You have your choice of ancestors for a 'monetization' EventTarget: document and/or window
But for errors?

error event target

Note that window already emits an 'error' event. The WM 'error' event is currently simply Event('error') with no "distinguishing marks". But the window event has marks (message, filename, etc) that make it distinct from a humble Event('error') ? Yeah, but existing code?

Some solution options

  1. Forget headers, they aren't all that!
  2. Just don't worry about errors when a link is specified via headers!
  3. 'error' -> 'monetizationerror' ?
  4. 'monetization' "bag of fields" event with error on it ?
  5. insert your favourite ???

Originally from 1 / 2 / 3 / 4 / 5

@melissahenderson melissahenderson added the discussion A discussion thread pondering a meta-topic that may lead to specific proposals label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion A discussion thread pondering a meta-topic that may lead to specific proposals
Projects
None yet
Development

No branches or pull requests

2 participants