B2G/gecko/browser/components/places/content/bookmarkProperties.js
/**
   * Dialog-accept code-path for creating a new item (any type)
   */
Dialog-accept code-path for creating a new item (any type)
Dialog - accept code - path for creating a new item ( any type )
function BPP__getCreateItemTransaction() {
    var [container, index] = this._getInsertionPointDetails();
    var txn;
    switch (this._itemType) {
      case BOOKMARK_FOLDER:
        txn = this._getCreateNewFolderTransaction(container, index);
        break;
      case LIVEMARK_CONTAINER:
        txn = this._getCreateNewLivemarkTransaction(container, index);
        break;      
      default: 
        txn = this._getCreateNewBookmarkTransaction(container, index);
    }
    PlacesUtils.transactionManager.doTransaction(txn);
    this._itemId = PlacesUtils.bookmarks.getIdForItemAt(container, index);
  }
function BPP__getCreateItemTransaction ( ) { var [ container , index ] = this . _getInsertionPointDetails ( ) ; var txn ; switch ( this . _itemType ) { case BOOKMARK_FOLDER : txn = this . _getCreateNewFolderTransaction ( container , index ) ; break ; case LIVEMARK_CONTAINER : txn = this . _getCreateNewLivemarkTransaction ( container , index ) ; break ; default : txn = this . _getCreateNewBookmarkTransaction ( container , index ) ; } PlacesUtils . transactionManager . doTransaction ( txn ) ; this . _itemId = PlacesUtils . bookmarks . getIdForItemAt ( container , index ) ; }
Dialog-accept code-path for creating a new item (any type)
Dialog - accept code - path for creating a new item ( any type )
// BOOKMARK_ITEM