Bug 883554 - Only empty clipboard for known clipboard types (global). r=jimm

This commit is contained in:
Brian R. Bondy 2013-07-06 10:57:10 -04:00
parent 43e7a2d9e9
commit 33e795e578

View File

@ -927,7 +927,7 @@ nsClipboard::GetNativeClipboardData ( nsITransferable * aTransferable, int32_t a
NS_IMETHODIMP
nsClipboard::EmptyClipboard(int32_t aWhichClipboard)
{
if (::OpenClipboard(nullptr)) {
if (aWhichClipboard == kGlobalClipboard && ::OpenClipboard(nullptr)) {
::EmptyClipboard();
::CloseClipboard();
}