Community
Participate
Working Groups
In the editor we need to improve our agent detection code as it fails, see bug 344710. The current code is: var isIE = document.selection && window.ActiveXObject && /MSIE/.test(navigator.userAgent) ? document.documentMode : undefined; var isFirefox = parseFloat(navigator.userAgent.split("Firefox/")[1] || navigator.userAgent.split("Minefield/")[1]) || undefined; var isOpera = navigator.userAgent.indexOf("Opera") !== -1; var isChrome = navigator.userAgent.indexOf("Chrome") !== -1; var isSafari = navigator.userAgent.indexOf("Safari") !== -1; var isWebkit = navigator.userAgent.indexOf("WebKit") !== -1; var isPad = navigator.userAgent.indexOf("iPad") !== -1; var isMac = navigator.platform.indexOf("Mac") !== -1; var isWindows = navigator.platform.indexOf("Win") !== -1; var isLinux = navigator.platform.indexOf("Linux") !== -1; the user agent string on chrome 11, for example, is "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24"
Created attachment 206537 [details] Proposed fix I guess this should take care of the reported problem for Safari. Rearranging the order should do the trick.
Fixed http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ad1637b0d15a7cb196142b5ea0f03d23d3214fd2 Thanks Prakash.