Closed Bug 17030 Opened 26 years ago Closed 25 years ago

Need to remove dead code from widget

Categories

(Core :: XUL, defect, P3)

All
Mac System 8.5
defect

Tracking

()

VERIFIED WONTFIX
mozilla0.9

People

(Reporter: sfraser_bugs, Assigned: dcone)

References

Details

(Keywords: embed, perf, Whiteboard: most of it removed, but not the "best" way.)

We need to somehow factor out the dead code from widget, or at least move it someplace else. This is mostly native widget code.
Blocks: 17033
Status: NEW → ASSIGNED
Target Milestone: M15
this can be post beta, imho.
Pink says that about 135K of this is used in Viewer. At what point does excess bloat in mozilla trump the convenience of the Viewer test app? We need to either make all of this code conditional, move it into Viewer somehow, or cut Viewer loose. cc'ing rickg for input.
cc'ing smfr, pierre, sdagely, beard, and trudelle. viewer, as of about two months ago, does not work at all on macOS. It has totally bitrotted. You can only view test0 since you can't type in the url field and i'm unsure about it even being able to view network pages if we could type there. So it's busted, no one is fixing it, no one cares, but we still ship it. Not only that, but in order to keep the text widget in it working, we also have to ship WasteLib in our release builds, which is 120K (yes!) of code that is not used for anything in the mozill app, and doesn't even work in widget. So what do we do?
Keywords: perf
Summary: [Perf] Need to remove dead code from widget → Need to remove dead code from widget
Whiteboard: most of it removed, but not the "best" way.
Target Milestone: M15 → M18
Mass moving M18 bugs to M19
Target Milestone: M18 → M19
mass-moving all bugs to m21 that are not dogfood+ or nsbeta2+ or nsbeta2-
Target Milestone: M19 → M21
someone needs to list what still remains for this bug...i forget.
I guess we can remove the rest of the native widgets; that means removing them from the factory as well. It's only 50k of code but as you wrote, it would allow us to remove WasteLib too. nsMacControl nsLabel nsButton nsScrollbar nsTextWidget
wasteLib has been gone for some time now. removing these widgets, however, would break viewer (which i don't care about but some do).
->future
Target Milestone: M21 → Future
size is of importance to embedding
Keywords: embed
Target Milestone: Future → mozilla0.9
shouldn't we move away from viewer and use the embedding test harnesses? That allows us to get rid of the dead code in widget that's only used for viewer.
--> gecko
Assignee: pinkerton → dcone
Status: ASSIGNED → NEW
Viewer will always be important for testing. There are regression test in viewer that printing and tables use. Marking as wontfix because I am not sure what needs to be done here. If somone can explain.. then this bug can go the the responsible person.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Hey dcone, before we close this bug, I wonder if we could do a quick swag at measuring how much dead code there actually is? The linux linker does not dead-strip code like the windows linker does, so this will end up bloating the widget DLL. If it's 100 bytes, who cares, but if it's even 5 or 10KB, it could be worthwhile to fix this `right'.
mass-verifying WontFix bugs which haven't changed since 2001-12-31. use the search string "BoletusEdulis" if you want to filter out this msg.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.