New issue
Advanced search Search tips

Issue 725747 link

Starred by 1 user

Issue metadata

Status: ExternalDependency
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Compat



Sign in to add a comment

Extend semantics of Intersection Observer API to handle webview visibility

Project Member Reported by rhenders@google.com, May 24 2017

Issue description

Steps to reproduce the problem:
1. open an app with a webview
2. scroll the webview offscreen
3. intersection observer still reports the webview as visible

What is the expected behavior?
Intersection observer should report the webview as not visible.

What went wrong?
In webviews, Intersection Observer will report that an element is fully visible even though the webview is off screen or scrolled out of view.  We propose that the calculations and event notifications of Intersection Observer should incorporate the visibility of the webview, not just the top-level document viewport.  This would enable ads in webviews to determine their visibility without any native-layer integration, and it would remove the messaging and polling-loop overhead of native-webview communication.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 58.0.3029.110  Channel: stable
OS Version: 
Flash Version:
 

Comment 1 by jochen@chromium.org, May 25 2017

Cc: pinkerton@chromium.org rbyers@chromium.org ojan@chromium.org
Components: -Blink>JavaScript Blink
again, not sure who owns this api on ios
Cc: ajuma@chromium.org danyao@chromium.org
Components: -Blink Mobile>WebView>Glue
+danyao, ajuma.

Comment 3 by ajuma@chromium.org, May 25 2017

The Intersection Observer API isn't implemented at all on Chrome for iOS right now since it isn't yet implemented in WebKit.

The ongoing work to implement this in WebKit is tracked at https://bugs.webkit.org/show_bug.cgi?id=159475.

Comment 4 by danyao@chromium.org, May 25 2017

Labels: -Type-Bug Type-Compat
Status: ExternalDependency (was: Unconfirmed)
I'll mark this as External Dependency for now until we get more information back from Apple on their WebKit implementation status.
Project Member

Comment 5 by sheriffbot@chromium.org, Jul 14 2017

Labels: Hotlist-Google

Comment 6 by ojan@chromium.org, May 8 2018

Cc: -ojan@chromium.org
Components: Mobile>iOSWeb
Components: -Mobile>WebView>Glue
Components: -Mobile>iOSWeb Mobile>iOSWeb>WebPlatform

Sign in to add a comment