[Webkit-unassigned] [Bug 251586] New: Support Intersection Observer V2 (isVisible)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 2 07:59:31 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=251586
Bug ID: 251586
Summary: Support Intersection Observer V2 (isVisible)
Product: WebKit
Version: Safari 16
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit API
Assignee: webkit-unassigned at lists.webkit.org
Reporter: somamine7 at gmail.com
I'd like to propose that WebKit extend the Intersection Observer API to support the V2 that Chrome has implemented and shipped to production.
V2 of the Intersection Observer API exposes a few simple, but incredibly powerful features to developers: namely, the "isVisible" property. This property lets developers detect whether an element is visible, accounting for not only the element's position, but things like opacity, filters, and transforms.
This simple extension of the Intersection Observer API has effectively solved clickjacking as an attack vector, which has incredibly profound consequences for all kinds of security sensitive applications. Being able to confirm an iFrame is entirely visible to the user, for example, opens up a world of possibility for developers.
Here are a few helpful links about Intersection Observer V2 to help give the needed context:
https://chromestatus.com/feature/5878481493688320
https://github.com/szager-chromium/IntersectionObserver/blob/v2/explainer.md
https://szager-chromium.github.io/IntersectionObserver/demo/cashbomb/hidden/
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230202/4741d468/attachment.htm>
More information about the webkit-unassigned
mailing list