Changeset 258565 in webkit


Ignore:
Timestamp:
Mar 17, 2020 11:33:58 AM (4 years ago)
Author:
ddkilzer@apple.com
Message:

REGRESSION (r258334): WebPasteboardProxy::setPasteboardBufferForType should allow zero-size buffers
<https://webkit.org/b/209167>
<rdar://problem/60516302>

Reviewed by Geoffrey Garen.

  • UIProcess/Cocoa/WebPasteboardProxyCocoa.mm:

(WebKit::WebPasteboardProxy::setPasteboardBufferForType):

  • Remove check for zero-size buffer to match WebPageProxy::dataSelectionForPasteboard().
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r258559 r258565  
     12020-03-17  David Kilzer  <ddkilzer@apple.com>
     2
     3        REGRESSION (r258334): WebPasteboardProxy::setPasteboardBufferForType should allow zero-size buffers
     4        <https://webkit.org/b/209167>
     5        <rdar://problem/60516302>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm:
     10        (WebKit::WebPasteboardProxy::setPasteboardBufferForType):
     11        - Remove check for zero-size buffer to match
     12          WebPageProxy::dataSelectionForPasteboard().
     13
    1142020-03-17  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/Cocoa/WebPasteboardProxyCocoa.mm

    r258334 r258565  
    185185
    186186    // SharedMemory::Handle::size() is rounded up to the nearest page.
    187     MESSAGE_CHECK(size && size <= handle.size(), completionHandler(0));
     187    MESSAGE_CHECK(size <= handle.size(), completionHandler(0));
    188188
    189189    RefPtr<SharedMemory> sharedMemoryBuffer = SharedMemory::map(handle, SharedMemory::Protection::ReadOnly);
Note: See TracChangeset for help on using the changeset viewer.