Changeset 54067 in webkit
- Timestamp:
- Jan 29, 2010 9:22:23 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r54063 r54067 1 2010-01-29 Alexander Pavlov <apavlov@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Fix MacOS X version detection 6 7 MacOS X version can have 2 or 3 segments. 8 https://bugs.webkit.org/show_bug.cgi?id=34322 9 10 * inspector/front-end/inspector.js: 11 (WebInspector._detectPlatform): 12 1 13 2010-01-29 Jakob Petsovits <jpetsovits@rim.com> 2 14 -
trunk/WebCore/inspector/front-end/inspector.js
r54059 r54067 84 84 return WebInspector.OS.Windows; 85 85 } else if (nativePlatform === "mac") { 86 var match = userAgent.match(/Mac OS X\s*(?:(\d+)_(\d+) _(?:\d+))?/);86 var match = userAgent.match(/Mac OS X\s*(?:(\d+)_(\d+))?/); 87 87 if (!match || match[1] != 10) 88 return WebInspector.OS.Mac Leopard;88 return WebInspector.OS.MacSnowLeopard; 89 89 switch (Number(match[2])) { 90 90 case 4: … … 93 93 return WebInspector.OS.MacLeopard; 94 94 case 6: 95 default: 95 96 return WebInspector.OS.MacSnowLeopard; 96 97 } 97 return WebInspector.OS.MacLeopard;98 98 } 99 99
Note: See TracChangeset
for help on using the changeset viewer.