[wpt-sync] Sync PR 38316 - [Topics] add web-platform-tests
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox112 fixed)
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: Iba75c684c70bbd79109f66405f892b229cd2245fReviewed-on: https://chromium-review.googlesource.com/4215915
WPT-Export-Revision: eed2ea72e5108bc6364e2f0928745e52af0687ba
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
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
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
)
- Default permissions policy allows document.browsingTopics() in the current page.:
- /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
)
- permissions policy header browsing-topics=() disallows document.browsingTopics() in the current page.:
- /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
)
- permissions policy header browsing-topics=(self) allows document.browsingTopics() in the current page.:
- /browsing-topics/document-api.tentative.https.html [wpt.fyi]
- test document.browsingTopics():
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- test document.browsingTopics():
- /browsing-topics/fetch-topics-insecure-context.tentative.http.html [wpt.fyi]
- test fetch(<url>, {browsingTopics: true}) in insecure context:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- test fetch(<url>, {browsingTopics: true}) in insecure context:
- /browsing-topics/fetch-topics.tentative.https.html [wpt.fyi]
- test fetch(<url>, {browsingTopics: true}):
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- test fetch(<url>, {browsingTopics: true}):
- /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
)
- test XHR that sets the deprecatedBrowsingTopics attribtue:
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cb7d4f5565f4
https://hg.mozilla.org/mozilla-central/rev/bd0755465497
Description
•