зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1910196 [wpt PR 47314] - Shared Storage: Lower budget on virtual suite to help prevent timeout, a=testonly
Automatic update from web-platform-tests Shared Storage: Lower budget on virtual suite to help prevent timeout We lower the bit budget limits for the shared-storage-fenced-frame-mparch-selecturl-limit virtual suite because run-url-selection-operation-limit-multiple-sites.tentative.https.sub.html currently times out on Win11-arm64. Bug: 355603417 Change-Id: I721aba04eb680b41eeedf186494a5c46cd1281cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5743996 Reviewed-by: Philip Rogers <pdr@chromium.org> Reviewed-by: Yao Xiao <yaoxia@chromium.org> Commit-Queue: Cammie Smith Barnes <cammie@chromium.org> Cr-Commit-Position: refs/heads/main@{#1334375} -- wpt-commits: f48a315a48c191b05f8a595968c6318aa33671ef wpt-pr: 47314
This commit is contained in:
Родитель
e6fd59d71e
Коммит
68725681b3
|
@ -11,14 +11,9 @@
|
|||
<script>
|
||||
'use strict';
|
||||
|
||||
function getCrossSiteURL(url) {
|
||||
return new URL(url.toString().replace(location.origin,
|
||||
get_host_info().HTTPS_NOTSAMESITE_ORIGIN));
|
||||
}
|
||||
|
||||
promise_test(async () => {
|
||||
const ancestorKey = token();
|
||||
const perOriginBitLimit = 6;
|
||||
const perOriginBitLimit = 3;
|
||||
const bitsKey = "bits";
|
||||
|
||||
let url0 = generateURL(
|
||||
|
@ -26,7 +21,7 @@ promise_test(async () => {
|
|||
"resources/run-url-selection-operation-limit-inner.https.html",
|
||||
[ancestorKey]);
|
||||
|
||||
// The per site per pageload limit is 6 bits.
|
||||
// We have set the per site per pageload limit to 3 bits.
|
||||
url0.searchParams.append(bitsKey, perOriginBitLimit.toString());
|
||||
attachIFrame(url0);
|
||||
const result0 = await nextValueFromServer(ancestorKey);
|
||||
|
@ -38,9 +33,10 @@ promise_test(async () => {
|
|||
[ancestorKey]);
|
||||
|
||||
// The overall pageload budget should have 3 bits remaining, as we have set
|
||||
// it to start at 9.
|
||||
// it to start at 6.
|
||||
url1.searchParams.append(bitsKey, "3");
|
||||
url1 = getCrossSiteURL(url1);
|
||||
const crossOrigin1 = get_host_info().HTTPS_NOTSAMESITE_ORIGIN;
|
||||
url1 = updateUrlToUseNewOrigin(url1, crossOrigin1);
|
||||
attachIFrame(url1);
|
||||
const result1 = await nextValueFromServer(ancestorKey);
|
||||
assert_equals(result1, "run_url_selection_limit_inner_succeeded");
|
||||
|
@ -50,11 +46,12 @@ promise_test(async () => {
|
|||
"resources/run-url-selection-operation-limit-inner.https.html",
|
||||
[ancestorKey]);
|
||||
|
||||
// Since the overall per pageload limit is 9 bits here, it should have
|
||||
// Since the overall per pageload limit is 6 bits here, it should have
|
||||
// already been reached, even though `url2`'s site should have 3 bits
|
||||
// remaining in the per-site budget, since it is same-site with `url1`.
|
||||
// remaining in the per-site budget.
|
||||
url2.searchParams.append(bitsKey, "0");
|
||||
url2 = getCrossSiteURL(url2);
|
||||
const crossOrigin2 = get_host_info().OTHER_ORIGIN;
|
||||
url2 = updateUrlToUseNewOrigin(url2, crossOrigin2);
|
||||
attachIFrame(url2);
|
||||
const result2 = await nextValueFromServer(ancestorKey);
|
||||
assert_equals(result2, "run_url_selection_limit_inner_succeeded");
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
promise_test(async () => {
|
||||
const ancestorKey = token();
|
||||
const perOriginBitLimit = 6;
|
||||
const perOriginBitLimit = 3;
|
||||
const numUrls = 8;
|
||||
const urls = generateUrls(numUrls, "/shared-storage/resources/frame",
|
||||
[ancestorKey]);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
promise_test(async () => {
|
||||
const ancestorKey = token();
|
||||
const perOriginBitLimit = 6;
|
||||
const perOriginBitLimit = 3;
|
||||
const numUrls = 8;
|
||||
const urls = generateUrls(numUrls, "/shared-storage/resources/frame",
|
||||
[ancestorKey]);
|
||||
|
|
Загрузка…
Ссылка в новой задаче