From 9ff373d898d0e44ce4b7d56c8c72b398e9aab470 Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Sat, 24 Aug 2019 09:57:59 +0000 Subject: [PATCH] Bug 1574064 [wpt PR 18443] - [IntersectionObserver] Use inclusive intersect with remote frame parent, a=testonly Automatic update from web-platform-tests [IntersectionObserver] Use inclusive intersect with remote frame parent The rest of the MapToVisualRectInAncestorSpace code will do inclusive intersections when the kEdgeInclusive flag is set, as required by IntersectionObserver to correctly handle zero-area targets. This patch adds coverage for this situation to the existing WPT for cross-origin IntersectionObserver. Since the bug only affects IntersectionObserver running inside an OOPIF, this also updates the test to force the iframe into a different domain, rather than just using the sandbox attribute (which is not sufficient to trigger OOPIF). BUG=978759 Change-Id: I7dbe52d2f3e39e029fed3dda5be31190c593a1e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1754595 Reviewed-by: Ken Buchanan Commit-Queue: Stefan Zager Cr-Commit-Position: refs/heads/master@{#687361} -- wpt-commits: 504feb2f721bab75aa597a8082e06700874b84d6 wpt-pr: 18443 --- ...rame.html => cross-origin-iframe.sub.html} | 2 +- .../resources/cross-origin-subframe.html | 48 ++++++++++++------- .../intersection-observer-test-utils.js | 1 + 3 files changed, 34 insertions(+), 17 deletions(-) rename testing/web-platform/tests/intersection-observer/{cross-origin-iframe.html => cross-origin-iframe.sub.html} (91%) diff --git a/testing/web-platform/tests/intersection-observer/cross-origin-iframe.html b/testing/web-platform/tests/intersection-observer/cross-origin-iframe.sub.html similarity index 91% rename from testing/web-platform/tests/intersection-observer/cross-origin-iframe.html rename to testing/web-platform/tests/intersection-observer/cross-origin-iframe.sub.html index bdd6d3f529a0..d444237f6b95 100644 --- a/testing/web-platform/tests/intersection-observer/cross-origin-iframe.html +++ b/testing/web-platform/tests/intersection-observer/cross-origin-iframe.sub.html @@ -21,7 +21,7 @@ iframe {
- +