Bug 1755481: rename nsIClipboard::getData to nsIClipboard::getSomeData and document it. r=mccr8
Before, it was confusing. One could have assumed that the method gets the data for all flavors. Differential Revision: https://phabricator.services.mozilla.com/D138776
This commit is contained in:
@@ -206,9 +206,9 @@ nsresult TextEditor::PasteAsAction(int32_t aClipboardType,
|
||||
return NS_OK; // XXX Why?
|
||||
}
|
||||
// Get the Data from the clipboard.
|
||||
rv = clipboard->GetData(transferable, aClipboardType);
|
||||
rv = clipboard->GetSomeData(transferable, aClipboardType);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("nsIClipboard::GetData() failed, but ignored");
|
||||
NS_WARNING("nsIClipboard::GetSomeData() failed, but ignored");
|
||||
return NS_OK; // XXX Why?
|
||||
}
|
||||
// XXX Why don't we check this first?
|
||||
|
||||
Reference in New Issue
Block a user