Closed Bug 273678 Opened 20 years ago Closed 20 years ago

nsChromeRegistry::ProcessNewChromeBuffer never flushes the profile chrome.rdf

Categories

(Toolkit :: Startup and Profile System, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: darin.moz, Assigned: darin.moz)

Details

Attachments

(1 file)

nsChromeRegistry::ProcessNewChromeBuffer never flushes the profile chrome.rdf I noticed while playing around with xulrunner that chrome.rdf was not getting created in the profile directory. I believe this may somehow be a regression from the way things worked prior to the aviary branch landing or perhaps prior to some other trunk changes. At any rate, while investigating that problem I noticed that nsChromeRegistry::ProcessNewChromeBuffer flushes the chrome.rdf that lives in the install directory irregardless of whether or not changes were made to the install- relative data source. It seems to me that we should flush whichever data source is modified (or both). Patch coming up...
Attached patch v1 patchSplinter Review
this patch does the trick. i think previously that the profile-relative chrome.rdf was getting written out at shutdown time. now, on the trunk i only see a warning coming from the XML RDF datasource about not being able to flush after xpcom-shutdown. it seems some shutdown sequencing has changed. at any rate, this patch still seems like the right thing to do.
Attachment #168191 - Flags: first-review?(bsmedberg)
Attachment #168191 - Flags: first-review?(bsmedberg) → first-review+
fixed-on-trunk
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Dead code, no need for retroactive testcase
Flags: in-testsuite-
Component: XRE Startup → Startup and Profile System
QA Contact: nobody → startup
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: