diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index 52ae6a99..e55d544f 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -731,11 +731,10 @@ public class CordovaWebView extends WebView { } // Init preferences - if ("false".equals(this.getProperty("useBrowserHistory", "false"))) { - this.useBrowserHistory = false; - } - else { - this.useBrowserHistory = true; + this.useBrowserHistory = !"false".equals(this.getProperty("useBrowserHistory", "true")); + if (!this.useBrowserHistory) { + // Deprecated in Cordova 2.2.0. + Log.w(TAG, "useBrowserHistory=false is deprecated. Use history.back() instead of navigator.app.backHistory()."); } if ("true".equals(this.getProperty("fullscreen", "false"))) {