Closed Bug 293472 Opened 19 years ago Closed 19 years ago

Remove unused images from classic.jar in Firefox and Thunderbird

Categories

(Firefox :: General, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: sipaq, Assigned: sipaq)

References

Details

Attachments

(1 file, 5 obsolete files)

The files

- menu-arrow.gif
- menu-arrow-disabled.gif
- menu-arrow-hover.gif

are still packaged for Thunderbird and Firefox, even though they aren't used
anymore and have been replaced by equivalent png-files. The only exception is
the use of menu-arrow.gif in 

http://lxr.mozilla.org/seamonkey/source/toolkit/themes/pinstripe/global/menu.css#92
There are more unused files:

- alert-error.gif
- alert-exclam.gif
- alert-message.gif
- alert-question.gif
Status: NEW → ASSIGNED
Found one more in Qute (Thunderbird theme on Windows and Linux):

- tab-new.gif
Attached patch Qute cleanup patch (obsolete) — Splinter Review
Cleanup patch for Qute. The unused files should be cvs removed after applying
this patch.
Attachment #183574 - Flags: review?(mscott)
Attached patch Winstripe cleanup patch (obsolete) — Splinter Review
Cleanup patch for Winstripe. The unused files should be cvs removed after
applying this patch.
Attachment #183575 - Flags: review?(mconnor)
Ok, found one more:
close-button.gif is not used in Pinstripe and Winstripe. Qute uses it but does
not use close.gif instead. Question is, should Qute move to close.gif instead of
close-button.gif so that we could remove the reference to close-button.gif in
all three themes?

Mike and Scott, can you give some guidance here, please!
And what about Throbber-small.gif here:
http://lxr.mozilla.org/seamonkey/source/toolkit/themes/winstripe/global/throbber/Throbber-small.gif

We have in mozilla/toolkit, but we don't call it anywhere. All references to it
(even from files in mozilla/toolkit) go to
http://lxr.mozilla.org/seamonkey/source/browser/themes/winstripe/browser/Throbber-small.gif
(see http://lxr.mozilla.org/seamonkey/search?string=throbber-small.gif). This is
evil in itself, because we create unnecessary dependencies on mozilla/browser
from mozilla/toolkit.

I propose just using the file in mozilla/toolkit in all Firefox-specific code.
This would also allow other Toolkit apps, like Sunbird for example, to stop
packaging that file separately.
Attachment #183574 - Flags: review?(mscott)
Scott, this is a pretty low-risk patch, which disables packaging of some unused
files (which should also be cvs removed). It also moves Qute, Pinstripe and
Winstripe nearer together, by removing the reference to close-button.gif (see
comment 5).
Attachment #183574 - Attachment is obsolete: true
Attachment #184175 - Flags: review?(mscott)
Attachment #184175 - Flags: review?(mscott) → review+
Comment on attachment 184175 [details] [diff] [review]
Qute cleanup patch v2 (checked in)

Asking for approval. This is a low-risk cleanup patch which removes some unused
files from the build. It should save around 4K of build size on Windows
Attachment #184175 - Flags: approval-aviary1.1a1?
Comment on attachment 184175 [details] [diff] [review]
Qute cleanup patch v2 (checked in)

moving request out to a2. we're wrapped on a1.
Attachment #184175 - Flags: approval-aviary1.1a2?
Attachment #184175 - Flags: approval-aviary1.1a1?
Attachment #184175 - Flags: approval-aviary1.1a1-
Comment on attachment 184175 [details] [diff] [review]
Qute cleanup patch v2 (checked in)

a=shaver.
Attachment #184175 - Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Comment on attachment 184175 [details] [diff] [review]
Qute cleanup patch v2 (checked in)

Patch was checked in by timeless.
Attachment #184175 - Attachment description: Qute cleanup patch v2 → Qute cleanup patch v2 (checked in)
Attachment #183575 - Flags: review?(mconnor)
Attached patch Winstripe cleanup patch v2 (obsolete) — Splinter Review
Mike, could you review this cleanup patch, please.
I'm also asking mvl for a second review, because the patch touches Sunbird's
Winstripe code.
Attachment #183575 - Attachment is obsolete: true
Attachment #185364 - Flags: superreview?(mvl)
Attachment #185364 - Flags: review?(mconnor)
Attachment #185364 - Attachment is obsolete: true
Attachment #185366 - Flags: superreview?(mvl)
Attachment #185366 - Flags: review?(mconnor)
Attachment #185364 - Flags: superreview?(mvl)
Attachment #185364 - Flags: review?(mconnor)
Comment on attachment 185366 [details] [diff] [review]
Winstripe cleanup patch v3 (at mconnor's request)

Sorry, i'm not a sr, so i can sr this.
If you want to change sunbird's throbber, i'd suggest to file a new bug.
Attachment #185366 - Flags: superreview?(mvl)
Comment on attachment 185366 [details] [diff] [review]
Winstripe cleanup patch v3 (at mconnor's request)

Are we packaging two copies of Throbber.gif too?  Yes, we're not using it in
Firefox, but it should live in toolkit only, since its fairly generic.

Sorry for the delay, falling asleep in my chair mucks with my short-term
memory...
Attachment #185366 - Flags: review?(mconnor) → review+
Comment on attachment 184175 [details] [diff] [review]
Qute cleanup patch v2 (checked in)

2005-06-03 14:57
mozilla/mail/themes/qute/mail/compose/messengercompose.css	1.3
mozilla/toolkit/themes/qute/global/printing.css 	1.3
mozilla/toolkit/themes/qute/global/jar.mn	1.10
Attachment #184175 - Attachment is obsolete: true
Same patch as before but without the Sunbird changes, which I was asked to move
into another bug. Carrying over mconnor's review, since the changes to
mozilla/browser and mozilla/toolkit do not depend on the Sunbird changes and
nothing was changed between the prior patch and this one.
Attachment #185366 - Attachment is obsolete: true
Attachment #185652 - Flags: review+
Comment on attachment 185652 [details] [diff] [review]
Same patch as before but without the Sunbird changes (checked in)

Asking for approval on a small low-risk cleanup patch.
Attachment #185652 - Flags: approval-aviary1.1a2?
Attachment #185652 - Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Attachment #185652 - Attachment description: Same patch as before but without the Sunbird changes → Same patch as before but without the Sunbird changes (checked in)
The last patch was checked in by mvl. Marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: