Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 978bbafb7a3ab151703ba7e9694b78e2d63c3fe1
      
https://github.com/WebKit/WebKit/commit/978bbafb7a3ab151703ba7e9694b78e2d63c3fe1
  Author: Megan Gardner <[email protected]>
  Date:   2025-07-08 (Tue, 08 Jul 2025)

  Changed paths:
    M Source/WebCore/PAL/pal/spi/mac/NSPasteboardSPI.h
    M Source/WebCore/platform/Pasteboard.h
    M Source/WebCore/platform/PlatformPasteboard.h
    M Source/WebCore/platform/ios/PlatformPasteboardIOS.mm
    M Source/WebCore/platform/libwpe/PlatformPasteboardLibWPE.cpp
    M Source/WebCore/platform/mac/PlatformPasteboardMac.mm
    M Source/WebKit/UIProcess/mac/WebPageProxyMac.mm
    M Source/WebKit/UIProcess/mac/WebViewImpl.mm

  Log Message:
  -----------
  Pasteboard history should not include items copied from ephemeral sessions.
https://bugs.webkit.org/show_bug.cgi?id=295442
rdar://153315024

Reviewed by Abrar Rahman Protyasha.

In order to keep items copied in an ephemeral
session from showing up in pasteboard history,
we need to set a value before writing to the pasteboard.
We also have decided that we should be expiring the content
pasted to the pasteboard after the same amount of time as
we lock private browsing.

* Source/WebCore/PAL/pal/spi/mac/NSPasteboardSPI.h:
* Source/WebCore/platform/Pasteboard.h:
* Source/WebCore/platform/PlatformPasteboard.h:
* Source/WebCore/platform/ios/PlatformPasteboardIOS.mm:
(WebCore::PlatformPasteboard::setTypes):
(WebCore::PlatformPasteboard::write):
* Source/WebCore/platform/mac/PlatformPasteboardMac.mm:
(WebCore::PlatformPasteboard::write):
(WebCore::PlatformPasteboard::setTypes):
* Source/WebKit/UIProcess/mac/WebPageProxyMac.mm:
(WebKit::WebPageProxy::searchTheWeb):
(WebKit::WebPageProxy::handleContextMenuCopySubject):
* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::WebViewImpl::writeSelectionToPasteboard):
(WebKit::WebViewImpl::setPromisedDataForImage):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to