Closed
Bug 341974
Opened 18 years ago
Closed 18 years ago
pop-up blocker's close button has no mouseover feedback
Categories
(Camino Graveyard :: Annoyance Blocking, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: froodian, Assigned: aschulm)
References
Details
(Keywords: verified1.8.1)
Attachments
(2 files, 2 obsolete files)
20.00 KB,
application/x-tar
|
stuart.morgan+bugzilla
:
review+
froodian
:
review+
|
Details |
3.31 KB,
patch
|
stuart.morgan+bugzilla
:
review+
mikepinkerton
:
superreview+
|
Details | Diff | Splinter Review |
The close button in the popup blocker should get the mouseover enhancements brought on by bug 235864 and its followup, bug 337802.
Assignee | ||
Comment 2•18 years ago
|
||
Nib Changes: 1. Class of close button changed to RolloverImageButton 2. Link made between close button and BrowserWrapper's mBlockedPopupCloseButton
Attachment #227341 -
Flags: review?(stuart.morgan)
Assignee | ||
Comment 3•18 years ago
|
||
Attachment #227342 -
Flags: review?(stuart.morgan)
Comment 4•18 years ago
|
||
Comment on attachment 227342 [details] [diff] [review] Patch >+ IBOutlet RolloverImageButton* mBlockedPopupCloseButton; // loaded with mBlockedPopupView, can be nil, STRONG This shouldn't be a STRONG ref, as I understand it (see below) >- // |mBlockedPopupView| has a retain count of 1 when it comes out of the nib, >+ // |mBlockedPopupView and mBlockedPopupCloseButton| has a retain count of 1 when it comes out of the nib, > // we have to release it manually. > [mBlockedPopupView release]; >+ [mBlockedPopupCloseButton release]; This is only true for top-level nib items, which the button isn't. This should crash... >+ // XXX This is incorrect for the Popup window to depend on BrowserTabViewItem, but we should >+ // not waste memory loading another copy of the close button images >+ [mBlockedPopupCloseButton setImage:[BrowserTabViewItem closeIcon]]; >+ [mBlockedPopupCloseButton setAlternateImage:[BrowserTabViewItem closeIconPressed]]; >+ [mBlockedPopupCloseButton setHoverImage:[BrowserTabViewItem closeIconHover]]; NSImage caches named items, so you don't have to worry about the footprint. The file names have tab_ in them, but that's a lot better than calling into BTVI.
Attachment #227342 -
Flags: review?(stuart.morgan) → review-
Assignee | ||
Comment 5•18 years ago
|
||
Attachment #227342 -
Attachment is obsolete: true
Attachment #227488 -
Flags: review?(stuart.morgan)
Updated•18 years ago
|
Attachment #227341 -
Flags: review?(stuart.morgan) → review+
Comment 6•18 years ago
|
||
Comment on attachment 227488 [details] [diff] [review] Patch (Fixed: Images) Works, but: >+ IBOutlet RolloverImageButton* mBlockedPopupCloseButton; // loaded with mBlockedPopupView, can be nil, STRONG With 2 out of three of those comments wrong and the third not necessary, just remove the comment >+ >+ // XXX This is incorrect for the Popup window to depend on BrowserTabViewItem, but we should >+ // not waste memory loading another copy of the close button This comment doesn't reflect reality anymore, so remove that as well >+ And don't include any whitespace on blank lines, please.
Attachment #227488 -
Flags: review?(stuart.morgan) → review-
Assignee | ||
Comment 7•18 years ago
|
||
Attachment #227488 -
Attachment is obsolete: true
Attachment #228043 -
Flags: review?(stuart.morgan)
Blocks: 343938
Comment 8•18 years ago
|
||
Comment on attachment 228043 [details] [diff] [review] Patch (Fixed: Comments) r=me
Attachment #228043 -
Flags: review?(stuart.morgan) → review+
Updated•18 years ago
|
Attachment #228043 -
Flags: superreview?
Updated•18 years ago
|
Component: General → Annoyance Blocking
QA Contact: general → annoyance.blocking
Updated•18 years ago
|
Attachment #228043 -
Flags: superreview? → superreview?(mikepinkerton)
Assignee | ||
Updated•18 years ago
|
Attachment #227341 -
Flags: superreview?(mikepinkerton)
Comment 9•18 years ago
|
||
Comment on attachment 228043 [details] [diff] [review] Patch (Fixed: Comments) sr=pink
Attachment #228043 -
Flags: superreview?(mikepinkerton) → superreview+
Comment 10•18 years ago
|
||
Comment on attachment 227341 [details]
Modified Nib File
not in a position to test this, can someone verify this nib is ok?
rs=pink if someone does.
Reporter | ||
Comment 11•18 years ago
|
||
Comment on attachment 227341 [details]
Modified Nib File
I had to apply the BrowserWrapper.h portion by hand, but the nib works fine.
Attachment #227341 -
Flags: superreview?(mikepinkerton) → review+
Whiteboard: [needs checkin]
Comment 12•18 years ago
|
||
Fixed trunk and branch.
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: [needs checkin]
Comment 13•18 years ago
|
||
This bug isn't fixed in the 2006091304 branch build (I know a bit old, but this should have been fixed a while ago). Reopening...
Reporter | ||
Comment 14•18 years ago
|
||
Looks like there was just a missed file in the nib. I've checked it in, so this should be fixed, but people should keep an eye out for this in tomorrow's branch.
Status: REOPENED → RESOLVED
Closed: 18 years ago → 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Reporter | ||
Updated•18 years ago
|
Status: RESOLVED → VERIFIED
Keywords: fixed1.8.1 → verified1.8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•