Closed
Bug 346662
Opened 18 years ago
Closed 18 years ago
crash when deleting a Live bookmark via "Bookmark Properties" [@ BindStatementURI]
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
VERIFIED
FIXED
Firefox 3 alpha1
People
(Reporter: baffclan, Assigned: joelnackman)
References
Details
(Keywords: crash)
Crash Data
Attachments
(1 file, 2 obsolete files)
2.01 KB,
patch
|
annie.sullivan
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060730 Minefield/3.0a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060730 Minefield/3.0a1 crash when delete a Live bookmark on "Bookmark Properties" Reproducible: Always Steps to Reproduce: 1. Subscribe Live Bookmark on Bookmaeks toolbar 2. rigth click a Live Bookmark, and open Bookmark Properties 3. click a "Delete Bookmark" on "Bookmark Properties" Actual Results: crash a Firefox. Talkback ID : TB21619770X, TB21619766Q, TB21619761W
Comment 1•18 years ago
|
||
Can confirm this - quick search found no duplicates so marking as new (please re-mark is a dupe is found.)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash,
talkbackid
Summary: crash when delete a Live bookmark on "Bookmark Properties" → crash when delete a Live bookmark on "Bookmark Properties" [@nsNavBookmarks::GetBookmarkFoldersTArray]
Version: unspecified → Trunk
Updated•18 years ago
|
Summary: crash when delete a Live bookmark on "Bookmark Properties" [@nsNavBookmarks::GetBookmarkFoldersTArray] → crash when delete a Live bookmark via "Bookmark Properties" [@nsNavBookmarks::GetBookmarkFoldersTArray]
Comment 2•18 years ago
|
||
Incident ID: 21619770 Stack Signature BindStatementURI dce28dd2 Product ID FirefoxTrunk Build ID 2006073004 Trigger Time 2006-07-31 05:09:01.0 Platform Win32 Operating System Windows NT 5.1 build 2600 Module firefox.exe + (00482467) URL visited User Comments Since Last Crash 14 sec Total Uptime 49952 sec Trigger Reason Access violation Source File, Line No. c:\builds\tinderbox\fx-trunk-cairo\winnt_5.2_depend\mozilla\toolkit\components\places\src\nsnavhistory.cpp, line 4301 Stack Trace BindStatementURI nsNavBookmarks::GetBookmarkFoldersTArray nsNavBookmarks::GetBookmarkFolders XPTC_InvokeByIndex XPCWrappedNative::CallMethod
Assignee | ||
Comment 3•18 years ago
|
||
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060730 Minefield/3.0a1 Also crashes on the Mac (by hitting "Get Info", instead of "Properties").
Component: Places → Bookmarks
Updated•18 years ago
|
Component: Bookmarks → Places
Updated•18 years ago
|
OS: Windows XP → All
Hardware: PC → All
Summary: crash when delete a Live bookmark via "Bookmark Properties" [@nsNavBookmarks::GetBookmarkFoldersTArray] → crash when deleting a Live bookmark via "Bookmark Properties" [@ BindStatementURI]
Assignee | ||
Comment 4•18 years ago
|
||
This fixes the bug on my build, but I'm not completely sure that this is the correct way to fix it. BPP_deleteBookmark was using _bookmarkURI even when the bookmark was a livemark, meaning it was a folder ID, and _bookmarkURI was null. http://lxr.mozilla.org/seamonkey/source/browser/components/places/content/bookmarkProperties.js#669
Attachment #231589 -
Flags: review?(vladimir)
Comment 5•18 years ago
|
||
Comment on attachment 231589 [details] [diff] [review] Patch I actually think someone like Annie Sullivan (annie.sullivan@g) or Brett Wilson (brettw@g) would be more appropriate to review this, since they wrote the code.
Attachment #231589 -
Flags: review?(vladimir)
Assignee | ||
Comment 6•18 years ago
|
||
Got rid of the tabs and made 2 space indents.
Attachment #231589 -
Attachment is obsolete: true
Attachment #231605 -
Flags: review?(annie.sullivan)
Comment 7•18 years ago
|
||
Comment on attachment 231605 [details] [diff] [review] Patch (fixed indents) This looks like the right way to fix it, but the indentation is still a little messed up. >+ var transactions = []; >+ Everything is indented 3 characters instead of 4. There's a tab on the blank line here >+ if (this._identifierIsURI()) { >+ var folders = this._bms.getBookmarkFolders(bookmarkURI, {}); >+ if (folders.length == 0) >+ return; >+ >+ for (var i = 0; i < folders.length; i++) { >+ var index = this._bms.indexOfItem(folders[i], bookmarkURI); >+ var transaction = new PlacesRemoveItemTransaction(bookmarkURI, >+ folders[i], index) The first character of this last line is a tab >+ transactions.push(transaction); >+ } >+ } else { // This is a folder Id >+ var transaction = new PlacesRemoveFolderTransaction(this._folderId); >+ transactions.push(transaction); >+ } The "var transaction" and "transactions.push(" lines start with tabs, as does the following blank line >+ > var aggregate = > new PlacesAggregateTransaction(this._getDialogTitle(), transactions); > this._controller.tm.doTransaction(aggregate); > }, > > /** > * This method checks the current state of the input fields in the > * dialog, and if any of them are in an invalid state, it will disable Sorry to be so nit-picky.
Attachment #231605 -
Flags: review?(annie.sullivan) → review-
Assignee | ||
Comment 8•18 years ago
|
||
The indents should hopefully be correct now. diff was somehow stripping a space from all of my lines.
Attachment #231605 -
Attachment is obsolete: true
Attachment #231620 -
Flags: review?(annie.sullivan)
Updated•18 years ago
|
Attachment #231620 -
Flags: review?(annie.sullivan) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #231620 -
Flags: superreview?(roc)
Comment 9•18 years ago
|
||
Comment on attachment 231620 [details] [diff] [review] Patch w/correct indents Joel, this patch doesn't need superreview; it's ready for check in. Just add [checkin needed] to the Status Whiteboard so people (e.g. gavin) know that it needs to be checked in.
Attachment #231620 -
Flags: superreview?(roc)
Updated•18 years ago
|
Assignee: nobody → joelnackman
Updated•18 years ago
|
Status: NEW → ASSIGNED
Comment 11•18 years ago
|
||
mozilla/browser/components/places/content/bookmarkProperties.js 1.22
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → Firefox 3 alpha1
Reporter | ||
Comment 12•18 years ago
|
||
cannot reproduce with Firefox/2006081204-trunk/WinXP. thanks for fixing this. -> v.
Status: RESOLVED → VERIFIED
Comment 13•18 years ago
|
||
*** Bug 348560 has been marked as a duplicate of this bug. ***
Comment 14•15 years ago
|
||
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
Updated•13 years ago
|
Crash Signature: [@ BindStatementURI]
You need to log in
before you can comment on or make changes to this bug.
Description
•