Changeset 268911 in webkit
- Timestamp:
- Oct 23, 2020, 1:25:34 AM (6 years ago)
- Location:
- releases/WebKitGTK/webkit-2.30/Source/WTF
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/glib/ChassisType.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.30/Source/WTF/ChangeLog
r266590 r268911 1 2020-09-30 Alexander Mikhaylenko <alexm@gnome.org> 2 3 [GTK] Chassis type check fails if the value is quoted 4 https://bugs.webkit.org/show_bug.cgi?id=217123 5 6 Reviewed by Carlos Garcia Campos. 7 8 Sometimes the chassis type can be quoted, in this case we'll fail to 9 parse it and fall back to desktop type. Unquote the string before 10 attempting to parse it. 11 12 * wtf/glib/ChassisType.cpp: 13 (WTF::readMachineInfoChassisType): 14 1 15 2020-09-01 Carlos Garcia Campos <cgarcia@igalia.com> 2 16 -
releases/WebKitGTK/webkit-2.30/Source/WTF/wtf/glib/ChassisType.cpp
r264213 r268911 47 47 if (g_str_has_prefix(split.get()[i], "CHASSIS=")) { 48 48 char* chassis = split.get()[i] + 8; 49 if (!strcmp(chassis, "tablet") || !strcmp(chassis, "handset")) 49 50 GUniquePtr<char> unquoted(g_shell_unquote(chassis, &error.outPtr())); 51 if (error) 52 g_warning("Could not unquote chassis type %s: %s", chassis, error->message); 53 54 if (!strcmp(unquoted.get(), "tablet") || !strcmp(unquoted.get(), "handset")) 50 55 return ChassisType::Mobile; 51 56
Note:
See TracChangeset
for help on using the changeset viewer.