Closed Bug 1904917 Opened 5 days ago Closed 2 days ago

[wpt-sync] Sync PR 46915 - Remove unnecessary awaits from Attribution Reporting WPT

Categories

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

task

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Andrew Paseltiner <apaseltiner@chromium.org> wrote:

Remove unnecessary awaits from Attribution Reporting WPT

The registerAttributionSrc helper function returned a promise
corresponding to completion of the various requests it can send, but in
general that completion is irrelevant to the behavior of these tests,
which previously used them to orchestrate a source registration
finishing before a trigger registration.

Unfortunately, completion of the request has no bearing on completion
of the response handling in the browser when the source and trigger
registrations occur in different redirect chains.

As such, the corresponding awaits were meaningless at best. Instead,
tests covering the behavior of source and trigger registrations in
separate redirect chains need to use the waitForSourceToBeRegistered
helper, which polls the server for verbose debug reports corresponding
to successful source registration.

Separately, it's not necessary to wait for a trigger registration to
complete beore polling reports.

In a followup change I will consolidate separate redirect chains where
that behavior is not specifically being tested.

Bug: 349397580, 349011165, 348594906
Change-Id: Id2e79525257567fd3bcb2249188fb04de2e43b3f
Reviewed-on: https://chromium-review.googlesource.com/5659020
WPT-Export-Revision: d6dd4db639b2d254e108284352af10ee1a0188ac

CI Results

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

Total 23 tests and 1 subtests

Status Summary

Firefox

OK : 18
PASS : 2
FAIL : 16
TIMEOUT: 10

Chrome

OK : 18
PASS : 18
TIMEOUT: 10

Links

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/217f5d814521
[wpt PR 46915] - Remove unnecessary awaits from Attribution Reporting WPT, a=testonly
Status: NEW → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.