Closed Bug 1043423 Opened 10 years ago Closed 8 years ago

SDK's ui/toolbar element creates a border in Firefox 31

Categories

(Add-on SDK Graveyard :: General, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(firefox53 fixed)

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: cplantijn90, Assigned: dylan)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached image toolbar.png β€”
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36

Steps to reproduce:

Followed instructions on creating a toolbar via - https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/ui_toolbar


Actual results:

The toolbar was created with a -moz-like  3d border around the edges. See Image included.


Expected results:

A clean ui toolbar that doesn't have the border.
Assignee: nobody → zer0
Component: Untriaged → General
Product: Firefox → Add-on SDK
Version: 31 Branch → unspecified
Priority: P1 → --
There are already no borders on Mac or Linux, just Windows. The original source of the border is

toolkit/themes/windows/global/toolbar.css:26-31
--------------------------------------------------------------------------------
...
toolbar {
  min-width: 1px;
  min-height: 19px;
  border-top: 1px solid ThreeDHighlight;
  border-bottom: 1px solid ThreeDShadow;
}
...
--------------------------------------------------------------------------------

but we can't change that because SeaMonkey (and Thunderbird?) still depend on that CSS property left over from the Firefox 3.x days.

However, addon toolbars are custom-styled in

addon-sdk/source/lib/sdk/ui/toolbar/view.js:99
--------------------------------------------------------------------------------
...
  view.setAttribute("style", "padding: 2px 0; max-height: 40px;");
...
--------------------------------------------------------------------------------

so it would be simplest to just add "border: 0;" to that line. :)
Attachment #8822124 - Flags: review?(zer0)
Attached patch noborder2.patch β€” β€” Splinter Review
Correction: it's the inner "hack" toolbar that needs its border removed, not the outer toolbar.
Attachment #8822124 - Attachment is obsolete: true
Attachment #8822124 - Flags: review?(zer0)
Attachment #8822292 - Flags: review?(zer0)
Comment on attachment 8822292 [details] [diff] [review]
noborder2.patch

Looks good to me! Thanks for working on that.
Attachment #8822292 - Flags: review?(zer0) → review+
Assignee: zer0 → dylan
Keywords: checkin-needed
landed, thanks for contributing!
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7875d24ddb7a
Fix "SDK's ui/toolbar element creates a border in Firefox 31" r=zer0
Keywords: checkin-needed
Awesome, thanks!
https://hg.mozilla.org/mozilla-central/rev/7875d24ddb7a
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: