[Laszlo-checkins] r13971 - openlaszlo/trunk/lps/includes/source

bargull@openlaszlo.org bargull at openlaszlo.org
Thu May 21 13:17:05 PDT 2009


Author: bargull
Date: 2009-05-21 13:17:03 -0700 (Thu, 21 May 2009)
New Revision: 13971

Modified:
   openlaszlo/trunk/lps/includes/source/embednew.js
Log:
Change 20090520-bargull-IkU by bargull at dell--p4--2-53 on 2009-05-20 23:35:45
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: update brower detection script

New Features:

Bugs Fixed: LPP-7966 (New version for browser detection script)

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Update detection script to latest version.
Changes:
- "Chrome", "OmniWeb" and "Camino" added as browsers
- changed detection for "Safari"
- "IPhone" added as OS
    

Tests:



Modified: openlaszlo/trunk/lps/includes/source/embednew.js
===================================================================
--- openlaszlo/trunk/lps/includes/source/embednew.js	2009-05-21 19:01:25 UTC (rev 13970)
+++ openlaszlo/trunk/lps/includes/source/embednew.js	2009-05-21 20:17:03 UTC (rev 13971)
@@ -533,9 +533,19 @@
             },
             {
                 string: navigator.userAgent,
+                subString: "Chrome",
+                identity: "Chrome"
+            },
+            {   string: navigator.userAgent,
+                subString: "OmniWeb",
+                versionSearch: "OmniWeb/",
+                identity: "OmniWeb"
+            },
+            {
+                string: navigator.vendor,
                 subString: "Apple",
                 identity: "Safari",
-                versionSearch: "WebKit"
+                versionSearch: "Version"
             },
             {
                 prop: window.opera,
@@ -562,6 +572,11 @@
                 versionSearch: "Iceweasel", 
                 identity: "Firefox"
             },
+            {
+                string: navigator.vendor,
+                subString: "Camino",
+                identity: "Camino"
+            },
             {    // for newer Netscapes (6+)
                 string: navigator.userAgent,
                 subString: "Netscape",
@@ -599,6 +614,11 @@
                 identity: "Mac"
             },
             {
+                   string: navigator.userAgent,
+                   subString: "iPhone",
+                   identity: "iPhone/iPod"
+            },
+            {
                 string: navigator.platform,
                 subString: "Linux",
                 identity: "Linux"



More information about the Laszlo-checkins mailing list