Bug 1206376 - Pass the proper bookmark index when creating a new bookmark in the bookmark properties dialog. r=mak, a=sylvestre
authorDrew Willcoxon <adw@mozilla.com>
Tue, 22 Sep 2015 09:58:56 -0700
changeset 284200 a363a3510295ceaa61afb325d4e257b669dd83f2
parent 284199 4353ea1e784e6bc70e43df36eaba4eac497e7cc0
child 284201 9034d20bf95da1d0cd25e00e90f5d4b9640213c5
push id8464
push usercbook@mozilla.com
push dateThu, 24 Sep 2015 14:12:29 +0000
treeherdermozilla-aurora@663c99a20a9b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak, sylvestre
bugs1206376
milestone43.0a2
Bug 1206376 - Pass the proper bookmark index when creating a new bookmark in the bookmark properties dialog. r=mak, a=sylvestre
browser/components/places/content/bookmarkProperties.js
--- a/browser/components/places/content/bookmarkProperties.js
+++ b/browser/components/places/content/bookmarkProperties.js
@@ -602,17 +602,17 @@ var BookmarkPropertiesPanel = {
     // This is a temporary hack until we use PlacesTransactions.jsm
     if (txn._promise) {
       yield txn._promise;
     }
 
     let folderGuid = yield PlacesUtils.promiseItemGuid(container);
     let bm = yield PlacesUtils.bookmarks.fetch({
       parentGuid: folderGuid,
-      index: PlacesUtils.bookmarks.DEFAULT_INDEX
+      index: index
     });
     this._itemId = yield PlacesUtils.promiseItemId(bm.guid);
 
     return Object.freeze({
       itemId: this._itemId,
       bookmarkGuid: bm.guid,
       title: this._title,
       uri: this._uri ? this._uri.spec : "",