Closed Bug 293977 Opened 19 years ago Closed 19 years ago

When element with '-moz-opacity' style is placed inside of button then command event is not fired

Categories

(Core :: XUL, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: jag+mozilla)

References

Details

(Keywords: testcase)

Attachments

(1 file)

507 bytes, application/vnd.mozilla.xul+xml
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; ru-RU; rv:1.7.5) Gecko/20041108 Firefox/1.0 (ax)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050217

<button oncommand="alert(3)">
	<description value="hello" style="border: solid thin; -moz-opacity: 0.5;"/>
</button>

If you'll click on description then command event will not be fired.

Reproducible: Always
Attached file testcase
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
OS: Windows 2000 → All
roc, any idea what's up here?  Sounds like view/event trouble....
Blocks: 293735
If it helps, from what I know of button frames, they use nsFrame's version of
GetFrameForPoint so that they receive all events allowing them to process left
clicks and the Space (and where appropriate the Enter) key. Additionally this
allows themes to use button:hover and button:active rules in old builds.

As XUL is currently implemented we cannot reimplement the event handling in XUL
as there is no way to pass an event to nsXULElement::DoCommand.
Depends on: 296036
Clicking repeatedly on the text causes Firefox to crash. Here's the talkback
incident:

http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=8783146
Doh. Sorry...forgot to include my Build Identifier. I'm using today's trunk
nightly. 

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050827
Firefox/1.6a1 ID:2005082706
David, that's bug 306049.
Ah. My apologies. I should've realized that would already have been filed...
This is WFM in my debug build that has the "frame display lists" patch in it (bug 317375)
Depends on: 317375
Testcase doesn't work with
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060124 Firefox/1.6a1 ID:2006012405
(Clicking button results in no dialog with '3' in)

Testcase does work with
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060126 Firefox/1.6a1 ID:2006012613
(Clicking button results in dialog with '3' in)

--> RESOLVED FIXED (by bug 317375)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: