Closed Bug 1850182 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 41648 - Check http protocol when emitting resource timing entry

Categories

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

task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hao Liu <haoliuk@chromium.org> wrote:

Check http protocol when emitting resource timing entry

Currently when a resource load via file protocol fails, a resource
timing is emitted. We should only emit resource timing for http(s)
resources.

This CL is to fix this issue. The ResourceResponse::ShouldPopulateResourceTiming() method used for
checking protocol when load is successful checks if the
ResourceResponse::current_request_url_ is HTTP or the web bundle url
is valid.

However when the load fails, the ResourceResponse::current_request_url_
could be null, so we use ResourceRequest::url_, since we are only
checking for protocols.

Bug: 1472922
Change-Id: I674b2041f1911e9c6c04863dc38fc64a28be27af
Reviewed-on: https://chromium-review.googlesource.com/4799574
WPT-Export-Revision: c7503ea76e2e9a36b3e6f7990d104b5c5685a4e4

Component: web-platform-tests → DOM: Performance
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL : 1
ERROR: 1

Chrome

OK : 2
PASS : 2

Safari

OK : 1
PASS : 1
ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9aabcfc34944 [wpt PR 41648] - Check http protocol when emitting resource timing entry, a=testonly https://hg.mozilla.org/integration/autoland/rev/4017c91d92cf [wpt PR 41648] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.