Skip to content

Commit

Permalink
Merge 4c6449a into 6fe9cd4
Browse files Browse the repository at this point in the history
  • Loading branch information
pull[bot] authored Jan 20, 2023
2 parents 6fe9cd4 + 4c6449a commit 1305317
Show file tree
Hide file tree
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.
182 changes: 90 additions & 92 deletions .azure-pipelines.yml

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ updates:
schedule:
interval: weekly
open-pull-requests-limit: 1000
- package-ecosystem: npm
directory: webrtc/tools/
schedule:
interval: weekly
open-pull-requests-limit: 1000
- package-ecosystem: npm
directory: tools/scripts/
schedule:
interval: weekly
open-pull-requests-limit: 1000
- package-ecosystem: pip
directory: css/
schedule:
interval: weekly
open-pull-requests-limit: 1000
- package-ecosystem: npm
directory: css/css-writing-modes/tools/generators/
schedule:
interval: weekly
open-pull-requests-limit: 1000
- package-ecosystem: pip
directory: docs/
schedule:
Expand Down
38 changes: 22 additions & 16 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@ jobs:
build-and-publish:
runs-on: ubuntu-20.04
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Set up Virtualenv
run: pip install virtualenv
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Run website_build.sh
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
run: ./tools/ci/website_build.sh
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
# Documentation is generated using Python 3.9 due to spinx-js not
# supporting 3.10: https://github.com/mozilla/sphinx-js/issues/186
python-version: '3.9'
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Set up Virtualenv
run: pip install virtualenv
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Run website_build.sh
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
run: ./tools/ci/website_build.sh
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/epochs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run epochs_update.sh
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/interfaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]>
Expand All @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,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
with:
fetch-depth: 50
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/regen_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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]>
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ scratch
/webaudio/idl/*

# w3c-test.org PR-branch mirroring
submissions/
/submissions/
2 changes: 1 addition & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ tasks:
owner: ${owner}
source: ${event.repository.clone_url}
payload:
image: webplatformtests/wpt:0.48
image: webplatformtests/wpt:0.52
maxRunTime: 7200
artifacts:
public/results:
Expand Down
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)
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)
8 changes: 8 additions & 0 deletions .well-known/attribution-reporting/debug/verbose
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)
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)
8 changes: 8 additions & 0 deletions .well-known/attribution-reporting/report-event-attribution
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)
40 changes: 0 additions & 40 deletions .well-known/origin-policy

This file was deleted.

35 changes: 35 additions & 0 deletions .well-known/web-identity
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)
59 changes: 59 additions & 0 deletions FileAPI/Blob-methods-from-detached-frame.html
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>
Loading

0 comments on commit 1305317

Please sign in to comment.