Bug 1206376 - Pass the proper bookmark index when creating a new bookmark in the bookmark properties dialog. r=mak
authorDrew Willcoxon <adw@mozilla.com>
Tue, 22 Sep 2015 09:58:56 -0700
changeset 263747 a2ad0230946a4acc5c5cf9f6fa76d93aa7b2b861
parent 263746 1e7f9effc62bbc97a8af47633e063bd691ff18a5
child 263748 f45c7ca272a0f3ef811ba05bc94f45eb404f62cf
push id29417
push userkwierso@gmail.com
push dateTue, 22 Sep 2015 23:39:02 +0000
treeherdermozilla-central@46842118f0c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1206376
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1206376 - Pass the proper bookmark index when creating a new bookmark in the bookmark properties dialog. r=mak
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 : "",