Closed Bug 228566 Opened 22 years ago Closed 22 years ago

Cleanup & optimizaton: privacy-button incorrectly uses a 'taskbutton' inside a 'statusbarpanel-iconic'

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 235190

People

(Reporter: alfredkayser, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031214 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031214 cookieTasksOverlay.xul uses the following code to add a cookie button in the statusbar: 113 <statusbarpanel class="statusbarpanel-iconic" id="privacy-button" 114 hidden="true" insertbefore="security-button" 115 oncommand="viewP3PDialog()" tooltiptext="&cookieIcon.label;"> 116 <toolbarbutton class="taskbutton" id="mini-cookie" 117 image="chrome://communicator/skin/cookie/taskbar-cookie.gif"/> 118 </statusbarpanel> While navigator.xul uses the following: 336 <statusbarpanel class="statusbarpanel-iconic" id="security-button" 337 onclick="BrowserPageInfo(null, 'securityTab')"/> The main difference is the 'taskbutton' inside the statusbarpanel-iconic. Furthermore, also the chrome path to the cookie icon is hardcoded in the XUL itself. This could easily be replaced with: <statusbarpanel class="statusbarpanel-iconic" id="privacy-button" hidden="true" insertbefore="security-button" onclick="viewP3PDialog()"/> With the icon definition in global.css (or navigator.css?): #privacy-button { list-style-image: url("chrome://communicator/skin/cookie/taskbar-cookie.gif"); } While the 'themers' don't like a theme change (but this is a small one, and at least this themer doesn't object), everybody hates hardcoded references to images in the chrome. Reproducible: Always Steps to Reproduce:
Attachment #137477 - Flags: review?(darin)
Note, this also removes the hard dependency from /content/ to /skin/: chrome://communicator/skin/cookie/taskbar-cookie.gif is directly referenced.
Bug 235190 may have a different summary, but the patch is effectively the same. So the issue of this bug is therefor closed with the fixing of 235190 *** This bug has been marked as a duplicate of 235190 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Comment on attachment 137477 [details] [diff] [review] Quick and simple patch removing review request since bug has been closed.
Attachment #137477 - Flags: review?(darin)
V/dupe
Status: RESOLVED → VERIFIED
QA Contact: benc
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: