Closed Bug 265085 Opened 20 years ago Closed 19 years ago

Software update (green) icon displayed/appears/flashes directly next to Help during start

Categories

(Toolkit :: Application Update, defect)

1.7 Branch
x86
Windows XP
defect
Not set
trivial

Tracking

()

VERIFIED FIXED

People

(Reporter: g.teunis, Assigned: bugs)

References

Details

Attachments

(4 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041018 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041018 Firefox/0.10.1

When starting FireFox, the software update icon (green) is displayed directly
next to the Help menu even when no update is available.
When Firefox is loaded the update icon disappears (or if a update is available
the arrow will still be visible but align right). This is especially visible on
somewhat slower computers or a new FF install.

Reproducible: Always
Steps to Reproduce:
1. Close Firefox
2. Open Firefox
3. Look direcly next to the Help menu

Actual Results:  
The software update icon (green one) is displayed directly next to help, if FF
is fully started the icon will be alligned right and if no updates are available
the icon will be hidden.

Expected Results:  
No software update directly next to the help menu.

On FF start do not show update icon, after start show the icon if updates are
available (aligned right).

It isn't a big issue but will the loading a FF a bit jumpy (icons appearing and
disappearing during start).
Attached image screenshot
Summary: During FireFox start a green software update arrow is displayed next to Help → Software update icon displayed directly next to Help during start
Sorry for the bugspam. Some more info.
The icon is also displayed and on the wrong position when the "Firefox is not as
your default browser" dialog is displayed. After the user chooses Yes or No the
icon disappears and/or is displayed on the right position
Confirming with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3)
Gecko/20041021 Firefox/1.0.

This happens on openning new windowsm also.
My guess is that this is caused by some customization you have performed on your
toolbars.  Particularly not having a flexible space where one should be.

Can you duplicate this with a clean profile without doing any customization first?

If not, I would suggest you exit Firefox and delete the localsotre.rdf file from
your profile.

That will probably celar up this issue.
(In reply to comment #4)
> That will probably celar up this issue.

I already tried a clean profile and even a clean application dir (ofcourse :-))

Please check it yourself, the best way to check the problem is registering IE as
default browser and start firefox, you'll see the update icon being displayed
during the default browser dialog (shouldn't be) directly next to help.
*** Bug 267437 has been marked as a duplicate of this bug. ***
*** Bug 268654 has been marked as a duplicate of this bug. ***
From dup bug 268654 : "is displayed for short each time you open Firefox when
automatic updates are disabled." Even if it's not possible to get it hidden
close enough to when it first appears to not be noticeable when update's
enabled, not showing it at all when it's disabled would be less confusing/worrisome.
Summary: Software update icon displayed directly next to Help during start → Software update icon displayed/appears/flashes directly next to Help during start
The icon also appears short before any update-search ends, even if there's no
update.
(In reply to comment #9)
> The icon also appears short before any update-search ends, even if there's no
> update.

I've reported that one in bug 268803 a while ago.
(not confirmed yet)

Flags: blocking-aviary1.1?
*** Bug 282775 has been marked as a duplicate of this bug. ***
Assignee: firefox → bugs
Component: General → Software Update
QA Contact: general → bugs
Flags: blocking-aviary1.1? → blocking-aviary1.1-
I discussed it on irc with Callek and he came up with the answer: when update
toolbarbutton is first created, its update count is not initialized. The skin
applies visible style to such button, and update JS sets the correct update
count later.
Two solutions:
1) Skin update: make uninitialized update button also invisible.
classic.jar/skin/classic/mozapps/update/update.css

- toolbarbutton[type="updates"][updateCount="0"]
+ toolbarbutton[type="updates"][updateCount="0"], 
+                 toolbarbutton[type="updates"]:not([updateCount]) {
 visibility: collapse
}

2) Initialize the update count as soon as you create the update element
http://lxr.mozilla.org/mozilla/source/browser/base/content/browser.xul#148

- <toolbarbutton type="updates" id="softwareupdate"/>
+ <toolbarbutton type="updates" id="softwareupdate" updateCount="0" />

Whichever is chosen, opening new windows is faster and nicer and no things jump
around. Highly recommended. ;)
*** Bug 293035 has been marked as a duplicate of this bug. ***
Summary: Software update icon displayed/appears/flashes directly next to Help during start → Software update (green) icon displayed/appears/flashes directly next to Help during start
I personally would go for Radek Czyz's option 2.
Not making this bug theme specific.
(my first patch, please bare with me)
Attachment #182766 - Flags: review?(bryner)
Attached patch Option 2 (obsolete) — Splinter Review
I of course would prefer a toolkit/ solution.

I do have some reservations about this one, as I very vaguely recall that there
are/were some dynamic use problems with :not; as such I will have an option 3
patch along these lines coming up.

Note to bryner, the browser/ patch may optionally be applied with one of these
toolkit ones, though if you use one of these toolkit patches it is pointless.

Also my two toolkit patches (Option 1, and Option 3) are mutually exclusive, r+
the one you want to add-in.
Attachment #182805 - Flags: review?(bryner)
Attached patch Option 1Splinter Review
I of course would prefer a toolkit/ solution.

I do have some reservations about this one, as I very vaguely recall that there
are/were some dynamic use problems with :not; as such I will have an option 3
patch along these lines coming up.

Note to bryner, the browser/ patch may optionally be applied with one of these
toolkit ones, though if you use one of these toolkit patches it is pointless.

Also my two toolkit patches (Option 1, and Option 3) are mutually exclusive, r+
the one you want to add-in.
Attachment #182806 - Flags: review?(bryner)
Comment on attachment 182805 [details] [diff] [review]
Option 2

damn network timeout coupled with a typo
Attachment #182805 - Attachment is obsolete: true
Attachment #182805 - Flags: review?(bryner)
Attached patch Option 3Splinter Review
Option 3
Attachment #182808 - Flags: review?(bryner)
This WFM on both computers I tried it on in the latest Deer Park nightly.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050617
Firefox/1.0+
Version: unspecified → 1.0 Branch
This also works for me with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.9a1) Gecko/20050816 Firefox/1.0+ and has worked for over two or three weeks
now...should be closed
(In reply to comment #20)
> This also works for me with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
> rv:1.9a1) Gecko/20050816 Firefox/1.0+ and has worked for over two or three weeks
> now...should be closed

Yeah, I'm fairly certain the new software update UI (bug 290390) removed the
update icon altogether.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #182766 - Flags: review?(bryner)
Attachment #182806 - Flags: review?(bryner)
Attachment #182808 - Flags: review?(bryner)
Product: Firefox → Toolkit
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: