[wpt-sync] Sync PR 43904 - Add helper functions to automatic beacon WPTs.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox123 fixed)
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:
- 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 newNavigationTrigger
enum to handle clicks, clicks
with a beacon whoseonce=true
, and clicks in cross-origin subframes.- 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
Assignee | ||
Comment 1•1 years ago
|
||
Assignee | ||
Comment 2•1 years ago
|
||
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
- /fenced-frame/automatic-beacon-anchor-click-handler.https.html [wpt.fyi]
- Set and trigger an automatic beacon in an <a> click handler:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Set and trigger an automatic beacon in an <a> click handler:
- /fenced-frame/automatic-beacon-click-handler.https.html [wpt.fyi]
- Set and trigger an automatic beacon in a click handler:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Set and trigger an automatic beacon in a click handler:
- /fenced-frame/automatic-beacon-component-ad.https.html [wpt.fyi]
- Automatic beacon in an ad component should send without data with a header opt-in.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Automatic beacon in an ad component should send without data with a header opt-in.:
- /fenced-frame/automatic-beacon-cross-origin-false.https.html [wpt.fyi]
- Automatic beacon in a cross-origin subframe should send without data when crossOrigin=false.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Automatic beacon in a cross-origin subframe should send without data when crossOrigin=false.:
- /fenced-frame/automatic-beacon-cross-origin-navigation.https.html [wpt.fyi]
- Automatic beacon in a cross-origin subframe:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Automatic beacon in a cross-origin subframe:
- /fenced-frame/automatic-beacon-cross-origin-no-data.https.html [wpt.fyi]
- Automatic beacon in a cross-origin subframe with no beacon data set:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Automatic beacon in a cross-origin subframe with no beacon data set:
- /fenced-frame/automatic-beacon-cross-origin-no-opt-in.https.html [wpt.fyi]
- Automatic beacon in a cross-origin subframe with no opt-in header should not send.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Automatic beacon in a cross-origin subframe with no opt-in header should not send.:
- /fenced-frame/automatic-beacon-no-destination.https.html [wpt.fyi]
- Set and trigger an automatic beacon with no destination specified:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Set and trigger an automatic beacon with no destination specified:
- /fenced-frame/automatic-beacon-no-opt-in.https.html [wpt.fyi]
- Automatic beacons will not send if the document does not opt in.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Automatic beacons will not send if the document does not opt in.:
- /fenced-frame/automatic-beacon-shared-storage.https.html [wpt.fyi]
- Set and trigger an automatic beacon in a click handler for SharedStorage:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Set and trigger an automatic beacon in a click handler for SharedStorage:
- /fenced-frame/automatic-beacon-two-events-clear.https.html [wpt.fyi]
- Set expiring automatic beacon but trigger two events in a click handler:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Set expiring automatic beacon but trigger two events in a click handler:
- /fenced-frame/automatic-beacon-two-events-persist.https.html [wpt.fyi]
- Set persisting automatic beacon but trigger two events in a click handler:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Set persisting automatic beacon but trigger two events in a click handler:
- /fenced-frame/automatic-beacon-unfenced-top.https.html [wpt.fyi]:
ERROR
(Chrome:ERROR
, Safari:ERROR
)
Comment 4•1 years ago
|
||
bugherder |
Description
•