Closed Bug 284169 Opened 20 years ago Closed 20 years ago

get rid of WARNING's in console generated by GetTypeForControl

Categories

(Core Graveyard :: XForms, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronr, Assigned: aaronr)

Details

Attachments

(1 file)

GetTypeForControl should gracefully handle conditions where control isn't bound
to  instance data and not issue warnings in debug mode.
Attached patch first attemptSplinter Review
removed from GetTypeForControl the NS_ENSURE_TRUE(boundNode, NS_ERROR_FAILURE)
and instead simply return NS_ERROR_FAILURE if no boundNode.  No need for the
console output since it is perfectly valid for a control not to have bound
instance data.
Attachment #175867 - Flags: review?(allan)
Comment on attachment 175867 [details] [diff] [review]
first attempt

r=me
Attachment #175867 - Flags: review?(allan) → 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

Creator:
Created:
Updated:
Size: