Closed Bug 1814552 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38316 - [Topics] add web-platform-tests

Categories

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

task

Tracking

(firefox112 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yao Xiao <yaoxia@chromium.org> wrote:

[Topics] add web-platform-tests

Add basic API surface tests and permissions error tests.

An empty result is distinguishable with an error case. Right now
we cannot handle the requests more realistically to get non-empty
topics, as we are missing relevant mocks for History APIs, etc, and
those will be P2/future work.

Also, change the default permissions from false to true in
ContentBrowserClient::HandleTopicsWebApi(). This seems to be a
common practice to allow writing WPTs (e.g. ContentBrowserClient::AllowWorkerIndexedDB() also returns true, etc.).

Bug: 1381167
Change-Id: Iba75c684c70bbd79109f66405f892b229cd2245f

Reviewed-on: https://chromium-review.googlesource.com/4215915
WPT-Export-Revision: eed2ea72e5108bc6364e2f0928745e52af0687ba

CI Results

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

Total 13 tests and 1 subtests

Status Summary

Firefox

OK : 9
PASS : 10
FAIL : 10
TIMEOUT: 10
ERROR : 1

Chrome

OK : 9
PASS : 10
FAIL : 10
TIMEOUT: 10
ERROR : 1

Safari

OK : 9
PASS : 9
FAIL : 11
TIMEOUT: 10
ERROR : 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /browsing-topics/browsing-topics-permissions-policy-default.tentative.https.sub.html [wpt.fyi]: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • Default permissions policy allows document.browsingTopics() in the current page.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Default permissions policy allows document.browsingTopics() in same-origin iframes.: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • Default permissions policy allows document.browsingTopics() in cross-origin iframes.: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • Default permissions policyallows the 'Sec-Browsing-Topics' header to be sent for the same-origin topics fetch request.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Default permissions policyallows the 'Sec-Browsing-Topics' header to be sent for the cross-origin topics fetch request.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /browsing-topics/browsing-topics-permissions-policy-none.tentative.https.sub.html [wpt.fyi]: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • permissions policy header browsing-topics=() disallows document.browsingTopics() in the current page.: FAIL (Chrome: FAIL, Safari: FAIL)
    • permissions policy header browsing-topics=() disallows document.browsingTopics() in same-origin iframes.: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • permissions policy header browsing-topics=() disallows document.browsingTopics() in cross-origin iframes.: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
  • /browsing-topics/browsing-topics-permissions-policy-self.tentative.https.sub.html [wpt.fyi]: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • permissions policy header browsing-topics=(self) allows document.browsingTopics() in the current page.: FAIL (Chrome: FAIL, Safari: FAIL)
    • permissions policy header browsing-topics=(self) allows document.browsingTopics() in same-origin iframes.: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • permissions policy header browsing-topics=(self) disallows document.browsingTopics() in cross-origin iframes.: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • permissions policy header browsing-topics=(self)allows the 'Sec-Browsing-Topics' header to be sent for the same-origin topics fetch request.: FAIL (Chrome: FAIL, Safari: FAIL)
    • permissions policy header browsing-topics=(self)allows the 'Sec-Browsing-Topics' header to be sent for the redirect of a topics fetch request, where the redirect has a same-origin URL.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /browsing-topics/document-api.tentative.https.html [wpt.fyi]
    • test document.browsingTopics(): FAIL (Chrome: FAIL, Safari: FAIL)
  • /browsing-topics/fetch-topics-insecure-context.tentative.http.html [wpt.fyi]
    • test fetch(<url>, {browsingTopics: true}) in insecure context: FAIL (Chrome: FAIL, Safari: FAIL)
  • /browsing-topics/fetch-topics.tentative.https.html [wpt.fyi]
    • test fetch(<url>, {browsingTopics: true}): FAIL (Chrome: FAIL, Safari: FAIL)
  • /browsing-topics/xhr-topics.tentative.https.html [wpt.fyi]: ERROR (Chrome: ERROR, Safari: ERROR)
    • test XHR that sets the deprecatedBrowsingTopics attribtue: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11f997b30559 [wpt PR 38316] - [Topics] add web-platform-tests, a=testonly https://hg.mozilla.org/integration/autoland/rev/cb1601146557 [wpt PR 38316] - Update wpt metadata, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cb7d4f5565f4 [wpt PR 38316] - [Topics] add web-platform-tests, a=testonly https://hg.mozilla.org/integration/autoland/rev/bd0755465497 [wpt PR 38316] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.