Skip to content

Commit

Permalink
NetworkLoad audit token scope needs to match Span that points to it
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=241422

Reviewed by Kate Cheney.

* Source/WebKit/NetworkProcess/NetworkLoad.cpp:
(WebKit::NetworkLoad::notifyDidReceiveResponse):

Canonical link: https://commits.webkit.org/251396@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
achristensen07 committed Jun 8, 2022
1 parent 3e943e8 commit dc533fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/WebKit/NetworkProcess/NetworkLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ void NetworkLoad::notifyDidReceiveResponse(ResourceResponse&& response, Negotiat
Span<const std::byte> auditToken;

#if PLATFORM(COCOA)
if (auto token = m_networkProcess->sourceApplicationAuditToken())
auto token = m_networkProcess->sourceApplicationAuditToken();
if (token)
auditToken = asBytes(Span<unsigned> { token->val });
#endif

Expand Down

0 comments on commit dc533fa

Please sign in to comment.