Closed
Bug 317631
Opened 19 years ago
Closed 19 years ago
Drag & Drop for Places
Categories
(Firefox :: Bookmarks & History, defect, P1)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
People
(Reporter: bugs, Assigned: bugs)
References
Details
Attachments
(2 files, 7 obsolete files)
68.40 KB,
patch
|
Details | Diff | Splinter Review | |
12.11 KB,
patch
|
bugs
:
review+
|
Details | Diff | Splinter Review |
.
Assignee | ||
Comment 1•19 years ago
|
||
Assignee | ||
Comment 2•19 years ago
|
||
Attachment #204097 -
Attachment is obsolete: true
Assignee | ||
Comment 3•19 years ago
|
||
Attachment #204181 -
Attachment is obsolete: true
Assignee | ||
Comment 4•19 years ago
|
||
Attachment #204187 -
Attachment is obsolete: true
Assignee | ||
Comment 5•19 years ago
|
||
Attachment #204192 -
Attachment is obsolete: true
Assignee | ||
Comment 6•19 years ago
|
||
Attachment #204197 -
Attachment is obsolete: true
Assignee | ||
Updated•19 years ago
|
Assignee | ||
Comment 7•19 years ago
|
||
make navhistoryresult pass tree notifications through to client using an interface similar to nsIXULTreeBuilderObserver (but not located in a file that introduces RDF dependencies). When we check this in, we should move this file into the tree/ area of the codebase and have both this and the other code in template builder use _that_.
Attachment #204258 -
Flags: review?(bryner)
Comment 8•19 years ago
|
||
Comment on attachment 204258 [details] [diff] [review] just the changes to navhistoryresult & idl >--- src/nsNavHistoryResult.cpp 23 Nov 2005 23:03:10 -0000 1.7 >+++ src/nsNavHistoryResult.cpp 27 Nov 2005 02:18:35 -0000 >@@ -611,16 +609,37 @@ nsNavHistoryResult::GetSourceQueries(PRU >+NS_IMETHODIMP >+nsNavHistoryResult::AddObserver(nsINavHistoryResultViewObserver* aObserver) >+{ >+ NS_ENSURE_ARG_POINTER(aObserver); >+ return mObservers.AppendObject(aObserver); >+} AppendObject returns a boolean (true for success, false for out of memory). You need to convert to the correct nsresult. Also, this should probably protect against adding the same observer twice. >+ >+NS_IMETHODIMP >+nsNavHistoryResult::RemoveObserver(nsINavHistoryResultViewObserver* aObserver) >+{ >+ NS_ENSURE_ARG_POINTER(aObserver); Just do: mObservers.RemoveObject(aObserver); >@@ -1097,28 +1116,44 @@ NS_IMETHODIMP nsNavHistoryResult::IsSort > NS_IMETHODIMP nsNavHistoryResult::CanDrop(PRInt32 index, PRInt32 orientation, > PRBool *_retval) > { >- *_retval = PR_FALSE; >+ PRInt32 count = mObservers.Count(); >+ nsINavHistoryResultViewObserver* observer = nsnull; >+ for (PRInt32 i = 0; i < count; ++i) { >+ observer = (nsINavHistoryResultViewObserver*)mObservers[i]; >+ if (observer) { - You shouldn't need to cast the value of mObservers[i]. If you do, something's wrong. - You protect against adding a null observer, so just assert that observer is non-null. - There's an assumption here that CanDrop doesn't alter the observer list. That should probably at least be documented. Same comments apply for the other pass-through methods. r=me with those fixed.
Attachment #204258 -
Flags: review?(bryner) → review+
Assignee | ||
Comment 9•19 years ago
|
||
also bring forward review+
Attachment #204258 -
Attachment is obsolete: true
Attachment #204261 -
Flags: review+
Assignee | ||
Comment 10•19 years ago
|
||
Attachment #204261 -
Attachment is obsolete: true
Attachment #204262 -
Flags: review+
Assignee | ||
Updated•19 years ago
|
Severity: normal → blocker
Priority: -- → P1
Assignee | ||
Comment 11•19 years ago
|
||
I'm going to say this "works" - additional things should be filed as separate bugs.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 12•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
You need to log in
before you can comment on or make changes to this bug.
Description
•