Fix the test orange from bug 394759. Thanks to Dão for pointing to the right code to change.
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 23 Apr 2009 09:29:14 -0400
changeset 27676 577393262a7c9f55fbb75b2415a17c34efe92e3f
parent 27675 f15e705a5f0a7f21fa3acf95120066390c063443
child 27677 1f9b126ecec0e1ed1b9be91c99a9613523e0e89a
push id6687
push userbzbarsky@mozilla.com
push dateThu, 23 Apr 2009 13:30:10 +0000
treeherdermozilla-central@577393262a7c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs394759
milestone1.9.2a1pre
Fix the test orange from bug 394759. Thanks to Dão for pointing to the right code to change.
browser/base/content/browser-places.js
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -203,17 +203,16 @@ var StarUI = {
     // The remove button is shown only if we're not already batching, i.e.
     // if the cancel button/ESC does not remove the bookmark.
     this._element("editBookmarkPanelRemoveButton").hidden = this._batching;
 
     // The label of the remove button differs if the URI is bookmarked
     // multiple times.
     var bookmarks = PlacesUtils.getBookmarksForURI(gBrowser.currentURI);
     var forms = bundle.getString("editBookmark.removeBookmarks.label");
-    Cu.import("resource://gre/modules/PluralForm.jsm");
     var label = PluralForm.get(bookmarks.length, forms).replace("#1", bookmarks.length);
     this._element("editBookmarkPanelRemoveButton").label = label;
 
     // unset the unstarred state, if set
     this._element("editBookmarkPanelStarIcon").removeAttribute("unstarred");
 
     this._itemId = aItemId !== undefined ? aItemId : this._itemId;
     this.beginBatch();