Closed
Bug 166455
Opened 22 years ago
Closed 21 years ago
localstore.rdf: after manual deletion, it is recreated, but out of synchronization with prefs.js
Categories
(SeaMonkey :: UI Design, defect)
SeaMonkey
UI Design
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.7final
People
(Reporter: sgautherie, Assigned: sgautherie)
References
Details
(Keywords: fixed1.7)
Attachments
(1 file, 2 obsolete files)
2.15 KB,
application/octet-stream
|
Details |
(While making some tests for another bug, I discover this "minor" bug:)
Before, I used Edit -> Preferences to remove the Search and Print buttons from
the Toolbar; which worked fine.
Now, Mozilla is stopped, and I manually delete <localstore.rdf>.
When Mozilla is started again, it recreates a new <localstore.rdf>;
but now the two buttons are back in the Toolbar :-(
At this stage, see attachment in next Additional Comment for my <prefs.js> and
brand new <localstore.rdf>.
The two buttons will then remain there even after restart;
I need to go to Preferences twice to get rid of then:
first, to re-enable the prefs settings;
second, to disable them again.
(This is the workaround which make this bug minor.)
Theses two buttons may be an example only: other "settings" might be out of
sync. too !?
Assignee | ||
Comment 1•22 years ago
|
||
See Bug description
Assignee | ||
Comment 2•22 years ago
|
||
With "Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.2a) Gecko/20020910"
Same bug.
Comment 3•22 years ago
|
||
This might be the cause of bug 122520.
Assignee | ||
Comment 4•22 years ago
|
||
"Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.2b) Gecko/20021016"
Same bug.
***** Comment on #3
This bug is exactly what the testcase in
<http://bugzilla.mozilla.org/show_bug.cgi?id=122520#c3> describes !
Bug 122520 and others also describe file corruption or permanent failure, etc,
which is not the point of this bug.
Then I would ask to promote this bug from 'Unconfirmed' to 'New' (at least).
Thanks for checking: I did not find thoses bugs before.
bug 123929 is the profile corruption tracker.
Assignee | ||
Comment 6•22 years ago
|
||
***** Comment on AC#5
As I said in AC#4, I don't think that this bug is actually about "corruption";
Nevertheless, if responsible people for bug 123929 think that this bug should
"block" theirs, I wouldn't mind.
On the opposite, I think bug 122520 (and related) "could" be set as blocking bug
123929.
Assignee | ||
Comment 7•22 years ago
|
||
"Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.2) Gecko/20021126"
Bug still there.
Assignee | ||
Comment 8•22 years ago
|
||
***** 2nd reply to comment 5
Since there is still not much activity on this bug, I eventually tried to get
some from bug 123929 as suggested...
there are other related bugs. For instance bug 86164, where it becomes clear
that differences in toolbar button settings in prefs.js and localstore.rdf are
overruled by the rdf file.
Updated•22 years ago
|
Blocks: profile-corrupt
Comment 10•21 years ago
|
||
not a bug in our RDf implementation. ->profile. Why on earth are we storing the
same information in more than one place?
Assignee: waterson → prefs
Status: UNCONFIRMED → NEW
Component: RDF → Preferences: Backend
Ever confirmed: true
Comment 11•21 years ago
|
||
*** Bug 147657 has been marked as a duplicate of this bug. ***
Comment 12•21 years ago
|
||
My checkin for bug 230219 has affected this bug because it now effectively
ignores localstore.rdf and in fact the "code" that saves the settings in
localstore.rdf could probably be removed.
Assignee | ||
Comment 13•21 years ago
|
||
(In reply to comment #12)
> in fact the "code" that saves the settings in
> localstore.rdf could probably be removed.
I might give it a try:
where is that saving "code" located ?
Comment 14•21 years ago
|
||
Well a "working" localstore.rdf contains two types of sections:
A per-window section, named after the xul that loads in that window.
Each entry in that section includes the id of an element in that xul.
A per-element section, named after the xul#id as above.
Each entry in that section names an attribute of the element.
There are two ways to cause an attribute to be saved:
document.persist("home-bm-separator", "hidden"); in script
<toolbarseparator id="home-bm-separator" persist="hidden"/> in the xul
In fact lines 93-105 of navigator.js could probably be cleaned up too.
Assignee | ||
Updated•21 years ago
|
Component: Preferences: Backend → XP Apps: GUI Features
Depends on: 230219
OS: Windows 95 → All
Hardware: PC → All
Assignee | ||
Comment 15•21 years ago
|
||
Removes the 5 button |persist="hidden"|, obsoleted by patch for bug 230219.
Assignee: prefs → gautheri
Status: NEW → ASSIGNED
Assignee | ||
Updated•21 years ago
|
Attachment #145834 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 16•21 years ago
|
||
So you didn't spot my subtle clue in comment 14 about the 6th xul fix ;-)
Assignee | ||
Updated•21 years ago
|
Attachment #145834 -
Attachment is obsolete: true
Attachment #145834 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 17•21 years ago
|
||
(In reply to comment #16)
> So you didn't spot my subtle clue in comment 14 about the 6th xul fix ;-)
Not quite :-( (but I should have)
At first, I though you wanted to remove lines 93-105;
but the "button.hidden" part is required for the pref to have any effect:
that's where I got +/- puzzled and (see bug 230219_Bv1 patch for what I did).
Then I kind of "ignored" the |"home-bm-separator"| part :-(
Assignee | ||
Comment 18•21 years ago
|
||
Av1, with comment 16 suggestion(s).
Assignee | ||
Updated•21 years ago
|
Attachment #145839 -
Flags: review?(neil.parkwaycc.co.uk)
Updated•21 years ago
|
Attachment #145839 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Assignee | ||
Updated•21 years ago
|
Attachment #145839 -
Flags: superreview?(mscott)
Comment 19•21 years ago
|
||
Comment on attachment 145839 [details] [diff] [review]
(Av1b) <navigator.xul>
[Checked in: Comment 25]
I don't think Neil nor myself are module owners for xpfe/browser you might need
to get module owner approval here.
Attachment #145839 -
Flags: superreview?(mscott) → superreview+
Assignee | ||
Comment 20•21 years ago
|
||
Comment on attachment 145839 [details] [diff] [review]
(Av1b) <navigator.xul>
[Checked in: Comment 25]
'approval1.7=?':
Trivial U.I. cleanup, no risk.
Attachment #145839 -
Flags: approval1.7?
Assignee | ||
Comment 21•21 years ago
|
||
(In reply to comment #19)
> (From update of attachment 145839 [details] [diff] [review])
> I don't think Neil nor myself are module owners for xpfe/browser you might need
> to get module owner approval here.
Right: I should have asked alecf for sr :-<
(neil is a (review) peer.)
jag:
Do you approve this patch ?
Assignee | ||
Comment 22•21 years ago
|
||
'blocking1.7=?':
This patch has no risk, and is a direct follow-up of bug 230219, which was
'fixed1.7': it makes sense too have both patches together.
The existing code is now useless: updating localstore.rdf is now a waste of
time/space/etc.
(Well, in fact, I didn't test how the existing code behaves exactly with the new
second check-in of bug 230219; but anyway...)
Flags: blocking1.7?
Assignee | ||
Updated•21 years ago
|
Whiteboard: [approval: waiting for comment 21 answer...]
Comment 23•21 years ago
|
||
not going to block the release for this.
Flags: blocking1.7? → blocking1.7-
Comment 24•21 years ago
|
||
Comment on attachment 145839 [details] [diff] [review]
(Av1b) <navigator.xul>
[Checked in: Comment 25]
a=asa (on behalf of drivers) for checkin to 1.7
Attachment #145839 -
Flags: approval1.7? → approval1.7+
Comment 25•21 years ago
|
||
Fix checked in to trunk and 1.7 branch.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Keywords: fixed1.7
Resolution: --- → FIXED
Whiteboard: [approval: waiting for comment 21 answer...]
Assignee | ||
Updated•21 years ago
|
Attachment #145839 -
Attachment description: (Av1b) <navigator.xul> → (Av1b) <navigator.xul>
[Checked in: Comment 25]
Attachment #145839 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Target Milestone: --- → mozilla1.7final
Comment 26•21 years ago
|
||
so the changes in this bug are purely cleanup of dead code from fixing bug 230219?
QA Contact: nobody → benc
Assignee | ||
Comment 27•21 years ago
|
||
(In reply to comment #26)
> so the changes in this bug are purely cleanup of dead code from fixing bug 230219?
Yes, it turned out to be almost what you wrote:
except that this (RDF update) code was not 100% dead, but rather useless/unwanted.
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•