Closed
Bug 297137
Opened 20 years ago
Closed 20 years ago
xforms-ready fires too early
Categories
(Core Graveyard :: XForms, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aaronr, Assigned: aaronr)
Details
Attachments
(2 files, 1 obsolete file)
|
1.01 KB,
application/xhtml+xml
|
Details | |
|
1.79 KB,
patch
|
allan
:
review+
|
Details | Diff | Splinter Review |
xforms-ready fires before the deferred binds are processed. So actions keying off of xforms-ready will be running before all of the attributes are set on the controls.
when testcase loads, focus should be in the input field. I set up a xf:setfocus to be triggered when xforms-ready is fired. Right now this doesn't work because the attributes aren't set on the controls until after xforms-ready is fired. This causes TryFocus will fail since the 'enabled' attr isn't set until ProcessDeferredBind is called.
move xforms-ready post until after we process the deferred binding.
Attachment #185744 -
Flags: review?(smaug)
Comment 3•20 years ago
|
||
(In reply to comment #2) > Created an attachment (id=185744) [edit] > first attempt > > move xforms-ready post until after we process the deferred binding. the patch is not up-to-date with cvs.
Comment 4•20 years ago
|
||
Comment on attachment 185744 [details] [diff] [review] first attempt but looking good.
Attachment #185744 -
Flags: review?(smaug) → review+
same patch, updated to trunk
Attachment #185744 -
Attachment is obsolete: true
Attachment #185760 -
Flags: review?(allan)
Comment 6•20 years ago
|
||
Comment on attachment 185760 [details] [diff] [review] updated to trunk r=me Does this also fix my problem in: https://bugzilla.mozilla.org/show_bug.cgi?id=289434#c31
Attachment #185760 -
Flags: review?(allan) → review+
(In reply to comment #6) > (From update of attachment 185760 [details] [diff] [review] [edit]) > r=me > > Does this also fix my problem in: > https://bugzilla.mozilla.org/show_bug.cgi?id=289434#c31 > Yep, fixes it on my machine when I apply the 289434 patch.
Comment 8•20 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 9•20 years ago
|
||
(In reply to comment #7) > (In reply to comment #6) > > (From update of attachment 185760 [details] [diff] [review] [edit] [edit]) > > r=me > > > > Does this also fix my problem in: > > https://bugzilla.mozilla.org/show_bug.cgi?id=289434#c31 > > > > Yep, fixes it on my machine when I apply the 289434 patch. Also here. With the widget patch you can now listen for "xforms-ready", retrieve the ".value" and check it against the correct value for testing. Not bad.
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•