зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 162776: prevent the toolbar root bookmarks folder from being deleted by a drag to the trash.
This commit is contained in:
Родитель
347c834551
Коммит
46739bd525
|
@ -453,7 +453,7 @@ BookmarksService::MoveBookmarkToFolder(nsIDOMElement* aBookmark, nsIDOMElement*
|
|||
void
|
||||
BookmarksService::DeleteBookmark(nsIDOMElement* aBookmark)
|
||||
{
|
||||
if (!aBookmark) return;
|
||||
if (!aBookmark || aBookmark == gToolbarRoot) return;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> oldParent;
|
||||
aBookmark->GetParentNode(getter_AddRefs(oldParent));
|
||||
|
|
|
@ -453,7 +453,7 @@ BookmarksService::MoveBookmarkToFolder(nsIDOMElement* aBookmark, nsIDOMElement*
|
|||
void
|
||||
BookmarksService::DeleteBookmark(nsIDOMElement* aBookmark)
|
||||
{
|
||||
if (!aBookmark) return;
|
||||
if (!aBookmark || aBookmark == gToolbarRoot) return;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> oldParent;
|
||||
aBookmark->GetParentNode(getter_AddRefs(oldParent));
|
||||
|
|
|
@ -453,7 +453,7 @@ BookmarksService::MoveBookmarkToFolder(nsIDOMElement* aBookmark, nsIDOMElement*
|
|||
void
|
||||
BookmarksService::DeleteBookmark(nsIDOMElement* aBookmark)
|
||||
{
|
||||
if (!aBookmark) return;
|
||||
if (!aBookmark || aBookmark == gToolbarRoot) return;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> oldParent;
|
||||
aBookmark->GetParentNode(getter_AddRefs(oldParent));
|
||||
|
|
|
@ -453,7 +453,7 @@ BookmarksService::MoveBookmarkToFolder(nsIDOMElement* aBookmark, nsIDOMElement*
|
|||
void
|
||||
BookmarksService::DeleteBookmark(nsIDOMElement* aBookmark)
|
||||
{
|
||||
if (!aBookmark) return;
|
||||
if (!aBookmark || aBookmark == gToolbarRoot) return;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> oldParent;
|
||||
aBookmark->GetParentNode(getter_AddRefs(oldParent));
|
||||
|
|
Загрузка…
Ссылка в новой задаче