-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix(MonetizationLinkManager): simplify search, get first link from iframe #922
base: main
Are you sure you want to change the base?
fix(MonetizationLinkManager): simplify search, get first link from iframe #922
Conversation
Extension builds preview
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fix: If first link tag in iframe is disabled, second isn't marked for monetization, even though first is sent for STOP_MONETIZATION
.
Let's treat this in the followup issue and let it be as a limitation for now. |
…detection-and-handling
Co-authored-by: Sid Vishnoi <[email protected]>
@sidvishnoi this should be reviewed and merged first |
Helps us add new details, that don't necessarily belong in removed type
for (const link of monetizationLinks) { | ||
this.observeLinkAttrs(link); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm. This is now observing only valid link tags?
Closes #920 .
Changes proposed in this pull request
onWholeDocumentObserved
to search every time a new node gets removed or addedCurrent known limitation for when the first monetization link is removed, the second should be monetized, to be addressed in #921