Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: aacd4aca2a766c8ab056f0ebab3acd4fe3051e5f
      
https://github.com/WebKit/WebKit/commit/aacd4aca2a766c8ab056f0ebab3acd4fe3051e5f
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-07-14 (Tue, 14 Jul 2026)

  Changed paths:
    M Source/WebKit/UIProcess/mac/WebViewImpl.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

  Log Message:
  -----------
  [Site Isolation] [macOS] DOM paste access fails to actually allow pasteboard 
access in cross-origin subframes
https://bugs.webkit.org/show_bug.cgi?id=319290
rdar://182129589

Reviewed by Abrar Rahman Protyasha.

On macOS only, we failed to pass the frame ID where pasteboard access was 
requested when calling
into `grantAccessToCurrentPasteboardData`; this causes pastes to fail with 
`NotAllowedError`, even
after the user selects 'Paste' in the programmatic paste menu.

Fix this by taking `requestFrame` from the `m_domPasteState`, and passing it in.

Test: SiteIsolation.DOMPasteAccessGrantedInCrossOriginFrame

* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::WebViewImpl::handleDOMPasteRequestForCategoryWithResult):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::(SiteIsolation, DOMPasteAccessGrantedInCrossOriginFrame)):

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



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

Reply via email to