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

[Monetization flow - Content] Tag listener #162

Closed
Tracked by #77
dianafulga opened this issue Mar 11, 2024 · 0 comments · Fixed by #203
Closed
Tracked by #77

[Monetization flow - Content] Tag listener #162

dianafulga opened this issue Mar 11, 2024 · 0 comments · Fixed by #203
Assignees
Labels
area: content Improvements or additions to extension content script

Comments

@dianafulga
Copy link
Contributor

dianafulga commented Mar 11, 2024

  1. Setup MutationObserver to detect link tags
  2. For each found tag check if the href has a valid JSON response (based on OP Spec)
  3. For each valid tag save details (Wallet Address response - authServer, resourceServer etc ... + a unique identifier - uuidv4, w/e)
    in a map/array/something and send START_MONETIZATION (payload wallet JSON - opt requestId TBD) event to background script

We need to take iframes into consideration as well - only the first monetization link from the page (only the head element and only iframes that have monetization in the allow list)

@dianafulga dianafulga added the area: content Improvements or additions to extension content script label Mar 11, 2024
@dianafulga dianafulga changed the title Tag listener [Monetization flow] Tag listener Mar 11, 2024
@dianafulga dianafulga changed the title [Monetization flow] Tag listener [Monetization flow - Content] Tag listener Mar 11, 2024
@dianafulga dianafulga mentioned this issue Mar 11, 2024
7 tasks
@dianafulga dianafulga self-assigned this Mar 12, 2024
@dianafulga dianafulga linked a pull request Mar 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: content Improvements or additions to extension content script
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant