Closed Bug 527248 Opened 15 years ago Closed 15 years ago

Incorrect bookmark bar colors when using a display profile with a gamma NOT set to 1.8

Categories

(Camino Graveyard :: Toolbars & Menus, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: r.mozley, Assigned: r.mozley)

References

()

Details

(Keywords: regression, Whiteboard: [camino-2.0.2])

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:1.9.0.15) Gecko/2009102701 Camino/2.0 (like Firefox/3.0.15)
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:1.9.0.15) Gecko/2009102701 Camino/2.0 (like Firefox/3.0.15)

The bookmarks bar colours are changing dependent on what display profile the user is using. Anything other than a profile using a gamma of 1.8 will make the gradient colours different to what is set in the source code.

Reproducible: Always

Steps to Reproduce:
1. Set a display profile to one that doesn't use a gamma of 1.8 (Apple standard).
2. Open Camino 2.0.
3. Check values using Digital Color Meter (in the background).
Actual Results:  
Bookmark bar colours appear out of line with source code values.

Expected Results:  
Bookmark colours appear with correct values as set in source code.

Mac OS X 10.4.11 iBook G4
Attached patch Possible patch. (obsolete) — Splinter Review
We still need to use a device dependent profile to keep the gradient colours the same as set.
I'm confused, though; shouldn't this have been happening all the time on Intel, which always had a minimum that wasn't < 10.4?  Was the ifdef that was removed in bug 425519 always wrong?

I'm guessing this is the right thing to do, though, since the other color functions in CHGradient are using NSDeviceRGBColorSpace currently.
Assignee: nobody → r.mozley
Blocks: 425519
Flags: camino2.0.1?
Keywords: regression
According to the docs those calls should be equivalent. Are you actually seeing a difference with this patch?
(In reply to comment #3)
> According to the docs those calls should be equivalent. Are you actually seeing
> a difference with this patch?

Yes I'm seeing a difference alright. It does indeed say in the documentation that in 10.4 it becomes generic RGB but in practice they don't appear to be equivalent.
Weird; the comment in the patch needs to say as much then, so it's not just changed back later.
Richard, can you update this patch?
Flags: camino2.0.2?
Flags: camino2.0.1?
Flags: camino2.0.1-
(In reply to comment #6)
> Richard, can you update this patch?

In what way does it need updating? Has something changed on trunk or some other reason?
I thought Stuart was just agreeing that my comment in the patch was ok. If that's not the case then I'll have to think about how to rephrase as I'm a little muddled about what is needed.
The comment needs to make it clear that this form is in fact device dependent despite the claims of the docs.
OK, understood now. I'll have the patch updated sometime, as soon as I can.
Attached patch Updated patchSplinter Review
I've added the extra comments as requested. I hope it meets with your approval.
Attachment #410996 - Attachment is obsolete: true
I'm gonna go ahead and confirm this since we have a patch :-p
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Hardware: PowerPC → All
Comment on attachment 414386 [details] [diff] [review]
Updated patch

Even better, the patch needs a reviewer; I'm not sure who's the right person, but Stuart can find another victim if necessary ;-)
Comment on attachment 414386 [details] [diff] [review]
Updated patch

r=me.

And come to think of it, I think I remember someone at work running into this "the docs are lying" thing while doing pixel-based unit tests a while back.
Attachment #414386 - Flags: superreview?(mikepinkerton)
Attachment #414386 - Flags: review?(stuart.morgan+bugzilla)
Attachment #414386 - Flags: review+
Comment on attachment 414386 [details] [diff] [review]
Updated patch

sr=pink
Attachment #414386 - Flags: superreview?(mikepinkerton) → superreview+
Landed on cvs trunk and CAMINO_2_0_BRANCH.  Thanks, Richard!
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: camino2.0.2? → camino2.0.2+
Resolution: --- → FIXED
Whiteboard: [camino-2.0.2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: