allow dumping the nav cache from the browser
Adding this about:debug flavor allows dumping the
nav cache from a script over usb without user
interaction. The script for me looks like:
function pullnav()
{
adb shell am start about:debug.nav
sleep 1
adb pull data/data/com.android.browser/navlog /android/$1.cpp
adb shell rm data/data/com.android.browser/navlog
kate -u /android/$1.cpp &
}
which pulls up the nav dump into a local editor.
bug:3364574
Change-Id: Ie6b3491b4b9e4490d8229402f4f3770879eff36d
diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java
index e4b3201..2a34aba 100644
--- a/src/com/android/browser/IntentHandler.java
+++ b/src/com/android/browser/IntentHandler.java
@@ -178,6 +178,8 @@
current.getWebView().dumpRenderTree(true);
} else if ("about:debug.display".equals(urlData.mUrl)) {
current.getWebView().dumpDisplayTree();
+ } else if ("about:debug.nav".equals(urlData.mUrl)) {
+ current.getWebView().debugDump();
} else {
mSettings.toggleDebugSettings();
}