Closed Bug 591344 Opened 14 years ago Closed 14 years ago

Star button fixes from SeaMonkey review

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: kairo, Assigned: kairo)

References

Details

Attachments

(1 file, 1 obsolete file)

As pretty much always, Neil has review comments on the SeaMonkey bookmarking button in bug 589601 that should be backported to the star button in FF.
Attached patch patch: fix a few nits (deleted) — Splinter Review
Here's the patch fixing those nits - see the original bug for explanantions.
Attachment #469886 - Flags: review?(mak77)
Comment on attachment 469886 [details] [diff] [review] patch: fix a few nits >diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js > onItemRemoved: function PSB_onItemRemoved(aItemId, aFolder, aIndex, > aItemType) { >- if (!this._batching) >+ if (!this._batching && this._starred) > this.updateState(); > }, this looks wrong for now, livemarks children for example are bookmarks and can get onItemRemoved, but they are not marked as starred. Add a comment about this instead, to clarify code. r=me with this fixed.
Attachment #469886 - Flags: review?(mak77) → review+
Attached patch v1.1: address Marco's review nits (obsolete) (deleted) — Splinter Review
Requesting approval - this is very low risk nitfixing.
Attachment #469886 - Attachment is obsolete: true
Attachment #471593 - Flags: review+
Attachment #471593 - Flags: approval2.0?
(In reply to comment #2) > (From update of attachment 469886 [details] [diff] [review]) > >diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js > > onItemRemoved: function PSB_onItemRemoved(aItemId, aFolder, aIndex, > > aItemType) { > >- if (!this._batching) > >+ if (!this._batching && this._starred) > > this.updateState(); > > }, > this looks wrong for now, livemarks children for example are bookmarks and can > get onItemRemoved, but they are not marked as starred. Sure, but who cares? We only care if the current URL is removed.
(In reply to comment #4) > Sure, but who cares? We only care if the current URL is removed. after a brief talk with Neil, since the new check skips updateState that is expensive, the first version will be fine, we indeed don't care of unstarring unstarred items.
Attachment #469886 - Attachment is obsolete: false
Attachment #469886 - Flags: approval2.0?
Attachment #471593 - Attachment is obsolete: true
Attachment #471593 - Flags: approval2.0?
Attachment #469886 - Flags: approval2.0? → approval2.0+
this is not worth taking anymore since bug 613477 is going to change most of this code. But I'll go through these changes and add them back to bug 591344 where they are still applicable, in next iteration of that patch.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
sorry, I meant "...add them back to bug 613477 where..."
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: