Closed Bug 1735948 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 31257 - Prerender: Upstream test for presentationRequest.start()

Categories

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

task

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hiroki Nakagawa <nhiroki@chromium.org> wrote:

Prerender: Upstream test for presentationRequest.start()

This CL upstreams a test for presentationRequest.start() in prerendered
pages to the WPT repository. The API is listed as "implicitly restricted
APIs" in the draft spec:
https://jeremyroman.github.io/alternate-loading-modes/prerendering.html#implicitly-restricted

This CL removes the following comment:

This cannot be upstreamed as a WPT test because the spec (probably)
will require that no error is thrown until activation.

This is because presentationRequest.start() is expected to return a
rejected promise when the window doesn't have transient activation, and
the current test correctly handles it.

If the document's active window does not have transient activation,
return a Promise rejected with an InvalidAccessError exception and
abort these steps.
https://w3c.github.io/presentation-api/#dom-presentationrequest-start

Related issues in the spec side:

Bug: 1253158
Change-Id: I6973c4c6683135b9bc27e78115d797e8d5840fed

Reviewed-on: https://chromium-review.googlesource.com/3223703
WPT-Export-Revision: 4a17249eec5605b66d7d96998a5fa84f23dbd859

CI Results

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

Total 1 tests

Status Summary

Firefox

ERROR: 1

Chrome

ERROR: 1

Safari

ERROR: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/speculation-rules/prerender/restriction-presentation-request.https.html: ERROR (Chrome: ERROR, Safari: ERROR)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4d715a2f36e
[wpt PR 31257] - Prerender: Upstream test for presentationRequest.start(), a=testonly
https://hg.mozilla.org/integration/autoland/rev/c9d04b2145be
[wpt PR 31257] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.