Bug 1206376 - Pass the proper bookmark index when creating a new bookmark in the bookmark properties dialog. r=mak, a=ritu
authorDrew Willcoxon <adw@mozilla.com>
Tue, 22 Sep 2015 09:58:56 -0700
changeset 283840 109eaf2e780209fb8dd27658379eb7cff2967ee4
parent 283839 bce9d5894e587e4278dafc3c422246bc3cf158b3
child 283841 f662edb63d39b8bd1f6198e194fd03b6e4c54068
push id915
push userkwierso@gmail.com
push dateMon, 28 Sep 2015 15:50:42 +0000
treeherdermozilla-release@109eaf2e7802 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak, ritu
bugs1206376
milestone41.0
Bug 1206376 - Pass the proper bookmark index when creating a new bookmark in the bookmark properties dialog. r=mak, a=ritu
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 : "",