Closed Bug 331328 Opened 19 years ago Closed 19 years ago

Schema-changes is only reflected on restart

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allan, Assigned: doronr)

References

()

Details

(Keywords: fixed1.8.0.4, fixed1.8.1)

Attachments

(2 files)

Hmmm, something is fishy. If I load a form with an inline schema, change something in the schema type, and then reload the form ... nothing happens. I have to restart Firefox for the changes to be reflected.
Attached file Testcase
1. Save this locally 2. Load the form, observe that the field is invalid 3. Change the schema type from "{1,5}" to "{1,6}" 4. Reload the page Observed behaviour: The field is still invalid Correct behaviour: The field should be valid. If you restart the browser and load the form (after the change), it works as it should.
Do we have a global schemavalidator that we just keep pouring schemas into?
Attached patch le patchSplinter Review
create unique schemaloader/validator instances rather than reusing existing ones.
Assignee: aaronr → doronr
Status: NEW → ASSIGNED
Attachment #215903 - Flags: review?(allan)
Comment on attachment 215903 [details] [diff] [review] le patch myu bien!
Attachment #215903 - Flags: review?(allan) → review+
Attachment #215903 - Flags: review?(aaronr)
Attachment #215903 - Flags: review?(aaronr) → review+
checked into trunk
Whiteboard: xf-to-branch
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 332853
Whiteboard: xf-to-branch
Blocks: 339309
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: