Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cookie Store: Add testing for checks on path and domain length when s…
…etting cookies (web-platform-tests#41236) The spec (https://wicg.github.io/cookie-store/#set-cookie-algorithm) for the Cookie-Store API dictates that in the set function, if the byte sequence length of the path (in UTF8 format) is greater than the maximum attribute value size (currently 1024 bytes according to https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size), then the promise should be rejected with a TypeError. The same is true for the domain. This patch adds testing for this check in the set function in the same file that tests other argument-related checks that the set function should be doing.
- Loading branch information