Closed Bug 214707 Opened 21 years ago Closed 19 years ago

Don't allow creation of nameless toolbars

Categories

(Toolkit :: Toolbars and Toolbar Customization, defect, P4)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8final

People

(Reporter: megabyte, Assigned: Gavin)

Details

(Keywords: access)

Attachments

(1 file)

If you create a toolbar, but don't give it a name, it won't show up in the View
-> Toolbars menu.  Firebird 20030731/WinXP
I don't think you should be allowed to create a nameless toolbar in the first
place. If so, maybe that could be fixed at the same time as bug 171303 (which
deals with some duplicate toolbar name issues). I'll put a comment over there
and see what they think.
Flags: blocking0.9?
not a 0.9 blocker, maybe for 1.0
Flags: blocking0.9? → blocking0.9-
Flags: blocking1.0?
Assignee: hyatt → bugs
How about a bug on not being able to create nameless toolbars? ;-) 
Flags: blocking1.0? → blocking1.0-
Well, as I said in comment 1, do we allow nameless toolbars, and fix the way
they're represented so they do show up in the list (under a generic name,
presumably), or do we simply not allow nameless toolbars? The latter seems to
make more sense.
(In reply to comment #0)
> If you create a toolbar, but don't give it a name, it won't show up in the View
> -> Toolbars menu.  Firebird 20030731/WinXP

- And also you can delete the new toolbar created, even if you leave it empty.
(Or I don't know how to delete itand i have now a nice grey empty toolbar)
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Everyone seems to agree on the solution. Changing summary.
Keywords: helpwanted
Priority: -- → P4
Summary: Toolbars without names do not show up in View -> Toolbars menu → Don't allow creation of nameless toolars
Summary: Don't allow creation of nameless toolars → Don't allow creation of nameless toolbars
Attached patch PatchSplinter Review
Continuously asking until the user enters a name or presses cancel doesn't seem
to be the most elegant option, but it certainly is the easiest. Seeing as how
the current UI does pretty much the same in the case of a duplicate name, I
thought this was acceptable. This UI isn't used very much anyways...
Assignee: bugs → gavin.sharp
Status: NEW → ASSIGNED
Attachment #176099 - Flags: review?(mconnor)
Whiteboard: [patch-r?]
Target Milestone: --- → Firefox1.1
Version: unspecified → Trunk
Would it just be easier/more understandable to disable the OK button while the
input field is empty?
Comment on attachment 176099 [details] [diff] [review]
Patch

bumping review to bsmedberg, no time to test/review this for a little bit.
Attachment #176099 - Flags: review?(mconnor) → review?(benjamin)
(In reply to comment #8)
> Would it just be easier/more understandable to disable the OK button while the
> input field is empty?

I thought of that, but the prompt service used in this case doesn't allow for
this functionality. The other option would be to use a custom dialog, but I
didn't think it was worth the effort for such a minor thing.
Component: Toolbars → Toolbars and Toolbar Customization
Flags: review?(benjamin)
Flags: blocking0.9-
Flags: blocking-aviary1.0-
Product: Firefox → Toolkit
Target Milestone: Firefox1.1 → ---
Version: Trunk → unspecified
Attachment #176099 - Flags: first-review?(benjamin)
Attachment #176099 - Flags: first-review?(benjamin) → first-review+
Whiteboard: [patch-r?] → [patch-r+] [checkin needed]
Checking in mozilla/toolkit/content/customizeToolbar.js;
/cvsroot/mozilla/toolkit/content/customizeToolbar.js,v  <--  customizeToolbar.js
new revision: 1.26; previous revision: 1.25
done
Checking in mozilla/toolkit/locales/en-US/chrome/global/customizeToolbar.properties;
/cvsroot/mozilla/toolkit/locales/en-US/chrome/global/customizeToolbar.properties,v
 <--  customizeToolbar.properties
new revision: 1.3; previous revision: 1.2
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [patch-r+] [checkin needed]
Status: RESOLVED → VERIFIED
QA Contact: bugzilla → toolbars
Target Milestone: --- → mozilla1.8final
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: