If querying for the cookie fails, the promise should be rejected with a TypeError.
Pull request: https://github.com/WebKit/WebKit/pull/15756
Committed 266006@main (9c1b157f42a1): <https://commits.webkit.org/266006@main> Reviewed commits have been landed. Closing PR #15756 and removing active labels.
<rdar://problem/112156504>