[Webkit-unassigned] [Bug 8646] New: window.screen.pixelDepth returns wrong value

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Apr 28 05:27:25 PDT 2006


           Summary: window.screen.pixelDepth returns wrong value
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
               URL: http://developer.mozilla.org/en/docs/DOM:window.screen.p
        OS/Version: Mac OS X 10.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: kimmo.t.kinnunen at nokia.com

To reproduce enter following url to the safari url bar

For me it produces dialog with the text "520" in it.

bug is in WebKit/WebCore/platform/mac/ScreenMac.mm

>From the ADC docs about NSScreen

- (NSWindowDepth)depth

The return value is not directly usable; you must pass it to functions such as
NSBitsPerPixelFromDepth and NSColorSpaceFromDepth to obtain concrete values.

Using NSBitsPerPixelFromDepth returns 24, where as stock Safari (312+?) and
Firefox return 32

Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list