Closed Bug 105462 Opened 24 years ago Closed 24 years ago

Get rid of calls to nsIChromeRegistry

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: adamlock, Assigned: adamlock)

Details

Attachments

(1 file)

NS_InitEmbedding calls nsIChromeRegistry::CheckForNewChrome() which is an expensive operation. It shouldn't be necessary to call it as the chrome registry will set up the chrome if it isn't already. http://lxr.mozilla.org/mozilla/source/rdf/chrome/src/nsChromeRegistry.cpp#362 Remove the call to this method.
QA Contact: mdunn → depstein
That was exactly what I did and found that my embedding app still did chrome. r=ccarlen
Do you want this in an #ifdef DEBUG maybe?
Why would you ever want this in a debug build?
The entire chrome registry should be a noop for embedding.
Ccing hyatt. The patch looks good to me. Hyatt is the lord though.
Hyatt, if it's good can you give me the sr?
r/sr=hyatt
Fix is in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified in 10/19 mozilla nightly build and on lxr. Lines were removed from nsEmbedAPI.cpp.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: