Closed Bug 1809179 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 37810 - Refactor nested-navigations resource-timing flow

Categories

(Core :: DOM: Performance, task, P4)

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Noam Rosenthal <nrosenthal@chromium.org> wrote:

Refactor nested-navigations resource-timing flow

This changes how frames, iframes & objects decide how to report
their navigations as resource timing entries to their parent:

  • Any frame-initiated navigation (e.g. iframe.src change) is
    reported as an entry. This complies with current spec.
  • For nested navigations that fail Timing-Allow-Origin, we don't
    report the normal responseEnd - instead we report the load event
    time as the responseEnd, to prevent leakage of navigation-related
    cross-origin information
    (see https://github.com/w3c/resource-timing/issues/340)

This incidentally fixes other existing issues with nested navigations
and resource timing, such as flaky tests and inconsistencies regarding
restored iframes.

Bug: 1404695
Bug: 1348080
Bug: 1290721
Bug: 1380078
Bug: 1378015
Bug: 957181

Spec changes: https://github.com/whatwg/html/pull/8643
https://github.com/whatwg/fetch/pull/1579

Change-Id: I010b026788193cc77a7de3f3d75304602f41fcd5
Reviewed-on: https://chromium-review.googlesource.com/4145963
WPT-Export-Revision: bc9e0fe5fbc1962a2d5c8f1e122d2e2fca0fe75c

Component: web-platform-tests → DOM: Performance
Product: Testing → Core

CI Results

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

Total 6 tests and 1 subtests

Status Summary

Firefox

OK : 2
PASS : 19
FAIL : 2
TIMEOUT: 4
ERROR : 4

Chrome

OK : 2
PASS : 1
FAIL : 20
TIMEOUT: 4
ERROR : 4

Safari

OK : 2
PASS : 1
FAIL : 20
TIMEOUT: 4
ERROR : 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cc12b69989f9 [wpt PR 37810] - Refactor nested-navigations resource-timing flow, a=testonly https://hg.mozilla.org/integration/autoland/rev/ec51f6e1c7e5 [wpt PR 37810] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.