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

  Changed paths:
    M Source/WebCore/loader/CrossOriginAccessControl.cpp

  Log Message:
  -----------
  Capture storedCredentialsPolicy before moving ResourceLoaderOptions in 
CrossOriginAccessControl
https://bugs.webkit.org/show_bug.cgi?id=322903
rdar://186161100

Reviewed by Chris Dumez.

createPotentialAccessControlRequest() read options.storedCredentialsPolicy
after WTF::move()'ing options into the CachedResourceRequest. This is a
use-after-move that happens to work only because storedCredentialsPolicy is
a scalar, so the move leaves the source intact. It would break silently if
ResourceLoaderOptions ever gained a non-trivial move.

Capture the value into a local before the move. No behavior change.

* Source/WebCore/loader/CrossOriginAccessControl.cpp:
(WebCore::createPotentialAccessControlRequest):

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



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

Reply via email to