зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1825047 [wpt PR 39245] - Replace TrustedType spec URL, a=testonly
Automatic update from web-platform-tests Replace TrustedType spec URL [chrome-security-owp-fixit-week-9] The TrustedType repository moved toward w3c. As a result, a lot of link are either invalid or behind a redirect. This patch correct the links. This is an automated patch. It only update comments and documentation. Some invalid links are now fixed. Script: ``` old="github.com\/wicg\/trusted-types" new="github.com\/w3c\/trusted-types" old="github.com\/WICG\/trusted-types" new="github.com\/w3c\/trusted-types" old="github.com\/w3c\/trusted-types\/#" new="w3c.github.io\/trusted-types\/dist\/spec\/#" old="WICG\/trusted-types" new="w3c\/trusted-types" old="w3c.github.io\/webappsec-trusted-types\/dist\/spec\/" new="w3c.github.io\/trusted-types\/dist\/spec\/" for file in chrome/ third_party/blink content/ services/ docs/ third_party/devtools-frontend do echo $file grep -r -l "${old}" "$file" | sort | uniq | xargs perl -e "s/${old}/${new}/" -pi done ``` Fixed: 1386115 Bug: 1386115 Change-Id: If9650dec718b9153f6921ab080d2baf60332eae6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4376759 Reviewed-by: Daniel Vogelheim <vogelheim@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Owners-Override: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/main@{#1122970} -- wpt-commits: dedf646b32e212a97a2d7451c74d778435f05cce wpt-pr: 39245
This commit is contained in:
Родитель
069031ab18
Коммит
3774a2a97f
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Daniel Vogelheim" href="mailto:vogelheim@chromium.org"></link>
|
||||
<link rel="help" href="https://w3c.github.io/webappsec-trusted-types/dist/spec/"></link>
|
||||
<link rel="help" href="https://w3c.github.io/trusted-types/dist/spec/"></link>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
spec: https://w3c.github.io/webappsec-trusted-types/dist/spec/
|
||||
spec: https://w3c.github.io/trusted-types/dist/spec/
|
||||
suggested_reviewers:
|
||||
- mikewest
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
}, "sanity check trustedTypes.getTypeMapping");
|
||||
|
||||
|
||||
// getPropertyType tests adapted from WICG/trusted-types polyfill:
|
||||
// getPropertyType tests adapted from w3c/trusted-types polyfill:
|
||||
test(t => {
|
||||
// returns the proper type for attribute-related properties
|
||||
assert_equals(trustedTypes.getPropertyType("script", "src"), "TrustedScriptURL");
|
||||
|
@ -46,7 +46,7 @@
|
|||
["text", "innerText", "textContent"].forEach((prop) => {
|
||||
assert_equals(trustedTypes.getPropertyType("script", prop), "TrustedScript");
|
||||
});
|
||||
}, "getPropertyType tests adapted from WICG/trusted-types polyfill");
|
||||
}, "getPropertyType tests adapted from w3c/trusted-types polyfill");
|
||||
|
||||
test(t => {
|
||||
// returns the proper type
|
||||
|
@ -69,7 +69,7 @@
|
|||
// defaults to undefined
|
||||
assert_equals(trustedTypes.getAttributeType('unknown', 'src'), null);
|
||||
assert_equals(trustedTypes.getAttributeType('img', 'bar'), null);
|
||||
}, "getAttributeType tests adapted from WICG/trusted-types polyfill");
|
||||
}, "getAttributeType tests adapted from w3c/trusted-types polyfill");
|
||||
|
||||
|
||||
test(t=> {
|
||||
|
@ -87,7 +87,7 @@
|
|||
;
|
||||
// Unknown namespaces:
|
||||
assert_equals(trustedTypes.getTypeMapping("http://foo/bar"), null);
|
||||
}, "getTypeMapping tests adapted from WICG/trusted-types polyfill");
|
||||
}, "getTypeMapping tests adapted from w3c/trusted-types polyfill");
|
||||
|
||||
// Test case handling for both attributes and properties.
|
||||
for (let attr of ["codeBase", "CODEBASE", "codebase"]) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<meta http-equiv="Content-Security-Policy" content="require-trusted-types-for 'script'">
|
||||
<link rel="author" title="Daniel Vogelheim" href="mailto:vogelheim@chromium.org"></link>
|
||||
<link rel="help" href="https://w3c.github.io/webappsec-trusted-types/dist/spec/"></link>
|
||||
<link rel="help" href="https://w3c.github.io/trusted-types/dist/spec/"></link>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
const policy = trustedTypes.createPolicy("policy", policy_dict);
|
||||
|
||||
// Regression tests for 'Bypass via insertAdjacentText', reported at
|
||||
// https://github.com/WICG/trusted-types/issues/133
|
||||
// https://github.com/w3c/trusted-types/issues/133
|
||||
|
||||
// We are trying to assert that scripts do _not_ get executed. We
|
||||
// accomplish by having the script under examination containing a
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<link rel="author" title="Daniel Vogelheim" href="mailto:vogelheim@chromium.org"></link>
|
||||
<link rel="help" href="https://w3c.github.io/webappsec-trusted-types/dist/spec/"></link>
|
||||
<link rel="help" href="https://w3c.github.io/trusted-types/dist/spec/"></link>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<meta http-equiv="Content-Security-Policy" content="require-trusted-types-for 'script'">
|
||||
|
|
Загрузка…
Ссылка в новой задаче