Closed Bug 1772417 Opened 2 years ago Closed 2 years ago

Make WPT tests pass: performance-measure-invalid.worker.html

Categories

(Core :: DOM: Performance, enhancement)

enhancement

Tracking

()

VERIFIED FIXED
105 Branch
Tracking Status
firefox105 --- verified

People

(Reporter: mcomella, Assigned: mcomella)

References

Details

Attachments

(3 files)

Type: task → enhancement
Assignee: nobody → michael.l.comella

In my opinion, this makes the code clearer because the implementation can more
closely match the spec and the code flow does not jump across subclasses and
their separate files. This change will be used by the following patch.

This fixes the performance-measure-invalid.worker.html test. The test failed
because User Timing L3 section 4.2, "Convert a name to a timestamp", was not
implemented - the code was presumably residual from an earlier version of User
Timing. In particular, we never threw if the global object was not a Window. We
also corrected the code order for section 4.1, "Convert a mark to a timestamp",
which was incorrect but didn't cause any tests to fail.

Depends on D154819

The previous implementation of our code had the code ordering reversed for User
Timing L3 section 4.1, "Convert a mark to a timestamp": it checked if a mark
exists for the given name then checked if the name matched a PerformanceTiming
attribute rather than the reverse. This test validates the correct order. Since
this behavior is presumably left over from an older version of the spec, it
seems worthwhile to have the test.

Depends on D154820

Attachment #9290153 - Attachment description: Bug 1772417 - move IsPerformanceTimingAttribute impl; add IsGlobalWindow. r=sefeng → Bug 1772417 - align IsPerformanceTimingAttribute to user-timing spec. r=sefeng
Pushed by mcomella@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/819f3d83aaa8
align IsPerformanceTimingAttribute to user-timing spec. r=sefeng
https://hg.mozilla.org/integration/autoland/rev/fda98ba4b551
correct web-platform convert name to timestamp. r=sefeng
https://hg.mozilla.org/integration/autoland/rev/307be8a3b4e1
add mark then measure on PerformanceTiming attribute test. r=sefeng
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35521 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Upstream PR merged by moz-wptsync-bot

I verified the tests pass in the latest Nightly locally on wpt.fyi and the wpt.fyi dashboard now shows the tests are passing: https://wpt.fyi/results/user-timing/performance-measure-invalid.worker.html?label=experimental&label=master&aligned&view=subtest.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: