Fix toggling about:debug not working
Problem was caused by shortcutting the TYPED url scenario.
For now, only shortcut javascript: urls
Change-Id: Ia89f6cadda42c29522ab61b1e82fa0129d3c4849
diff --git a/src/com/android/browser/TitleBarBase.java b/src/com/android/browser/TitleBarBase.java
index de44306..17b9e19 100644
--- a/src/com/android/browser/TitleBarBase.java
+++ b/src/com/android/browser/TitleBarBase.java
@@ -548,7 +548,9 @@
if (UrlInputView.TYPED.equals(source)) {
String url = UrlUtils.smartUrlFilter(text, false);
Tab t = mBaseUi.getActiveTab();
- if (url != null && t != null) {
+ // Only shortcut javascript URIs for now, as there is special
+ // logic in UrlHandler for other schemas
+ if (url != null && t != null && url.startsWith("javascript:")) {
mUiController.loadUrl(t, url);
setDisplayTitle(text);
return;