gecko-dev/toolkit/components/places
Daisuke Akatsuka e48da94164 Bug 1703332: Remove purge_caches listener before unlinking mRootNode.r=mak
Until now, we have removed the listener for `purge_caches` on the destructor.
https://searchfox.org/mozilla-central/rev/ee9dab6aa95f167a34cb178960f7375210a0bba4/toolkit/components/places/nsNavHistoryResult.cpp#3482-3484
But, when closing, since  NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN will be called before calling the destructor, even if `mRootNode` is unlinked, might capture the `purge_caches` event.
https://searchfox.org/mozilla-central/rev/ee9dab6aa95f167a34cb178960f7375210a0bba4/toolkit/components/places/nsNavHistoryResult.cpp#3411
And in the case, it will crash due to touch the null object.
In this change, remove the listener before unlinking the `mRootNode` explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D111039
2021-04-08 22:06:18 +00:00
..
bookmark_sync
tests Bug 1699375 - Move WalkTheStack to mozglue. r=nika 2021-03-22 21:25:30 +00:00
BookmarkHTMLUtils.jsm
BookmarkJSONUtils.jsm
Bookmarks.jsm
components.conf
Database.cpp
Database.h
ExtensionSearchHandler.jsm
FaviconHelpers.cpp
FaviconHelpers.h
Helpers.cpp
Helpers.h
History.cpp Bug 708901 - Migrate to nsTHashSet in docshell. r=smaug,geckoview-reviewers,aklotz 2021-03-25 08:04:20 +00:00
History.h
History.jsm
INativePlacesEventCallback.h
jar.mn
moz.build
mozIAsyncHistory.idl
mozIPlacesAutoComplete.idl
mozIPlacesPendingOperation.idl
mozISyncedBookmarksMirror.idl
NotifyRankingChanged.h
nsAnnoProtocolHandler.cpp
nsAnnoProtocolHandler.h
nsFaviconService.cpp
nsFaviconService.h
nsIFaviconService.idl
nsINavBookmarksService.idl
nsINavHistoryService.idl
nsITaggingService.idl
nsNavBookmarks.cpp
nsNavBookmarks.h
nsNavHistory.cpp
nsNavHistory.h
nsNavHistoryQuery.cpp
nsNavHistoryQuery.h
nsNavHistoryResult.cpp Bug 1703332: Remove purge_caches listener before unlinking mRootNode.r=mak 2021-04-08 22:06:18 +00:00
nsNavHistoryResult.h Bug 1703332: Remove purge_caches listener before unlinking mRootNode.r=mak 2021-04-08 22:06:18 +00:00
nsPlacesIndexes.h
nsPlacesMacros.h
nsPlacesTables.h
nsPlacesTriggers.h
PageIconProtocolHandler.cpp
PageIconProtocolHandler.h
PlaceInfo.cpp
PlaceInfo.h
PlacesBackups.jsm
PlacesDBUtils.jsm
PlacesExpiration.jsm
PlacesRemoteTabsAutocompleteProvider.jsm
PlacesSyncUtils.jsm
PlacesTransactions.jsm
PlacesUtils.jsm
Shutdown.cpp
Shutdown.h
SQLFunctions.cpp
SQLFunctions.h
SyncedBookmarksMirror.h
SyncedBookmarksMirror.jsm
TaggingService.jsm
unifiedcomplete-top-urls.json
UnifiedComplete.jsm
VisitInfo.cpp
VisitInfo.h