Closed
Bug 252393
Opened 21 years ago
Closed 19 years ago
toolbarbutton XUL elements with the orient attribute set to horizontal are broken
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
VERIFIED
FIXED
mozilla1.8.1alpha2
People
(Reporter: woody, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: verified1.8.1)
Attachments
(1 file, 2 obsolete files)
|
2.78 KB,
patch
|
sgautherie
:
review+
mscott
:
superreview+
mscott
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
XUL toolbarbutton elements with the orient="horizontal" attribute set, are
broken in multiple ways. First the command associated isn't executed when
clicked. Second, when the type attribute isn't set so it should be a standard
button it still shows a dropmarker. Third, and finally if the type="menu-button"
attribute is set, then two dropmarkers are displayed.
Reproducible: Always
Steps to Reproduce:
The following XUL snippet demonstrates the problem.
<commandset id="mainCommandSet">
<command id="cmd_gogoogleit"
oncommand="window._content.document.location='http://www.google.com'"/>
</commandset>
<commandset id="commands">
<command id="cmd_gogoogleit"
oncommand="window._content.document.location='http://www.google.com'"/>
</commandset>
<toolbox id="navigator-toolbox">
<toolbar id="fubar_toolbar" pack="start">
<toolbarbutton id="good_button"
label="GoodButton"
tooltiptext="Good Button"
command="cmd_gogoogleit" />
<toolbarbutton id="fubar_button"
orient="horizontal"
label="FubarButton"
tooltiptext="Fubar Button"
command="cmd_gogoogleit" />
<toolbarbutton id="fubar_menubutton"
type="menu-button"
orient="horizontal"
label="FubarMenuButton"
command="cmd_gogoogleit">
<menupopup>
<menuitem label="images"
onclick="window._content.document.location='http://images.google.com'"/>
<menuitem label="groups"
onclick="window._content.document.location='http://groups.google.com'"/>
</menupopup>
</toolbarbutton>
</toolbar>
</toolbox>
Actual Results:
The second and third button have one more dropmarker than they should, and the
buttons themself do not invoke their associated command (i.e. changing the page
to www.google.com).
Expected Results:
The second button should have not have a dropmarker and the third should have
one dropmarker. Both buttons when clicked should change the browser to the
Google home page.
| Reporter | ||
Comment 1•21 years ago
|
||
I have placed the XUL test case on my webserver at http://emergent.org/fubar.xul
Comment 2•21 years ago
|
||
Yes, i have a same trouble with a toolbarbutton with atribute orient sets to
horizontal.
I tested in firefox 0.9, 0.9.1 and 0.9.2 in MacOSX, Win9x, Win2k/XP and Linux.
The button appear with a double arrow and not respond at click action.
(In reply to comment #0)
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
Gecko/20040707 Firefox/0.9.2
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
Gecko/20040707 Firefox/0.9.2
>
> XUL toolbarbutton elements with the orient="horizontal" attribute set, are
> broken in multiple ways. First the command associated isn't executed when
> clicked. Second, when the type attribute isn't set so it should be a standard
> button it still shows a dropmarker. Third, and finally if the type="menu-button"
> attribute is set, then two dropmarkers are displayed.
>
>
> Reproducible: Always
> Steps to Reproduce:
> The following XUL snippet demonstrates the problem.
>
> <commandset id="mainCommandSet">
> <command id="cmd_gogoogleit"
> oncommand="window._content.document.location='http://www.google.com'"/>
> </commandset>
>
> <commandset id="commands">
> <command id="cmd_gogoogleit"
> oncommand="window._content.document.location='http://www.google.com'"/>
> </commandset>
>
> <toolbox id="navigator-toolbox">
>
> <toolbar id="fubar_toolbar" pack="start">
>
> <toolbarbutton id="good_button"
> label="GoodButton"
> tooltiptext="Good Button"
> command="cmd_gogoogleit" />
>
> <toolbarbutton id="fubar_button"
> orient="horizontal"
> label="FubarButton"
> tooltiptext="Fubar Button"
> command="cmd_gogoogleit" />
>
>
> <toolbarbutton id="fubar_menubutton"
> type="menu-button"
> orient="horizontal"
> label="FubarMenuButton"
> command="cmd_gogoogleit">
>
> <menupopup>
> <menuitem label="images"
>
> onclick="window._content.document.location='http://images.google.com'"/>
> <menuitem label="groups"
>
> onclick="window._content.document.location='http://groups.google.com'"/>
> </menupopup>
> </toolbarbutton>
>
> </toolbar>
> </toolbox>
> Actual Results:
> The second and third button have one more dropmarker than they should, and the
> buttons themself do not invoke their associated command (i.e. changing the page
> to www.google.com).
>
> Expected Results:
> The second button should have not have a dropmarker and the third should have
> one dropmarker. Both buttons when clicked should change the browser to the
> Google home page.
This bug was caused by the checkin for bug 214893.
https://bugzilla.mozilla.org/show_bug.cgi?id=214893
This patch restores the horizontal attribute functionality and keeps the
existing mail button function.
Comment 4•20 years ago
|
||
(In reply to comment #1)
> I have placed the XUL test case on my webserver at http://emergent.org/fubar.xul
This URI could be down, currently !?
Could you attach your testcase to this bug ?
Status: UNCONFIRMED → NEW
Depends on: 214893
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Version: unspecified → Trunk
Updated•20 years ago
|
Attachment #170205 -
Flags: review?(mconnor)
Comment 5•20 years ago
|
||
Comment on attachment 170205 [details] [diff] [review]
fixes orient set to horizontal
If this is the only button currently using this binding then I'd appreciate it
if the orient could be moved from the XUL to the XBL and its type changed to
"menu-vertical".
Updated•20 years ago
|
Attachment #170205 -
Attachment is obsolete: true
Attachment #170205 -
Flags: review?(mconnor)
Updated•20 years ago
|
Attachment #178268 -
Flags: review?(mconnor)
Updated•20 years ago
|
Assignee: bugs → nobody
QA Contact: bugzilla → toolbars
Version: Trunk → unspecified
As an update to anyone interested this bug still exists in the current nightlies and the 1.8 branch but the mail button no longer exists to use this functionality. The mail button and this bug are still in the 1.8.0 branch. The bug that removed the mail button from the 1.8 branch is https://bugzilla.mozilla.org/show_bug.cgi?id=306453
Comment 8•19 years ago
|
||
Thus making it more obvious that the button has a menu.
Attachment #214196 -
Flags: superreview?(mscott)
Comment 9•19 years ago
|
||
(In reply to comment #8)
> Created an attachment (id=214196) [edit]
> Add a dropmarker to Thunderbird's File button
Neil,
This patch would seem to obsolete the previous one !?
What about the previously suggested change to <mozilla/mail/themes/qute/mail/primaryToolbar.css> ?
Comment 10•19 years ago
|
||
(In reply to comment #9)
> What about the previously suggested change to
> <mozilla/mail/themes/qute/mail/primaryToolbar.css> ?
Sorry, I don't see to which change you refer...
Updated•19 years ago
|
Attachment #178268 -
Attachment is obsolete: true
Attachment #178268 -
Flags: review?(mconnor)
Comment 11•19 years ago
|
||
(In reply to comment #10)
> (In reply to comment #9)
> > What about the previously suggested change to
> > <mozilla/mail/themes/qute/mail/primaryToolbar.css> ?
> Sorry, I don't see to which change you refer...
My fault: I compared the patch in the wrong order.
Obsoleting previous patch, as the <mozilla/browser/base/content/browser.xul> part was removed in bug 306453 as mentioned in comment 7.
Depends on: 306453
Updated•19 years ago
|
Attachment #214196 -
Flags: superreview?(mscott) → superreview+
Updated•19 years ago
|
Attachment #214196 -
Flags: review?(mconnor)
Updated•19 years ago
|
Attachment #214196 -
Flags: review?(mconnor) → review+
Comment 12•19 years ago
|
||
I checked the patch in; can someone download tomorrow's build and retest?
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 13•19 years ago
|
||
(In reply to comment #12)
> I checked the patch in; can someone download tomorrow's build and retest?
With Neil's hint,
{{
> Well, where is that "Thunderbird's File button" ? :-/
You have to customise the toolbar to find it.
}}
I verified that a dropmarker was added between
[Mozilla Thunderbird, version 3 alpha 1 (20060402)] (nightly) (W98SE)
and
[Mozilla Thunderbird, version 3 alpha 1 (20060404)] (nightly) (W98SE)
.
But, unlike the 'Get Mail' and 'Print' buttons, the 'File' icon and dropmarker behave synchronously wrt :hover and :active.
Is this related to the current patch, or another bug ?
PS: Neil, do we want this in the 1.8 branch !!? (as bug 306453 was fixed there too)
Status: RESOLVED → VERIFIED
Target Milestone: --- → Firefox 3
Version: unspecified → Trunk
Comment 14•19 years ago
|
||
Comment on attachment 214196 [details] [diff] [review]
Add a dropmarker to Thunderbird's File button
[Checkin: Comment 12 & 16]
Neil's email answer:
[[
> PS: Neil, do we want this in the 1.8 branch !!? (as bug 306453 was fixed there too)
Maybe.
]]
I still guess this (TK only) UI fix should be welcomed on v1.8.1 branch !!?
Attachment #214196 -
Flags: approval-branch-1.8.1?(mscott)
Comment 15•19 years ago
|
||
Comment on attachment 214196 [details] [diff] [review]
Add a dropmarker to Thunderbird's File button
[Checkin: Comment 12 & 16]
(As a note, this patch did not update
/toolkit/themes/qute/communicator/button.css, line 80 -- .toolbarbutton-1[type="menu"] > .toolbarbutton-menu-dropmarker {
but it seems mscott should remove these (obsoleted) files someday...)
Updated•19 years ago
|
Attachment #214196 -
Flags: approval-branch-1.8.1?(mscott) → approval-branch-1.8.1+
Comment 16•19 years ago
|
||
Comment on attachment 214196 [details] [diff] [review]
Add a dropmarker to Thunderbird's File button
[Checkin: Comment 12 & 16]
Checkin: { 2006-05-05 07:03 bugzilla%standard8.demon.co.uk MOZILLA_1_8_BRANCH }
Attachment #214196 -
Attachment description: Add a dropmarker to Thunderbird's File button → Add a dropmarker to Thunderbird's File button
[Checkin: Comment 12 & 16]
Updated•19 years ago
|
Component: Toolbars → XP Toolkit/Widgets
Flags: review+
Keywords: fixed1.8.1
Product: Firefox → Core
Target Milestone: Firefox 3 → mozilla1.8.1alpha2
Comment 17•19 years ago
|
||
[Mozilla Thunderbird, version 2 alpha 1 (20060506)] (tinderbox-builds, 2006050504(+)) (W98SE)
V.Fixed on 1.8.1 branch.
Keywords: fixed1.8.1 → verified1.8.1
Comment 18•19 years ago
|
||
Comment on attachment 214196 [details] [diff] [review]
Add a dropmarker to Thunderbird's File button
[Checkin: Comment 12 & 16]
Restoring
[[
mconnor@mozilla.com 2006-04-02 23:16:41 PDT review+
]]
which was lost when I changed the product+component.
Attachment #214196 -
Flags: review+
You need to log in
before you can comment on or make changes to this bug.
Description
•