Closed
Bug 277342
Opened 20 years ago
Closed 20 years ago
JS Console behaving incorrectly with right-click on source file
Categories
(Core Graveyard :: Error Console, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: csthomas, Unassigned)
References
()
Details
(Whiteboard: [good first bug])
Attachments
(1 file)
2.02 KB,
patch
|
mconnor
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
Error: Selector expected. Ruleset ignored due to bad selector.
Source File: http://www.google.com/
Line: 5
Right-clicking "http://www.google.com" immediately brings up the source, instead
of a context menu.
Reporter | ||
Updated•20 years ago
|
Reporter | ||
Comment 1•20 years ago
|
||
I see this in my 1/03 and 1/06 builds.
Comment 2•20 years ago
|
||
Worksforme in a current Linux trunk build (01/06). Is this Windows-only? Is
this a regression?
Comment 3•20 years ago
|
||
Though note that the console uses <handler event="click"> and doesn't filter on
the button. Could that be a problem?
Comment 4•20 years ago
|
||
An explicit button filter would be the easiest fix (the other way would involve
changing the binding to extend xul:button to be able to use a command handler).
Comment 5•20 years ago
|
||
OK. So in consoleBindings.xml, the event handler for click should check that
it's the left button being clicked (event.button == 0).
Whiteboard: [good first bug]
Comment 6•20 years ago
|
||
Actually, XBL should do the check, not the event handler.
Comment 7•20 years ago
|
||
What's the XBL syntax for that?
Comment 8•20 years ago
|
||
not windows only - also seen on linux/gtk2/trunk/Do Jan 6 21:30:17 CET 2005
as for the button check, use a button attribute (like at
http://lxr.mozilla.org/seamonkey/source/xpfe/global/resources/content/bindings/radio.xml#410
)
OS: Windows XP → All
Comment 9•20 years ago
|
||
*** Bug 120287 has been marked as a duplicate of this bug. ***
Comment 10•20 years ago
|
||
*** Bug 220617 has been marked as a duplicate of this bug. ***
Comment 11•20 years ago
|
||
What biesi said in the form of a patch. I tested this (only on Linux) and it
fixes the bug. The context menu items still work and the view-source window is
only opened on left click now.
Attachment #172912 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #172912 -
Flags: review?(mconnor)
Updated•20 years ago
|
Attachment #172912 -
Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Updated•20 years ago
|
Attachment #172912 -
Flags: review?(mconnor) → review+
Comment 12•20 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → SeaMonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•