Closed Bug 302069 Opened 19 years ago Closed 19 years ago

Custom events don't bubble

Categories

(Core Graveyard :: XForms, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stpride, Assigned: smaug)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050725 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050725 Firefox/1.0+

Unlike other processors, we don't bubble custom events by default.

Reproducible: Always
Attached file testcase
Should get a 'custom-event' message followed by a 'custom-event parent'
message.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee: aaronr → smaug
Status: ASSIGNED → NEW
(In reply to comment #1)
> Created an attachment (id=190438) [edit]
> testcase
> 
> Should get a 'custom-event' message followed by a 'custom-event parent'
> message.

Should get a 'custom-event' message followed by a 'custom-event parent'
and still followed by 'custom-event'.
This is because the <xf:action ev:event="custom-event"> is inside
<xf:action id="gohere" ev:event="custom-event" ev:defaultAction="cancel">

Attached patch fix. Splinter Review
This checks "false" and "0" values.
Attachment #190442 - Flags: review?(aaronr)
From the spec:
"bubbles - 
Optional boolean indicating if this event bubbles—as defined in [DOM2 Events]. The
default value depends on the definition of a custom event. For predefined events, 
this attribute has no effect."

But in the Schema the default value is marked as "true".

And same thing for "cancelable"
Status: NEW → ASSIGNED
Attachment #190442 - Flags: review+
Attachment #190442 - Flags: review?(aaronr) → review+
checked in
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
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: