Closed Bug 267480 Opened 20 years ago Closed 20 years ago

XForms should use nsISchemaLoader

Categories

(Core Graveyard :: XForms, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: doronr, Assigned: doronr)

Details

Attachments

(1 file)

 
Attached patch attemptSplinter Review
Attachment #164405 - Flags: superreview?(darin)
Comment on attachment 164405 [details] [diff] [review]
attempt

>Index: extensions/xforms/nsXFormsModelElement.cpp

> nsXFormsModelElement::nsXFormsModelElement()
...
>+  mSchemas = do_GetService(NS_SCHEMALOADER_CONTRACTID);

It might be better to defer initialization of mSchemas 
until OnCreated is called.  One reason: even if it
doesn't happen now, this might result in re-entering
GetService while we are inside GetService, which is not
supported.  I'm not suggesting that this could happen
today, but maybe in the future if XTF changes slightly,
it could happen.  So, it might be better to defer until
OnCreated.  Anyways, there isn't any reason to do this
in the constructor, right?


>@@ -137,6 +141,7 @@

You might want to add "-p" on the command line when you
run cvs diff, so that it generates diffs that show the
functions being modified.  It makes reviewing much
easier :)


Otherwise, this patch looks fine to me.

r+sr=darin
Attachment #164405 - Flags: superreview?(darin)
Attachment #164405 - Flags: superreview+
Attachment #164405 - Flags: review+
checked in,
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: