| Summary: | [SOUP] http/tests/security/cookies/cookie-theft-with-javascript-doc.html crashing | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Claudio Saavedra <csaavedra> |
| Component: | WebKitGTK | Assignee: | Claudio Saavedra <csaavedra> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | achristensen, bugs-noreply, Hironori.Fujii, mcatanzaro |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=247658 | ||
|
Description
Claudio Saavedra
2022-10-21 08:09:37 PDT
There are two web processes (due to the iframe in the test), one with identifier 7 and the other 12. One of them is adding 'nullOrigin' to the "allowedFirstPartyForCookies" list, not the other. When the other receives a call to get the cookies for the DOM, the check of whether 'nullOrigin' is an allowed first party for cookies fails, and the assertion with it: NetworkProcess::addAllowedFirstPartyForCookies(identifier: 7, firstPartyForCookies: nullOrigin) NetworkProcess::addAllowedFirstPartyForCookies(identifier: 12, firstPartyForCookies: 127.0.0.1) NetworkProcess::allowsFirstPartyForCookies(identifier: 12, firstPartyForCookies: 127.0.0.1) NetworkProcess::allowsFirstPartyForCookies(identifier: 12, firstPartyForCookies: 127.0.0.1) NetworkProcess::allowsFirstPartyForCookies(identifier: 12, firstPartyForCookies: nullOrigin) --> ASSERTION FAILED: result The crash doesn't happen always for me, so this might be a timing issue. See also bug#247658. I'm proposing a patch there. This seems to have been fixed already with https://commits.webkit.org/256065@main Pull request: https://github.com/WebKit/WebKit/pull/6317 Committed 256498@main (4cd9a03152f0): <https://commits.webkit.org/256498@main> Reviewed commits have been landed. Closing PR #6317 and removing active labels. |