I apparently forgot a few things in bug 271720. These still check for attributes: - nsXFormsControlStubBase::GetReadOnlyState() - nsXFormsControlStubBase::GetRelevantState() - nsXFormsDelegateStub::GetState() (and its friends) They need to get to the nodestate from the model, which is not possible right now. One approach is to expose the nsXFormsMDGEngine::GetNodeState(), which I would go for now. Another approach is to do the more versatile solution which is also wanted in bug 313113, but let's wait with that.
Created attachment 200362 [details] [diff] [review] Patch Ok, this is no beauty, but if we want it in for 1.5rc1, this is what I can supply right now. What should be tested is that delegate.isReadonly(), delegate.isEnabled(), etc. work properly. This should be done properly by the major overhaul of handling the states as I write in bug 300591 comment 3.
Checked in to trunk
Checked in to 1.8 branch