Closed Bug 1646239 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 24177 - Add getWindowSegments JavaScript API

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox79 fixed)

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 24177 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/24177
Details from upstream follow.

Daniel Libby <dlibby@microsoft.com> wrote:

Add getWindowSegments JavaScript API

This change builds on crrev.com/c/2229668 to plumb the window segment
information from the content layer into Blink, where it is exposed via
a JavaScript API.

From RenderWidget, the root window segments are stored on the
local WebFrameWidgetBase root, and returned via script through the
FrameWidget interface.

i2p: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/_1_ljYsaqrU/qOoHJ7MhAgAJ
Explainer: https://github.com/webscreens/window-segments/blob/master/EXPLAINER.md

Change-Id: I9b80f189e41160fc490bd09191722cb20b7115e9

Reviewed-on: https://chromium-review.googlesource.com/2246988
WPT-Export-Revision: 6f6637c4d711574998d08c97bc079ac6ed3b8947

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL: 2

Chrome

OK : 2
FAIL: 2

Safari

OK : 2
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/window-segments/getWindowSegments.https.tentative.html
getWindowSegments() returns a single segment, equal to the layout viewport dimesions: FAIL (Chrome: FAIL, Safari: FAIL)
/window-segments/getWindowSegments-iframes.tentative.sub.html
Window segments of child frames (same or different domain) must match those of the main frame.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f468703d8535 [wpt PR 24177] - Add getWindowSegments JavaScript API, a=testonly https://hg.mozilla.org/integration/autoland/rev/f4c08ad7631b [wpt PR 24177] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.