Closed Bug 289297 Opened 20 years ago Closed 20 years ago

Use nsXFormsUtils::ReportError for existing error events

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allan, Assigned: allan)

References

()

Details

Attachments

(1 file, 1 obsolete file)

When we throw f.x. a xforms-link-exception like this
http://lxr.mozilla.org/seamonkey/source/extensions/xforms/nsXFormsModelElement.cpp#333
we should add information to the JS console using nsXFormsUtils::ReportError()
Attached patch Quick patch (obsolete) — Splinter Review
Here's a quick patch, including a fix that stops controls from doing anything
when they do not have a parent (which triggered the same error again and again
in the cloning code.

The error messages should be refined, etc., etc. but here's a start.
Attachment #179971 - Flags: review?(smaug)
Allan, you forgot the properties file :)
(In reply to comment #2)
> Allan, you forgot the properties file :)

Properties schmoperties! :)

Here's one with the properties and does the job a bit better.
Attachment #179971 - Attachment is obsolete: true
Attachment #180027 - Flags: review?(doronr)
Comment on attachment 179971 [details] [diff] [review]
Quick patch

This review is actually for
https://bugzilla.mozilla.org/attachment.cgi?id=180027
Attachment #179971 - Flags: review?(smaug) → review+
Comment on attachment 180027 [details] [diff] [review]
Patch v/properties

r=me
Attachment #180027 - Flags: review?(doronr) → review+
Checked in, a=mkaply
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: