Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0150025ceca83cce46ff76ebe25804d21fe61ced
      
https://github.com/WebKit/WebKit/commit/0150025ceca83cce46ff76ebe25804d21fe61ced
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-09-13 (Sun, 13 Sep 2026)

  Changed paths:
    M Source/WebCore/platform/network/ResourceHandle.cpp

  Log Message:
  -----------
  ResourceHandle::didReceiveResponse() copies the response URL instead of 
taking a reference
https://bugs.webkit.org/show_bug.cgi?id=324055
rdar://187288218

Reviewed by Chris Dumez.

In the HTTP/0.9 branch of didReceiveResponse(), `auto url = response.url()`
deep-copied the URL even though ResourceResponseBase::url() returns a
`const URL&`. The response is not moved from until after the branch (which
always returns early), and cancel() does not touch the local response, so a
reference is valid for the whole block.

Bind a reference to avoid the copy.

* Source/WebCore/platform/network/ResourceHandle.cpp:
(WebCore::ResourceHandle::didReceiveResponse):

Canonical link: https://commits.webkit.org/321021@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to