Closed Bug 429046 Opened 18 years ago Closed 15 years ago

warnings in test_saved_searches.js

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dietrich, Unassigned)

References

Details

spotted by sdwilsh: WARNING: history observers should not get OnItemChanged, but should get the corresponding history notifications instead: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 2875 WARNING: history observers should not get OnItemChanged, but should get the corresponding history notifications instead: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 2875 WARNING: history observers should not get OnItemChanged, but should get the corresponding history notifications instead: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 2875 WARNING: Attempting to register an observer twice!: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 3851 WARNING: Attempting to register an observer twice!: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 3830 WARNING: Attempting to register an observer twice!: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 3830 WARNING: Attempting to register an observer twice!: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 3830 WARNING: history observers should not get OnItemChanged, but should get the corresponding history notifications instead: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 2875 WARNING: history observers should not get OnItemChanged, but should get the corresponding history notifications instead: file /Users/dietrich/moz/trunk/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 2875
"WARNING: Attempting to register an observer twice!" this is quite common, iirc actually this is caused by calling Refresh on an history QueryResultNode, it will call fillChildren and that tries to add the node to the list of history observers. The addition does not happen because we check duplicates before allowing to register a node twice. I'm not sure if this warning makes sense since we already check for duplicates, and what happens is pretty natural (fillChildren does not know if it is called for the first time or by refresh). "WARNING: history observers should not get OnItemChanged, but should get the corresponding history notifications instead" this is handled with refresh for query QUERY_UPDATE_COMPLEX_WITH_BOOKMARKS, but actually could be notified also to QUERY_TYPE_BOOKMARKS, so i'm not sure this warning is saying anything useful. Personally i'd remove both.
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
I think I've recently (4.0) fixed both.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.