From 78e5561cb87043984167b8f1b394252d3927b561 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 8 Apr 2014 09:35:04 +0200 Subject: [PATCH] Backed out changeset 3fbf2620c5de (bug 983623) for mochitest-other bustage --- browser/components/places/content/controller.js | 13 +++---------- browser/components/places/content/placesOverlay.xul | 9 ++------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/browser/components/places/content/controller.js b/browser/components/places/content/controller.js index 4950ec54a579..c98969c784cd 100644 --- a/browser/components/places/content/controller.js +++ b/browser/components/places/content/controller.js @@ -3,6 +3,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "ForgetAboutSite", "resource://gre/modules/ForgetAboutSite.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "NetUtil", @@ -223,18 +224,10 @@ PlacesController.prototype = { doCommand: function PC_doCommand(aCommand) { switch (aCommand) { case "cmd_undo": - if (!PlacesUIUtils.useAsyncTransactions) { - PlacesUtils.transactionManager.undoTransaction(); - return; - } - PlacesTransactions.undo().then(null, Cu.reportError); + PlacesUtils.transactionManager.undoTransaction(); break; case "cmd_redo": - if (!PlacesUIUtils.useAsyncTransactions) { - PlacesUtils.transactionManager.redoTransaction(); - return; - } - PlacesTransactions.redo().then(null, Cu.reportError); + PlacesUtils.transactionManager.redoTransaction(); break; case "cmd_cut": case "placesCmd_cut": diff --git a/browser/components/places/content/placesOverlay.xul b/browser/components/places/content/placesOverlay.xul index 12aae17b7c47..ca00ec8bef06 100644 --- a/browser/components/places/content/placesOverlay.xul +++ b/browser/components/places/content/placesOverlay.xul @@ -24,13 +24,8 @@ var Ci = Components.interfaces; var Cr = Components.results; - Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); - XPCOMUtils.defineLazyModuleGetter(window, - "PlacesUtils", "resource://gre/modules/PlacesUtils.jsm"); - XPCOMUtils.defineLazyModuleGetter(window, - "PlacesUIUtils", "resource:///modules/PlacesUIUtils.jsm"); - XPCOMUtils.defineLazyModuleGetter(window, - "PlacesTransactions", "resource://gre/modules/PlacesTransactions.jsm"); + Components.utils.import("resource://gre/modules/PlacesUtils.jsm"); + Components.utils.import("resource:///modules/PlacesUIUtils.jsm"); ]]>