[Webkit-unassigned] [Bug 81079] REGRESSION(r107844): Clipboard API only remembers most recent data set on clipboard

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 15 09:52:15 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=81079





--- Comment #5 from Brady Eidson <beidson at apple.com>  2012-03-15 09:52:15 PST ---
The key change was in ClipboardMac::setData.

Before r107844 ClipboardMac::setData used the NSPasteBoard API [NSPasteBoard addTypes:owner:] which takes an array of types to add, and adds them to the already existing pasteboard types.

In r107844 and later, ClipboardMac::setData does the following:
-Uses the PlatformStrategies method "setTypes" to pass off the new types to add.  Notice the method name is notably wrong.
-The WebKit Platform Strategies turn around and all PlatformPasteboard::setTypes().  Notice the method name is notably wrong.
-PlatformPasteboardMac::setTypes() uses the NSPasteBoard API  [NSPasteBoard declareTypes:owner:] which explicitly clears all previous contents and adds only the included types.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list