}
private void ensureBrowserDetected() {
if (!browserDetected) {
browserDetected = true;
final Navigator nav = getWindow().getNavigator();
final String ua = nav.getUserAgent();
boolean isWebKitBased = ua.indexOf("WebKit") >= 0;
if (isWebKitBased) {
isWebKit = getWebKitVersion(ua) >= SUPPORTED_WEBKIT_VERSION;
return;
}