Closed Bug 143791 Opened 22 years ago Closed 22 years ago

menuseparator in Go menu should stay hidden for tabbed mode

Categories

(SeaMonkey :: Tabbed Browser, defect)

defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bugs4hj, Assigned: jag+mozilla)

Details

Attachments

(2 files, 1 obsolete file)

mozilla RC2 on win32

Steps to reproduce:
1.start mozilla
2.activate tabbed browser mode (ctrl-t)
3.activate Go menu
note: second tab should be selected

current result:
second menuseparator is visible

expected result: last menuseparator should be hidden

I already made a small patch for this.
Attachment #83226 - Attachment is obsolete: true
Keywords: patch, review
Attached patch Better patchSplinter Review
note: Hyatt told me (#mozilla) to 'remove' attributes set to 'false', and that's
not the case here.
Comment on attachment 85737 [details] [diff] [review]
Better patch

>Index: sessionHistoryUI.js
>===================================================================
>RCS file: /cvsroot/mozilla/xpfe/browser/resources/content/sessionHistoryUI.js,v
>retrieving revision 1.41
>diff -u -r1.41 sessionHistoryUI.js
>--- sessionHistoryUI.js	6 Mar 2002 07:48:44 -0000	1.41
>+++ sessionHistoryUI.js	31 May 2002 07:57:00 -0000
>@@ -82,7 +82,7 @@
>             }
>           break;
>         case "go":
>-        if (count > 0) aParent.lastChild.removeAttribute( "hidden" );
>+          aParent.lastChild.hidden = !count;

I prefer |aParent.lastChild.hidden = (count == 0);|. Write what you mean (and
you don't mean to check if count is false).

sr=jag either way.
Attachment #85737 - Flags: superreview+
HJ: .hidden = false is not the same as .setAttribute("hidden", "false")
jag: sessionHistory.count attribute is of long type so can never be false...
Neil: Isn't that what I said?
Attachment #85737 - Flags: review+
> (and you don't mean to check if count is false).

But count can never be false (except in the 0 = false sense), it's a long int...

Anyway, timeless has checked in your version.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
vrfy'd fixed on all platforms with 2002.09.16.08 comm trunk builds.
Status: RESOLVED → VERIFIED
OS: Windows NT → All
Hardware: PC → All
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: