Closed
Bug 81415
Opened 25 years ago
Closed 25 years ago
History doesn't remember settings
Categories
(SeaMonkey :: Preferences, defect)
SeaMonkey
Preferences
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: Junk_HbJ, Assigned: alecf)
References
Details
(Keywords: dataloss)
Attachments
(3 files)
|
6.17 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.48 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.61 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9+) Gecko/20010516
BuildID: 2001051620
If you select "Navigator - History" under Preferences and enter new values for
"Pages in history expire after ... days" or "Session history size", these
changes are not saved if you click "OK".
Reproducible: Always
Steps to Reproduce:
1. Open preferences
2. Select "Navigator - History"
3. Enter new values for expiration time of pages or the size of local history
4. Click OK
5. Check if values were saved.
Actual Results: Changes not saved
Expected Results: Changes saved
There's no error message on the Win32-console (got via "-console" startup
parameter) or in the Javascript console.
Comment 1•25 years ago
|
||
claudius, could you vrfy whether this is a history or prefs problem? thx!
Assignee: mcafee → radha
Component: Preferences → History: Session
QA Contact: sairuh → claudius
Comment 2•25 years ago
|
||
confirming, w2k current build.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•25 years ago
|
||
this is a pref problem.
Assignee: radha → vishy
Component: History: Session → Preferences
Comment 6•25 years ago
|
||
I see the same thing on Linux, build id 2001051815 running on RedHat 7.1:
If I change the history preferences, the next time I open the preferences
window, it shows the default prefs again. I do have
user_pref("browser.link_expiration", 720);
line in my prefs.js, but links still expire in 9 days.
This causes a loss of history data => dataloss keyword.
Keywords: dataloss
OS: Windows NT → All
Comment 7•25 years ago
|
||
session history int field also doesn't remember things,
possible hidden xul error? linux -> all
Note, setting values in prefs.js works fine.
Keywords: nsbeta1
Hardware: PC → All
Comment 8•25 years ago
|
||
> Note, setting values in prefs.js works fine.
>
I am pretty sure it's not the case? I have
user_pref("browser.link_expiration", 720);
in my prefs.js and still - the way I noticed this bug is when I realized that
all my old history have suddenly expired!
URL: http://n/a
Comment 9•25 years ago
|
||
this bug is about getting the right pref to the history library,
e.g. the problem with the pref UI not remembering.
If the right values are going to the history library
and it's _still_ not working right, that's another bug
and should be assigned to the history component.
Comment 10•25 years ago
|
||
nav triage team:
marking nsbeta1+, p2, and mozilla0.9.2
| Assignee | ||
Comment 11•25 years ago
|
||
argh, part of the problem is that we're saving the session history prefs in a
really wacky way... I have a fix for the session history issues in my tree (I
noticed this the other day), attaching a patch
| Assignee | ||
Comment 12•25 years ago
|
||
ok the other problem is that we're defining both _elementIDs and GetFields(),
which is just nutty. We should only define one, as far as I know, and
GetFields() is just wrong.
| Assignee | ||
Comment 13•25 years ago
|
||
| Assignee | ||
Comment 14•25 years ago
|
||
ok, I _think_ this fixes it...this is untested though (still waiting on my build)
Comment 16•25 years ago
|
||
*** Bug 82730 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 17•25 years ago
|
||
*** Bug 83473 has been marked as a duplicate of this bug. ***
Comment 18•25 years ago
|
||
nav triage: alec, this is not strictly an rtm stopper hence we're moving it out.
It would still be a nice fix to have.
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Comment 19•25 years ago
|
||
*** Bug 84576 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 20•25 years ago
|
||
*** Bug 85245 has been marked as a duplicate of this bug. ***
Comment 21•25 years ago
|
||
*** Bug 85760 has been marked as a duplicate of this bug. ***
Comment 22•25 years ago
|
||
Alec: lots of people complained about this. Can you test it out (and I'll sr)?
| Assignee | ||
Comment 23•25 years ago
|
||
ok seems to fix it but my biggest fear is that this will cause us to leak
session history.. need to talk to radha about how to solve that..
Comment 24•25 years ago
|
||
Okay. We can also just fix this on the FE side if necessary (I looked into this
earlier before finding this patch and found what I think is the problem).
Comment 25•25 years ago
|
||
*** Bug 86465 has been marked as a duplicate of this bug. ***
Comment 26•25 years ago
|
||
Comment 27•25 years ago
|
||
Okay, this odd looking patch fixes it from the FE side. I say we get this in
tonight before tree closure and then worry about the other patch afterwards.
The problem was that GetFields() has a special purpose in nsWidgetStateManager;
it's used when the panels are switched and when the OK button is pressed to save
state. That's not what we want in this case. The patch renames it. If the
panel is shown, we need to get the current value in the textbox.
That stuff in the if (maxSize < 0) ensures that the UI properly reflects 0
instead of what it previously did (just bailing early without updating the
pref). If the panel is currently shown, nsWidgetStateManager/nsPrefWindow go
through the elementIDs in the panel to save each pref, so we need to update the
value in the textbox itself. If it's not shown, it uses the pageData that it
collected upon switching panels, so we have to update the value in the array.
Comment 28•25 years ago
|
||
Oops, realized while typing that up that this patch has a slight problem: now it
updates the UI to say 0, but not the backend.
Easy enough to fix, but now I'm wondering if we want to just keep the old value
if they enter an illegal one. Which is more correct, assuming 0 if they enter
negative/non-numeric, or keeping the old one?
All our troubles disappear once bug 66163 is fixed.
Comment 29•25 years ago
|
||
| Assignee | ||
Comment 30•25 years ago
|
||
sr=alecf
one 'o these days I'm going to fix this the right way :)
Comment 31•25 years ago
|
||
Crap. I forgot to get this in for .9.2. Reassigning to me to try to get this
into the branch, then I'll give it back to you alec.
This actually is the right fix (until bug 66163 is fixed) for what we're trying
to do -- access and validate a value in one pref panel from another panel.
Assignee: alecf → blake
Comment 32•25 years ago
|
||
Hrm, I think I remember something from when I was testing this earlier. I seem
to recall that the value entered was always one off from the value used by
session history, e.g. enter 1 and 0 are saved, enter 2 and 1 are saved.
Reminder to myself to investigate where such an off-by-one error is taking
place...
Status: NEW → ASSIGNED
Comment 33•25 years ago
|
||
Er, to clarify (and spam everyone) again: we're saving the pref correctly; the
off-by-one error is somewhere in the backend.
Comment 34•25 years ago
|
||
r=kerz
Comment 35•25 years ago
|
||
a= asa@mozilla.org for checkin to the frozen 0.9.2.
(on behalf of drivers)
Keywords: nsenterprise
Comment 36•25 years ago
|
||
--> alec for backend fix
Assignee: blake → alecf
Status: ASSIGNED → NEW
Priority: P2 → --
Target Milestone: mozilla0.9.3 → ---
Comment 37•25 years ago
|
||
Was this ever checked into the trunk?
Updated•25 years ago
|
Keywords: nsenterprise → nsenterprise+
Comment 38•25 years ago
|
||
Yes.
Comment 39•25 years ago
|
||
based on comments, and my testing on Win2k, this is fixed. claudius can you verify?
marking RESOLVED FIXED
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 40•25 years ago
|
||
VERIFIED Fixed with 2001091003 builds.
side note. Blake, I do not think it is correct to arbitrarily reset invalid
entries to '0'. If i'm trying to extend my history and I accidentally type a
letter instead of a number I'm going to be pretty ticked when the history
expires the next day (or immediately?).
Also, the textfield does not update (in this case reset to '0') when you have an
invalid entry and panels are switched.
I guess that'll be two new bugs...
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•