forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25,030 changed files
with
518,901 additions
and
155,217 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,13 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Run interfaces_update.sh | ||
run: ./tools/ci/interfaces_update.sh | ||
- name: Create pull request | ||
# Use a conditional step instead of a conditional job to work around #20700. | ||
if: github.repository == 'web-platform-tests/wpt' | ||
uses: peter-evans/create-pull-request@v3 | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
author: wpt-pr-bot <[email protected]> | ||
|
@@ -25,7 +25,7 @@ jobs: | |
body: | | ||
This automated pull request updates interfaces/*.idl from [@webref/idl ${{ env.webref_idl_version }}](https://www.npmjs.com/package/@webref/idl/v/${{ env.webref_idl_version }}). | ||
Before merging, please check that any tests that depend on the updated IDL files still work. | ||
Before merging, please check that any tests that depend on the updated IDL files still work. In particular, check for **gray boxes as the wpt.fyi check status**, which usually means that some tests have regressed. | ||
If additional changes are needed, please manually create another PR based on this one. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,11 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
python-version: '3.10' | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Regenerate certs | ||
# Use a conditional step instead of a conditional job to work around #20700. | ||
if: github.repository == 'web-platform-tests/wpt' | ||
|
@@ -24,7 +24,7 @@ jobs: | |
- name: Commit and create pull request | ||
# Use a conditional step instead of a conditional job to work around #20700. | ||
if: github.repository == 'web-platform-tests/wpt' | ||
uses: peter-evans/create-pull-request@v3 | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
author: wpt-pr-bot <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,4 @@ scratch | |
/webaudio/idl/* | ||
|
||
# w3c-test.org PR-branch mirroring | ||
submissions/ | ||
/submissions/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
.well-known/attribution-reporting/debug/report-aggregate-attribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Endpoint to receive and return aggregatable debug reports.""" | ||
from importlib import import_module | ||
|
||
reports = import_module('attribution-reporting.resources.reports') | ||
|
||
|
||
def main(request, response): | ||
return reports.handle_reports(request) |
8 changes: 8 additions & 0 deletions
8
.well-known/attribution-reporting/debug/report-event-attribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Endpoint to receive and return event-level debug reports.""" | ||
from importlib import import_module | ||
|
||
reports = import_module('attribution-reporting.resources.reports') | ||
|
||
|
||
def main(request, response): | ||
return reports.handle_reports(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Endpoint to receive and return verbose debug reports.""" | ||
from importlib import import_module | ||
|
||
reports = import_module('attribution-reporting.resources.reports') | ||
|
||
|
||
def main(request, response): | ||
return reports.handle_reports(request) |
8 changes: 8 additions & 0 deletions
8
.well-known/attribution-reporting/report-aggregate-attribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Endpoint to receive and return aggregatable attribution reports.""" | ||
from importlib import import_module | ||
|
||
reports = import_module('attribution-reporting.resources.reports') | ||
|
||
|
||
def main(request, response): | ||
return reports.handle_reports(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Endpoint to receive and return event-level attribution reports.""" | ||
from importlib import import_module | ||
|
||
reports = import_module('attribution-reporting.resources.reports') | ||
|
||
|
||
def main(request, response): | ||
return reports.handle_reports(request) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import importlib | ||
keys = importlib.import_module("credential-management.support.fedcm.keys") | ||
|
||
def main(request, response): | ||
manifest_url = request.server.stash.take(keys.MANIFEST_URL_IN_MANIFEST_LIST_KEY) | ||
|
||
if manifest_url is None or not len(manifest_url): | ||
port = request.server.config.ports["https"][0] | ||
hostname = request.url_parts.hostname | ||
manifest_url = "https://{0}:{1}/credential-management/support/fedcm/manifest.py".format( | ||
hostname, str(port)) | ||
else: | ||
try: | ||
manifest_url = manifest_url.decode() | ||
except (UnicodeDecodeError, AttributeError): | ||
pass | ||
|
||
if len(request.cookies) > 0: | ||
return (530, [], "Cookie should not be sent to manifest list endpoint") | ||
if request.headers.get(b"Accept") != b"application/json": | ||
return (531, [], "Wrong Accept") | ||
if request.headers.get(b"Sec-Fetch-Dest") != b"webidentity": | ||
return (532, [], "Wrong Sec-Fetch-Dest header") | ||
if request.headers.get(b"Referer"): | ||
return (533, [], "Should not have Referer") | ||
if request.headers.get(b"Origin"): | ||
return (534, [], "Should not have Origin") | ||
|
||
return """ | ||
{{ | ||
"provider_urls": [ | ||
"{0}" | ||
] | ||
}} | ||
""".format(manifest_url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Blob methods from detached frame work as expected</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
|
||
<iframe id="emptyDocumentIframe" src="../support/empty-document.html"></iframe> | ||
|
||
<script> | ||
const BlobPrototypeFromDetachedFramePromise = new Promise(resolve => { | ||
emptyDocumentIframe.onload = () => { | ||
const BlobPrototype = emptyDocumentIframe.contentWindow.Blob.prototype; | ||
emptyDocumentIframe.remove(); | ||
resolve(BlobPrototype); | ||
}; | ||
}); | ||
|
||
const charCodeArrayToString = charCodeArray => Array.from(charCodeArray, c => String.fromCharCode(c)).join(""); | ||
const charCodeBufferToString = charCodeBuffer => charCodeArrayToString(new Uint8Array(charCodeBuffer)); | ||
|
||
promise_test(async () => { | ||
const { slice } = await BlobPrototypeFromDetachedFramePromise; | ||
const blob = new Blob(["foobar"]); | ||
|
||
const slicedBlob = slice.call(blob, 1, 3); | ||
assert_true(slicedBlob instanceof Blob); | ||
|
||
assert_equals(await slicedBlob.text(), "oo"); | ||
assert_equals(charCodeBufferToString(await slicedBlob.arrayBuffer()), "oo"); | ||
|
||
const reader = slicedBlob.stream().getReader(); | ||
const { value } = await reader.read(); | ||
assert_equals(charCodeArrayToString(value), "oo"); | ||
}, "slice()"); | ||
|
||
promise_test(async () => { | ||
const { text } = await BlobPrototypeFromDetachedFramePromise; | ||
const blob = new Blob(["foo"]); | ||
|
||
assert_equals(await text.call(blob), "foo"); | ||
}, "text()"); | ||
|
||
promise_test(async () => { | ||
const { arrayBuffer } = await BlobPrototypeFromDetachedFramePromise; | ||
const blob = new Blob(["bar"]); | ||
|
||
const charCodeBuffer = await arrayBuffer.call(blob); | ||
assert_equals(charCodeBufferToString(charCodeBuffer), "bar"); | ||
}, "arrayBuffer()"); | ||
|
||
promise_test(async () => { | ||
const { stream } = await BlobPrototypeFromDetachedFramePromise; | ||
const blob = new Blob(["baz"]); | ||
|
||
const reader = stream.call(blob).getReader(); | ||
const { value } = await reader.read(); | ||
assert_equals(charCodeArrayToString(value), "baz"); | ||
}, "stream()"); | ||
</script> |
Oops, something went wrong.