[Webkit-unassigned] [Bug 228313] New: LayoutTestHelper does not correctly restore color profiles for some devices

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 26 22:07:50 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=228313

            Bug ID: 228313
           Summary: LayoutTestHelper does not correctly restore color
                    profiles for some devices
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com

LayoutTestHelper only looks for profiles named "1", which is a default profile name.  Some devices have multiple profile names, such as my external monitor, which has this device info dictionary:

(lldb) po deviceInfo
{
    CustomProfiles =     {
        "HDMI HD" = "file:///System/Library/ColorSync/Profiles/sRGB%20Profile.icc";
    };
    DeviceClass = mntr;
    DeviceDescription = "ASUS PB27U";
    DeviceHostScope = kCFPreferencesCurrentHost;
    DeviceID = "<CFUUID 0x6000037cc3e0> 4261DDFA-A1B4-1E80-AD62-026351A927F0";
    DeviceUserScope = kCFPreferencesAnyUser;
    FactoryProfiles =     {
        DeviceDefaultProfileID = "HDMI HD";
        "HDMI HD" =         {
            DeviceModeDescription = "HDMI HD";
            DeviceProfileURL = "file:///Library/ColorSync/Profiles/Displays/ASUS%20PB27U-4261DDFA-A1B4-1E80-AD62-026351A927F0.icc";
        };
        "HDMI SD" =         {
            DeviceModeDescription = "HDMI SD";
            DeviceProfileURL = "file:///System/Library/CoreServices/Resources/Profiles/SD%20170M-A.icc";
        };
    };
}

We should look at the DeviceDefaultProfileID and use that as the profile name.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210727/8bcdc799/attachment.htm>


More information about the webkit-unassigned mailing list