Bug 1212171 - Change for referencing a different object Component.utils. instead of Cu. r=mak

This commit is contained in:
Kapeel Sable 2015-10-08 06:53:00 +02:00
Родитель 122b33db00
Коммит 8b36eb6981
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -274,7 +274,7 @@ PlacesController.prototype = {
this.newItem("bookmark");
break;
case "placesCmd_new:separator":
this.newSeparator().catch(Cu.reportError);
this.newSeparator().catch(Components.utils.reportError);
break;
case "placesCmd_show:info":
this.showBookmarkPropertiesForSelection();
@ -1309,8 +1309,8 @@ PlacesController.prototype = {
// source, otherwise report an error and fallback to a copy.
if (!doCopy &&
!PlacesControllerDragHelper.canMoveUnwrappedNode(item)) {
Cu.reportError("Tried to move an unmovable Places node, " +
"reverting to a copy operation.");
Components.utils.reportError("Tried to move an unmovable " +
"Places node, reverting to a copy operation.");
doCopy = true;
}
let guid = yield PlacesUIUtils.getTransactionForData(
@ -1346,8 +1346,8 @@ PlacesController.prototype = {
// If this is not a copy, check for safety that we can move the source,
// otherwise report an error and fallback to a copy.
if (action != "copy" && !PlacesControllerDragHelper.canMoveUnwrappedNode(items[i])) {
Components.utils.reportError("Tried to move an unmovable Places node, " +
"reverting to a copy operation.");
Components.utils.reportError("Tried to move an unmovable Places " +
"node, reverting to a copy operation.");
action = "copy";
}
transactions.push(
@ -1625,8 +1625,8 @@ var PlacesControllerDragHelper = {
// If this is not a copy, check for safety that we can move the source,
// otherwise report an error and fallback to a copy.
if (!doCopy && !PlacesControllerDragHelper.canMoveUnwrappedNode(unwrapped)) {
Components.utils.reportError("Tried to move an unmovable Places node, " +
"reverting to a copy operation.");
Components.utils.reportError("Tried to move an unmovable Places " +
"node, reverting to a copy operation.");
doCopy = true;
}
if (PlacesUIUtils.useAsyncTransactions) {