Skip to content

Commit

Permalink
Bug 1827496 [wpt PR 39483] - Increase maximum interest group size to …
Browse files Browse the repository at this point in the history
…1MB, a=testonly

Automatic update from web-platform-tests
Increase maximum interest group size to 1MB

Also set a per-owner limit of 10MB for all interest groups from that
owner.

Related to discussion: WICG/turtledove#402

Change-Id: I01ae54e2f41e1c24d93f9abe5630d7bdd18a3a83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4362860
Reviewed-by: Caleb Raitto <caraitto@chromium.org>
Commit-Queue: Russ Hamilton <behamilton@google.com>
Cr-Commit-Position: refs/heads/main@{#1129232}

--

wpt-commits: eae9862859a94faccc2abbf87e6b718408c85b41
wpt-pr: 39483
  • Loading branch information
brusshamilton authored and moz-wptsync-bot committed Apr 18, 2023
1 parent 5c94b85 commit f6c7638
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,21 +462,21 @@ const SIMPLE_JOIN_LEAVE_TEST_CASES = [
all: [3,4,5] }
},

// Interest group dictionaries must be less than 50 KiB (51200 bytes), so test
// that here by using a large name on an otherwise valid interest group
// Interest group dictionaries must be less than 1 MB (1048576 bytes), so
// test that here by using a large name on an otherwise valid interest group
// dictionary. The first case is the largest name value that still results in
// a valid dictionary, whereas the second test case produces a dictionary
// that's one byte too large.
{ expectJoinSucces: true,
expectLeaveSucces: true,
interestGroup: { ...BASE_INTEREST_GROUP,
name: 'a'.repeat(51152) },
name: 'a'.repeat(1048528) },
testCaseName: "Largest possible interest group dictionary",
},
{ expectJoinSucces: false,
expectLeaveSucces: true,
interestGroup: { ...BASE_INTEREST_GROUP,
name: 'a'.repeat(51153) },
name: 'a'.repeat(1048529) },
testCaseName: "Oversized interest group dictionary",
},
];
Expand Down

0 comments on commit f6c7638

Please sign in to comment.