Closed
Bug 57306
Opened 25 years ago
Closed 24 years ago
Yank timebomb.* prefs, nsTimeBomb
Categories
(SeaMonkey :: UI Design, defect, P1)
SeaMonkey
UI Design
Tracking
(Not tracked)
VERIFIED
FIXED
Future
People
(Reporter: junruh, Assigned: bugzilla)
References
Details
(Keywords: helpwanted, perf, Whiteboard: relnote-devel [nav+perf])
Attachments
(1 file)
13.08 KB,
patch
|
Details | Diff | Splinter Review |
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.
Comment 2•25 years ago
|
||
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.
Comment 3•25 years ago
|
||
over to buildconfig
Assignee: asa → cls
Component: Browser-General → Build Config
QA Contact: doronr → granrose
Comment 4•25 years ago
|
||
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
Comment 5•25 years ago
|
||
magic 8-ball says XPApps. Probably mcafee...
Assignee: waterson → don
Component: XP Miscellany → XP Apps
QA Contact: brendan → sairuh
Comment 6•25 years ago
|
||
Not sure who owns this, adding ssu, dveditiz.
Do we still even read the timebomb pref?
Priority: P3 → P1
Whiteboard: [rtm need info]
Comment 9•25 years ago
|
||
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
Assignee | ||
Comment 10•25 years ago
|
||
...so if having this pref in has no other consequence, why do we need to remove
it for rtm?
Comment 11•25 years ago
|
||
Good question, Blake. I say we minus this.
Whiteboard: [rtm need info] → [rtm-]
Comment 12•25 years ago
|
||
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
Comment 13•25 years ago
|
||
d'oh. double-collision. removing rtm need info.
Whiteboard: [rtm need info] relnote-devel → relnote-devel
Comment 14•25 years ago
|
||
restoring don's rtm-. It's silly but it's his.
Whiteboard: relnote-devel → [rtm-] relnote-devel
Comment 15•25 years ago
|
||
Since Don has left, Vishy is taking his bugs in bulk, pending reassignment.
thanks,
Vishy
Assignee: don → vishy
Comment 16•25 years ago
|
||
nav triage team:
It's not like we don't have other waste in the product. nsbeta1-
Keywords: nsbeta1-
Updated•25 years ago
|
Whiteboard: [rtm-] relnote-devel → relnote-devel
Comment 17•25 years ago
|
||
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
Comment 18•24 years ago
|
||
Marking nsbeta1- bugs as future to get off the radar.
Target Milestone: --- → Future
Comment 19•24 years ago
|
||
Blake: is this being dealt with as part of your major prefs cleanup?
Gerv
Comment 20•24 years ago
|
||
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
Comment 21•24 years ago
|
||
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
Comment 22•24 years ago
|
||
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
Comment 23•24 years ago
|
||
Unbelievably, I actually *wasn't* being sarcastic...
Updated•24 years ago
|
Keywords: mozilla1.0
Hardware: PC → All
Comment 24•24 years ago
|
||
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
Comment 26•24 years ago
|
||
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
Assignee | ||
Comment 28•24 years ago
|
||
--> me
Assignee: vishy → blake
Whiteboard: relnote-devel → relnote-devel [nav+perf]
Assignee | ||
Comment 29•24 years ago
|
||
Assignee | ||
Comment 30•24 years ago
|
||
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.
Comment 31•24 years ago
|
||
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
Assignee | ||
Comment 32•24 years ago
|
||
mcafee, review?
Comment 33•24 years ago
|
||
this patch also adds downloadmgr, is that intended?
r=mcafee for everything else. Did you get unix Makefile.in's also? Mac?
Assignee | ||
Comment 34•24 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 35•24 years ago
|
||
*** Bug 44563 has been marked as a duplicate of this bug. ***
Comment 36•24 years ago
|
||
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?
Comment 37•24 years ago
|
||
timebomb code, says granrose, is not used to do the timebomb mechanism
and is an external mechanism.
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•