Closed Bug 1873720 Opened 1 years ago Closed 1 years ago

[wpt-sync] Sync PR 43904 - Add helper functions to automatic beacon WPTs.

Categories

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

task

Tracking

(firefox123 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Liam Brady <lbrady@google.com> wrote:

Add helper functions to automatic beacon WPTs.

This CL adds the following helper functions:

  1. setupAutomaticBeacon(), which registers an automatic beacon inside a
    fenced frame/URN iframe context and sets up the click handler for the
    top-level navigation that will trigger the beacon. This can be
    customized using a new NavigationTrigger enum to handle clicks, clicks
    with a beacon whose once=true, and clicks in cross-origin subframes.
  2. verifyBeaconData(), which replaces the existing boilerplate code
    needed in order to check the sent automatic beacon data as well as its
    initiator origin. This supports both the positive case as well as the
    negative timeout case.

The automatic beacon tests are refactored to use these new helper
functions.

Change-Id: Iff123d14ee1fd2ed075914db043addbb6f02638c

Reviewed-on: https://chromium-review.googlesource.com/5180049
WPT-Export-Revision: feed3b79a932712c62eb04bd467ab789af705cc5

CI Results

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

Total 13 tests

Status Summary

Firefox

OK : 12
FAIL : 12
ERROR: 1

Chrome

OK : 12
FAIL : 12
ERROR: 1

Safari

OK : 12
FAIL : 12
ERROR: 1

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/8ec1230acb5d [wpt PR 43904] - Add helper functions to automatic beacon WPTs., a=testonly
Status: NEW → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.