Closed Bug 1459140 Opened 8 years ago Closed 8 years ago

[wpt-sync] Sync PR 10840 - [Resource-Timing] Fix `initiatorType` values

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 10840 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/w3c/web-platform-tests/pull/10840 Details from upstream follow. Yoav Weiss <yoav@yoav.ws> wrote: > [Resource-Timing] Fix `initiatorType` values > > There were multiple issues with current `initiatorType` implementation: > * `fetch()` resources had an empty value instead of "fetch" > * `<video>` resources had an empty value instead of "video" > * `<audio>` resources had an empty value instead of "audio" > * `<track>` resources had "texttrack" value instead of "track" > * EventSource resources had an empty value instead of "other" > > On top of that, the test to make sure the above is all in check had > some values that were not aligned to the spec, and was disabled due to > the flakiness of audio and video loads. > > This CL fixes the above values, fixes the test to be more spec > compliant and enables it. > > Bug: 649571, 822757 > Change-Id: I1dc6fd35e5e4bc570cbbb7d743dc02279bf42b8b > > Reviewed-on: https://chromium-review.googlesource.com/1040925 > WPT-Export-Revision: b143db158fa7204c3720dc8e47d5fbdbdf2ebb7a
Component: web-platform-tests → DOM
Product: Testing → Core
This test was flaky in Firefox before this PR's test change. Testing it locally in its pre-PR form, I see a different number of failures on each run. It seems like some resource types are not consistently loaded, or at least not consistently reported. The ones I noticed were the video resources as well as the `<link rel=prefetch>` resource. The test in question is https://wpt.fyi/results/resource-timing/resource_initiator_types.html I'm attaching the entire current directory, as it's needed to reproduce the issue (and to make sure this is still reproducible despite future changes to the test).
Attached file resource-timing.tar.gz —
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 1 tests and 36 subtests OK : 1 PASS : 22 FAIL : 14 New tests that have failures or other problems: /resource-timing/resource_initiator_types.html http://web-platform.test:8000/media/test.mp4?id=video-source is expected to have initiatorType video: FAIL http://web-platform.test:8000/resource-timing/resources/empty.py?id=audio-source-mpeg is expected to have initiatorType audio: FAIL http://web-platform.test:8000/resource-timing/resources/empty.py?id=audio-source-ogg is expected to have initiatorType audio: FAIL http://web-platform.test:8000/resource-timing/resources/empty.py?id=audio-source-wav is expected to have initiatorType audio: FAIL
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/b029276297d9 [wpt PR 10840] - [Resource-Timing] Fix `initiatorType` values, a=testonly https://hg.mozilla.org/integration/mozilla-inbound/rev/339c9de0e6ef [wpt PR 10840] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: