Closed Bug 266356 Opened 20 years ago Closed 20 years ago

[patch] "Add Separator" button shoudn't be enabled in history view.

Categories

(Camino Graveyard :: Bookmarks, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Camino0.9

People

(Reporter: ender.mb, Assigned: mozilla)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20041024 Camino/0.8+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20041024 Camino/0.8+

Just stumbled onto this bug... apparently, the "add separator" button in the
bookmarks manager is enabled when the manager is closed, it will remain enabled
when the manager is next opened--even if it opens to something other than the
"bookmarks menu" pane. 

Reproducible: Always
Steps to Reproduce:
1. click Bookmarks > Show All Bookmarks (cmd+b), or the bookmarks toolbar item.
2. click on "Bookmarks Menu" in the "Items" column.
3. click Bookmarks > Hide All Bookmarks (cmd+b), or the bookmarks toolbar item.
4. click History > Show History (cmd+y).

Actual Results:  
"Add Separator" button is enabled. Clicking it causes separators to be added to
the end of the bookmarks menu.

Expected Results:  
"Add Separator" button should be disabled.
Confirmed, shuoldn't be possible.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: "Add Separator" button enabled in history view → "Add Separator" button shoudn't be enabled in history view.
Happy to take this one, having done two other UI enable/disable bugs over the
weekend.
Assignee: pinkerton → Bruce.Davidson
Status: NEW → ASSIGNED
Attached patch Proposed patch (obsolete) — Splinter Review
This patch disables the "add separator" button in the bookmarks view if the
history pane is the currently active pane. Seeking r=
Summary: "Add Separator" button shoudn't be enabled in history view. → [patch] "Add Separator" button shoudn't be enabled in history view.
Attachment #163739 - Flags: review?
Attachment #163739 - Flags: review? → review?(joshmoz)
Comment on attachment 163739 [details] [diff] [review]
Proposed patch

R+ works
Attachment #163739 - Flags: review?(jpellico)
Attachment #163739 - Flags: review?(joshmoz)
Attachment #163739 - Flags: review+
Targeting for 0.9, thinking about including this one in 0.8.2
Target Milestone: --- → Camino0.9
Attachment #163739 - Flags: review?(jpellico)
Attachment #163739 - Flags: superreview?(pinkerton)
Comment on attachment 163739 [details] [diff] [review]
Proposed patch

sr=pink
Attachment #163739 - Flags: superreview?(pinkerton) → superreview+
Comment on attachment 163739 [details] [diff] [review]
Proposed patch

actually i'd like a better fix for this.

if the separator button is only enabled for bookmarks, then just call the
|-setEnabled:| once. pull the 

[mAddSeparatorButton setEnabled:(kBookmarkMenuContainerIndex == inRowIndex)];

out of the if statement and always call it.
Attachment #163739 - Flags: superreview+ → superreview-
Updated patch that addresses Mike's comment. Tested and it works as expected,
which at least solves the query I had about what that line was doing! Again, if
reviewers are happy please transfer r=, and pinkerton submitting for sr= again.
Attachment #163739 - Attachment is obsolete: true
Attachment #164339 - Flags: superreview?(pinkerton)
Comment on attachment 164339 [details] [diff] [review]
Updated patch addressing Mike's sr comment

sr=pink, will land myself.
Attachment #164339 - Flags: superreview?(pinkerton) → superreview+
landed.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: