Closed Bug 297137 Opened 20 years ago Closed 20 years ago

xforms-ready fires too early

Categories

(Core Graveyard :: XForms, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronr, Assigned: aaronr)

Details

Attachments

(2 files, 1 obsolete file)

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.
Attached patch first attempt (obsolete) — Splinter Review
move xforms-ready post until after we process the deferred binding.
Attachment #185744 - Flags: review?(smaug)
(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 on attachment 185744 [details] [diff] [review]
first attempt

but looking good.
Attachment #185744 - Flags: review?(smaug) → review+
Attached patch updated to trunkSplinter Review
same patch, updated to trunk
Attachment #185744 - Attachment is obsolete: true
Attachment #185760 - Flags: review?(allan)
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.
checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
(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.
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: