зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1862956 - Use `FlavorsTransferableCanExport` to get the available flavor list from cached transferable; r=nika,spohl
Differential Revision: https://phabricator.services.mozilla.com/D192678
This commit is contained in:
Родитель
8efa6f53e4
Коммит
9529ca9444
|
@ -416,7 +416,7 @@ nsClipboard::HasNativeClipboardDataMatchingFlavors(
|
|||
if (kSelectionCache == aWhichClipboard) {
|
||||
nsTArray<nsCString> transferableFlavors;
|
||||
if (sSelectionCache &&
|
||||
NS_SUCCEEDED(sSelectionCache->FlavorsTransferableCanImport(
|
||||
NS_SUCCEEDED(sSelectionCache->FlavorsTransferableCanExport(
|
||||
transferableFlavors))) {
|
||||
if (MOZ_CLIPBOARD_LOG_ENABLED()) {
|
||||
MOZ_CLIPBOARD_LOG(" SelectionCache types (nums %zu)\n",
|
||||
|
|
|
@ -355,7 +355,7 @@ nsBaseClipboard::GetFlavorsFromClipboardCache(int32_t aClipboardType) {
|
|||
MOZ_ASSERT(cachedTransferable);
|
||||
|
||||
nsTArray<nsCString> flavors;
|
||||
nsresult rv = cachedTransferable->FlavorsTransferableCanImport(flavors);
|
||||
nsresult rv = cachedTransferable->FlavorsTransferableCanExport(flavors);
|
||||
if (NS_FAILED(rv)) {
|
||||
return mozilla::Err(rv);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче