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

  Changed paths:
    M Source/WebCore/Modules/async-clipboard/Clipboard.cpp

  Log Message:
  -----------
  Deduplicate identical image/png and image/svg+xml read branches in 
Clipboard::getType
https://bugs.webkit.org/show_bug.cgi?id=323394
rdar://186626780

Reviewed by Chris Dumez.

Clipboard::getType() handled the "image/png" and "image/svg+xml" content
types with two byte-identical blocks: each constructed a
ClipboardImageReader, read the active pasteboard, took the resulting blob,
revalidated the session via updateSessionValidity(), and resolved or
rejected the promise. Collapse them into a single branch guarded by both
type checks. No behavior change.

* Source/WebCore/Modules/async-clipboard/Clipboard.cpp:
(WebCore::Clipboard::getType):

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



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

Reply via email to