Can't get correct DOMImpl when chromeframe installed but turned off

122 views
Skip to first unread message

Rick Li

unread,
Aug 11, 2011, 9:21:18 AM8/11/11
to Google Web Toolkit
Hi,

I created below issue couple of days ago but no one replied
http://code.google.com/p/google-web-toolkit/issues/detail?id=6665

this issue happened to me with chrome frame 12 + IE8, it always bind
WebKit DOMImpl even when chromeframe is disabled.

is there a way to fix this?

Thanks,
Rick

Rick Li

unread,
Aug 13, 2011, 6:06:08 AM8/13/11
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'"),

Rick Li

unread,
Aug 13, 2011, 6:09:57 AM8/13/11
to Google Web Toolkit
The referred code is from UserAgentPropertyGenerator.

Paul Smith

unread,
Sep 9, 2011, 3:53:26 PM9/9/11
to google-we...@googlegroups.com
After taking 2.4 I got caught by this issue also. If chrome frame is installed but not enabled for the page, then gwt uses deferred binding stuff meant for chrome and not the ones meant for ie. It breaks all over the place! Please fix this!

You might say "just add the meta tag to make it use chrome frame", but I have two issues with that:
 - chrome frame could be installed and disabled - this still affects navigator.userAgent
 - my application doesn't even support chrome (yet)
Reply all
Reply to author
Forward
0 new messages