Chromium Code Reviews
DescriptionClipboard access is not threadsafe in general. Previously clipboard reads were occuring on the IO thread while writes were on the UI thread, leading to a race condition in the clipboard code. This fixes that issue by placing all clipboard accesses on the UI thread and adding thread checks to ensure that all accesses occur from the same thread.
Windows is an exception to this rule where clipboard reads need to occur on the IO thread to avoid deadlocks with NPAPI plugins. This is ok because the windows clipboard is threadsafe.
BUG=114648
TEST=Tested clipboard by hand on linux. Ran trybots (all passed except flakiness on linux_chromeos). Ran new PPAPI test that was triggering the crash (http://codereview.chromium.org/9212066/)
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=122916
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123088
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : . #Patch Set 4 : . #
Total comments: 5
Patch Set 5 : . #
Total comments: 2
Patch Set 6 : . #Patch Set 7 : . #Patch Set 8 : Rebased #
Messages
Total messages: 13 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||