Closed
Bug 251197
Opened 21 years ago
Closed 11 years ago
Anonymous scrollbar in document exposed to dom when attaching mouse event listener.
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: martijn.martijn, Unassigned)
References
Details
Attachments
(4 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
text/html
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a2) Gecko/20040711 Firefox/0.9.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a2) Gecko/20040711 Firefox/0.9.0+
See upcoming testcase.
The scrollbar should not become green when you mouseover it.
Also you should not see the nodename of the scrollbar in the statusbar.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Reporter | ||
Comment 1•21 years ago
|
||
Updated•21 years ago
|
Whiteboard: DUPEME
Comment 2•21 years ago
|
||
I thought that anonymous content was supposed to be protected by caps...
Reporter | ||
Comment 3•21 years ago
|
||
It seems like this is a regression:
It does not happen in:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/2004-01-29
Firebird/0.8.0+
It does happen in:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/2004-01-30
Firebird/0.8.0+
Maybe this is a regression from fixing bug 196755?
Comment 4•21 years ago
|
||
Scrollbars are supposed to be native anonymous, so the events should get
retargetted at around line 2698 of nsXULElement.cpp, no?
Comment 5•20 years ago
|
||
Updated•20 years ago
|
Attachment #155421 -
Flags: superreview?(roc)
Attachment #155421 -
Flags: review?(roc)
Comment on attachment 155421 [details] [diff] [review]
Workaround
Why is this a workaround?
I don't really know about this stuff. Maybe bryner?
Attachment #155421 -
Flags: superreview?(roc)
Attachment #155421 -
Flags: review?(roc)
Updated•20 years ago
|
Attachment #155421 -
Flags: superreview?(bzbarsky)
Attachment #155421 -
Flags: review?(bzbarsky)
Comment 7•20 years ago
|
||
So the only place <scrollbar> elements are used is as native anonymous content?
Comment 8•20 years ago
|
||
This change would only affect listeners to events captured or bubbled up from
scrollbars. However my search of the tree turned up no such listeners.
Comment 9•20 years ago
|
||
Comment on attachment 155421 [details] [diff] [review]
Workaround
OK, r+sr=bzbarsky if you add a nice XXX comment explaining why you're doing
this....
Attachment #155421 -
Flags: superreview?(bzbarsky)
Attachment #155421 -
Flags: superreview+
Attachment #155421 -
Flags: review?(bzbarsky)
Attachment #155421 -
Flags: review+
Comment 10•20 years ago
|
||
Workaround checked in. Bug 165110 left open for the correct fix.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 11•20 years ago
|
||
We have a conflict of interest here.
When using the Modern theme on the mac, the anonymous scrollbars are protected
by caps from showing the OS look and feel, and instead each scrollbar logs a JS
exception. Futhermode, explicit scrollbars such as the one using by the tree are
also protected by caps so that they do not work in content.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•19 years ago
|
||
The bug is still there when using .originalTarget.
Perhaps we could add some attribute to XBL which defines whether the
binding should be handled as 'native' and then the .originalTarget
could be the same as .target ...
Updated•19 years ago
|
Whiteboard: DUPEME → e
Comment 13•19 years ago
|
||
(In reply to comment #12)
>The bug is still there when using .originalTarget.
You don't see the bug for the input because we protect the DIV using CAPS.
We aren't able to protect the scrollbar using CAPS because of its XBL.
I don't know if updating the original target will break C++ event listeners.
Comment 14•19 years ago
|
||
Well, it fixes the testcase, but I didn't look for regressions.
Comment 15•19 years ago
|
||
(In reply to comment #12)
> Perhaps we could add some attribute to XBL which defines whether the
> binding should be handled as 'native' and then the .originalTarget
> could be the same as .target ...
Or we could simply nuke the originalTarget when retargeting from native anonymous content; I believe we have bugs on doing that already...
Reporter | ||
Comment 16•19 years ago
|
||
*** Bug 331057 has been marked as a duplicate of this bug. ***
Updated•17 years ago
|
Whiteboard: e
Comment 17•17 years ago
|
||
Bug 401549 describes another way these scrollbar elements can leak out to web page scripts.
Updated•16 years ago
|
Assignee: events → nobody
QA Contact: ian → events
Reporter | ||
Comment 18•11 years ago
|
||
I think this is fixed nowadays, right?
Updated•11 years ago
|
Status: REOPENED → RESOLVED
Closed: 20 years ago → 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Resolution: FIXED → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•