Rick Li
unread,Aug 13, 2011, 6:06:08 AM8/13/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
I find a workround, if I comment out the chromeframe check it would be
ok.
I'm not sure why it's needed, it only checks the chromeframe plugin is
installed but doesn't check if it's activated or not.
in my IE8 + chromeframe 13, if it's activated, the userAgent would
already contain "webkit".
// webkit family (chrome, safari and chromeframe).
new UserAgentPropertyGeneratorPredicate("safari")
.getPredicateBlock()
.println("return (")
.println("(ua.indexOf('webkit') != -1)")
.println("||")
.println("(function() {")
/*
.println("if (ua.indexOf('chromeframe') != -1) {")
.println("return true;")
.println("}")
.println("if (typeof window['ActiveXObject'] !=
'undefined') {")
.println("try {")
.println("var obj = new
ActiveXObject('ChromeTab.ChromeFrame');")
.println("if (obj) {")
.println("obj.registerBhoIfNeeded();")
.println("return true;")
.println("}")
.println("} catch(e) { }")
.println("}")
*/
.println("return false;")
.println("})()")
.println(")")
.returns("'safari'"),