Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Investigate impl Link as header #827

Open
sublimator opened this issue Jul 17, 2020 · 4 comments
Open

Investigate impl Link as header #827

sublimator opened this issue Jul 17, 2020 · 4 comments

Comments

@sublimator
Copy link
Member

sublimator commented Jul 17, 2020

WICG/webmonetization#19 (comment)

@sublimator
Copy link
Member Author

@sublimator
Copy link
Member Author

sublimator commented Jul 20, 2020

@adrianhopebailie @sharafian

Do we want this only for images/videos/etc ? In other words non documents ?
It would definitely be more performant and much simpler if we do it that way.

The webRequest.onHeadersReceived api has an option to declare what types of resources you want to monitor, e.g.:

    this.api.webRequest.onHeadersReceived.addListener(
      listener,
      { urls: ['<all_urls>'], types: ['media', 'image', 'object'] },
      ['responseHeaders']
    )

And what about cross site embedding monetized resources ?
If they are monetized, what would the equivalent of <iframe allow="monetization"> be ?
How to specify that this is "allow"ed ?

@adrianhopebailie
Copy link
Collaborator

My thinking was that we update the spec to allow a website to return a link header instead of putting the link tag in the HTML. So it would only apply to the root document but I guess that could expand in time.

The value of putting it in the header is that it's not subject to any client-side manipulation through, for example, other extensions.

@sublimator
Copy link
Member Author

sublimator commented Jul 20, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants