Closed
Bug 280264
Opened 20 years ago
Closed 20 years ago
XForms submission doesn't remove non-relevant instance-data.
Categories
(Core Graveyard :: XForms, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: doronr, Assigned: doronr)
Details
Attachments
(1 file, 3 obsolete files)
|
9.28 KB,
patch
|
aaronr
:
review+
|
Details | Diff | Splinter Review |
Also, bug 279449 adds another loop walking the data, which should be combined
with the submission serialization code probably at one point.
| Assignee | ||
Comment 2•20 years ago
|
||
| Assignee | ||
Updated•20 years ago
|
Attachment #174313 -
Flags: review?(aaronr)
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Comment on attachment 174313 [details] [diff] [review]
first try
+nsXFormsModelElement::IsInstanceDataValid(nsIDOMNode *aInstanceDataNode,
PRBool *aResult)
You should sign a value into aResult before you do NS_ENSURE_STATE
nsXFormsModelElement::IsInstanceDataRelevant(nsIDOMNode *aInstanceDataNode,
PRBool *aResult)
same here
nsXFormsModelElement::IsInstanceDataRequired(nsIDOMNode *aInstanceDataNode,
PRBool *aResult)
same here
I'd also suggest, like we talked about, one function that can handle getting
the nodestate just the once and all 3 tests and return the proper value. To get
rid of all of the extaneous function calling.
Attachment #174313 -
Flags: review?(aaronr) → review-
| Assignee | ||
Comment 4•20 years ago
|
||
Attachment #174313 -
Attachment is obsolete: true
Attachment #174393 -
Flags: review?(aaronr)
| Assignee | ||
Updated•20 years ago
|
Attachment #174393 -
Attachment is obsolete: true
Attachment #174393 -
Flags: review?(aaronr)
| Assignee | ||
Comment 5•20 years ago
|
||
Attachment #174410 -
Flags: review?(aaronr)
| Assignee | ||
Updated•20 years ago
|
Attachment #174410 -
Attachment is obsolete: true
Attachment #174410 -
Flags: review?(aaronr)
| Assignee | ||
Comment 6•20 years ago
|
||
Attachment #174414 -
Flags: review?(aaronr)
Comment on attachment 174414 [details] [diff] [review]
hopefully aaron has no more comments.
for posterity sake, my comments were:
In nsXFormsModelElement::HandleInstanceDataNode
- make return values a const and give them similar names that make sense.
- assign default return value.
- Change test syntax so that you don't re-assign same return value that is
already contained in the return parameter.
- probably don't need the NS_ENSURE_ARG_POINTER tests because this function
should only ever be called from one place where the passed in parameter pointer
can be assured.
Looks fine now
Attachment #174414 -
Flags: review?(aaronr) → review+
Comment 8•20 years ago
|
||
Comment on attachment 174414 [details] [diff] [review]
hopefully aaron has no more comments.
Didn't test yet, but looks good. r=me
| Assignee | ||
Comment 9•20 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•