-
Notifications
You must be signed in to change notification settings - Fork 204
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
Multiple issues caused by ad iframes on news website #530
Comments
The client's iframe support is not yet robust enough (see #530) to enable it automatically for all iframes on arbitrary web pages. To support the needs of EPUB viewers and others in the meantime while preventing problems on eg. pages with larger numbers of iframed ads, require the publisher to opt iframes into annotation by adding the "enable-annotation" attribute to them.
The client's iframe support is not yet robust enough (see #530) to enable it automatically for all iframes on arbitrary web pages. To support the needs of EPUB viewers and others in the meantime while preventing problems on eg. pages with larger numbers of iframed ads, require the publisher to opt iframes into annotation by adding the "enable-annotation" attribute to them.
Also happening on this page https://www.wired.com/story/how-apple-finally-made-siri-sound-more-human?mbid=nl_090717_daily Load in FF, activate bookmarklet, as ads cycle, they will cause annotation cards to load and unload over and over again. cc @heatherstaines |
Hypothesis v1.40 works around this issue for now by limiting annotation of iframes to those which are explicitly opted in by the site owner via an The underlying issues mentioned above still exist in the codebase and I'll file separate issues for them. |
A user reported an issue when using the client on https://www.theguardian.com/world/2016/nov/09/western-civilisation-appiah-reith-lecture where it would appear to "reload" repeatedly.
Original report: https://hypothesis.zendesk.com/agent/tickets/1407
Digging into the problem, it looks like this page has a large number (~10) of ad-generated iframes which are loaded dynamically while scrolling the page. This causes a number of issues with the client's support for iframes. Several of these are race conditions so they will not reliably reproduce all the time.
FrameObserver
's_addFrame
not immediately registering the iframe as "handled" if the frame has not yet finished loading. Therefore_addFrame
can be called for the same frame multiple times, and thus theonFrameAdded
callback can be triggered for the same frame multiple times.Capturing the above as a checklist:
The text was updated successfully, but these errors were encountered: