Closed Bug 57306 Opened 25 years ago Closed 24 years ago

Yank timebomb.* prefs, nsTimeBomb

Categories

(SeaMonkey :: UI Design, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
Future

People

(Reporter: junruh, Assigned: bugzilla)

References

Details

(Keywords: helpwanted, perf, Whiteboard: relnote-devel [nav+perf])

Attachments

(1 file)

1.) With a clean system, install the Win98 101908 branch build. 2.) Start the browser, close it and view the prefs.js file. What I see: A timebomb pref.
See also bug 44563: Optimization: Disable timebomb code for Mozilla
granrose says "timebombs are already disabled in the ns build, we're not removing the timebomb code from the ns build." I think this belongs in bugscape anyways, as this is nsonly.
over to buildconfig
Assignee: asa → cls
Component: Browser-General → Build Config
QA Contact: doronr → granrose
this isn't a build config bug, we don't hack the product, we hack the build system. removing timebomb code, even if we wanted to do that, would be some browser hacker's job. I'm punting to XP: Miscellany as a guess.
Assignee: cls → waterson
Component: Build Config → XP Miscellany
QA Contact: granrose → brendan
magic 8-ball says XPApps. Probably mcafee...
Assignee: waterson → don
Component: XP Miscellany → XP Apps
QA Contact: brendan → sairuh
Not sure who owns this, adding ssu, dveditiz.
rtm
Keywords: rtm
Do we still even read the timebomb pref?
Priority: P3 → P1
Whiteboard: [rtm need info]
this bug is for removing timebomb pref from prefs.js for rtm. junruh just tested ns6 4 years in the future, it runs fine. So, looks like we just have an ugly, unused pref for rtm.
Summary: Remove timebomb from branch builds → Remove timebomb pref from prefs.js
...so if having this pref in has no other consequence, why do we need to remove it for rtm?
Good question, Blake. I say we minus this.
Whiteboard: [rtm need info] → [rtm-]
yeah, what i see is user_pref("timebomb.first_launch_time", "971306662751430"); in my prefs.js. obsolete pref? should prolly be a part of the fix [hah] for bug 33115. adding relnote-devel, so that powerusers will know that they should pay no attention to this pref [afaik]... "pay no attention to that line in the file..." erm ;)
Keywords: relnoteRTM
Whiteboard: [rtm-] → [rtm need info] relnote-devel
d'oh. double-collision. removing rtm need info.
Whiteboard: [rtm need info] relnote-devel → relnote-devel
restoring don's rtm-. It's silly but it's his.
Whiteboard: relnote-devel → [rtm-] relnote-devel
Since Don has left, Vishy is taking his bugs in bulk, pending reassignment. thanks, Vishy
Assignee: don → vishy
nav triage team: It's not like we don't have other waste in the product. nsbeta1-
Keywords: nsbeta1-
Keywords: relnoteRTM, rtmhelpwanted
Whiteboard: [rtm-] relnote-devel → relnote-devel
This pref is used in xpfe/components/timebomb/nsTimeBomb.cpp, there is a whole nsTimeBomb class here. Is the class not used? Is this particular pref not used? Please clarify.
Assignee: vishy → mcafee
Marking nsbeta1- bugs as future to get off the radar.
Target Milestone: --- → Future
Blake: is this being dealt with as part of your major prefs cleanup? Gerv
Right. The actual bug here is that we are initialising an instance of nsITimeBomb, which is writing a pref: user_pref("timebomb.first_launch_time", "986046281420000"); to prefs.js. That's the one people are seeing, and that is confusing them. There are two solutions. a) get nsTimeBomb.cpp to only write this pref if the pref timebomb.enabled is set. b) Work out why and where we are creating an instance of nsITimeBomb in the first place, and stop it. b) reduces bloat (does it?). a) makes the life of someone who wants to use the timebomb easier. If anyone wants to do a patch for a), they just need to add a check that that pref is set to the if() statement at: http://lxr.mozilla.org/seamonkey/source/xpfe/components/timebomb/nsTimeBomb.cpp# 99 I would do it, but I'd have to reboot, work out the right syntax for getting prefs, do a build (2 hours), etc. etc. Blake? ;-) Gerv
Wow, we're still building the time bomb code? I say we remove this from the build altogether. It would shave a good millisecond from our startup time and a good kilobyte or so from our download time... every little bit counts, and this should be _easy_. :-)
Keywords: perf
Summary: Remove timebomb pref from prefs.js → Remove timebomb code from build
Yeah, OK hixie :-) It's just that this pref worries people - I have actually seen it on the newsgroups; people are afraid their Netscape 6 or Mozilla 0.8 are going to blow up at some point. Gerv
Unbelievably, I actually *wasn't* being sarcastic...
Keywords: mozilla1.0
Hardware: PC → All
Re b), nsTimeBomb is referenced from nsModule.cpp (lines 47 and 84) to initialize its static components[] array, so you could try disabling those lines.
so, what do we wanna do here? Just remove from build or do we wanna remove the actual files aswell? I'd vote for removing the files since the code is most likely bitrot anyway
timebomb code is beta-only, for rtm we need to: 1) Not write out any timebomb.* prefs out to prefs.js 2) Possibly yank the nsTimeBomb class, since we won't be using it.
Keywords: rtm
Summary: Remove timebomb code from build → Yank timebomb.* prefs, nsTimeBomb for rtm
vishy
Assignee: mcafee → vishy
--> me
Assignee: vishy → blake
Whiteboard: relnote-devel → relnote-devel [nav+perf]
Attached patch remove timebombSplinter Review
I can't tell from this bug what the consensus is. Are we removing nsTimeBomb altogether, or what? I'd say yes since it's causing us to do unnecessary work, and I don't think we turned on timebombs for at least the last PR, and possibly more. Otherwise we can just set timebombChecked to PR_TRUE if people think this is still being used.
I believe nsTimeBomb needs to go. Removing rtm from summary since that is adding confusion. granrose, please correct me here if needed.
Summary: Yank timebomb.* prefs, nsTimeBomb for rtm → Yank timebomb.* prefs, nsTimeBomb
mcafee, review?
this patch also adds downloadmgr, is that intended? r=mcafee for everything else. Did you get unix Makefile.in's also? Mac?
Fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 44563 has been marked as a duplicate of this bug. ***
My understanding is that we still need timebomb for beta releases. What is the plan for enabling it if now that it isn't there?
timebomb code, says granrose, is not used to do the timebomb mechanism and is an external mechanism.
vrfy fixed by checking lxr.
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: