Closed Bug 339192 Opened 18 years ago Closed 18 years ago

Readonly textboxes shouldn't look active

Categories

(Core Graveyard :: Widget: Mac, defect)

1.8 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8.1beta1

People

(Reporter: philor, Assigned: philor)

References

Details

(Keywords: fixed1.8.1)

Attachments

(4 files)

Currently, only Windows (both sorts for XUL, Luna for HTML) shows readonly textboxes any differently than regular active ones: there, they have the same gray (well, threedface) background as disabled textboxes, but for Mac (and GTK) they are just a frustratingly broken field where you can't type.

Apparently, judging by the lack of bugs, it's not much of a problem in HTML, but we've got at least two consumers in XUL (bug 297815 and bug 337344) that need at least some hint that there's a reason why you can't change the value, just copy it.

Testcases and patch forthcoming.
Attached file HTML testcase
Assignee: joshmoz → philringnalda
Status: NEW → ASSIGNED
Attached file XUL testcase
Attached patch Fix v.1Splinter Review
I'm not quite sure about the style of this, but it works, in Firefox for XUL, and CocoaFox and Camino for HTML.
Attachment #223269 - Flags: review?(joshmoz)
Attached image HTML screenshot
Camino, CocoaFox, and Safari rendering the HTML testcase with my patch applied.
Attachment #223269 - Flags: review?(joshmoz) → review+
Attachment #223269 - Flags: superreview?(bryner)
Attachment #223269 - Flags: review?(mikepinkerton)
Comment on attachment 223269 [details] [diff] [review]
Fix v.1

sr=pink
Attachment #223269 - Flags: superreview?(bryner)
Attachment #223269 - Flags: superreview+
Attachment #223269 - Flags: review?(mikepinkerton)
Whiteboard: [checkin needed]
Blocks: 297815
Blocks: 337344
No longer blocks: 338887
mozilla/widget/src/mac/nsNativeThemeMac.cpp 	1.51
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Phil, do you intend to seek 1.8.1 approval for this?  I'd take it.
I do (it's a blocker for a Firefox 2.0 blocker), I just wanted a little baking since I don't use Cocoa widgets in HTML for daily browsing, so I wanted to see if it screwed up something I hadn't noticed.

Plus I'm still confused over who does which reviews for whom here ;) How about if I request a= from you, and you can pass it off if that's not right?
Attachment #223269 - Flags: approval-branch-1.8.1?(mark)
Comment on attachment 223269 [details] [diff] [review]
Fix v.1

Good call!  Module owners can grant 1.8.1 approval until June 15, or at least that was the plan a few days ago.
Attachment #223269 - Flags: approval-branch-1.8.1?(mark) → approval-branch-1.8.1+
Whiteboard: [checkin needed (1.8 branch)]
1.8: Checking in mozilla/gfx/src/mac/nsNativeThemeMac.cpp;
/cvsroot/mozilla/gfx/src/mac/Attic/nsNativeThemeMac.cpp,v  <--  nsNativeThemeMac.cpp
new revision: 1.40.2.2; previous revision: 1.40.2.1
done
Keywords: fixed1.8.1
Whiteboard: [checkin needed (1.8 branch)]
No longer blocks: 337344
Product: Core → Core Graveyard
Version: Trunk → 1.8 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: