Bug 1557847 - C-C part: Adapt to array changes in nsIClipboard.hasDataMatchingFlavors(). r=me
This commit is contained in:
Родитель
5a28192d7e
Коммит
17d62fee95
|
@ -38,7 +38,6 @@ function canPaste() {
|
|||
|
||||
const flavors = ["text/calendar", "text/unicode"];
|
||||
return Services.clipboard.hasDataMatchingFlavors(flavors,
|
||||
flavors.length,
|
||||
Ci.nsIClipboard.kGlobalClipboard);
|
||||
}
|
||||
|
||||
|
|
|
@ -325,7 +325,7 @@ PlacesController.prototype = {
|
|||
var flavors = PlacesUIUtils.PLACES_FLAVORS;
|
||||
var clipboard = this.clipboard;
|
||||
var hasPlacesData =
|
||||
clipboard.hasDataMatchingFlavors(flavors, flavors.length,
|
||||
clipboard.hasDataMatchingFlavors(flavors,
|
||||
Ci.nsIClipboard.kGlobalClipboard);
|
||||
if (hasPlacesData)
|
||||
return this._view.insertionPoint != null;
|
||||
|
|
Загрузка…
Ссылка в новой задаче