Why NavDump is enabled ?

467 views
Skip to first unread message

Alexandr Tereshchuk

unread,
Jan 27, 2012, 10:47:38 AM1/27/12
to phonegap
I've found this code in DroidGap:

//Set the nav dump for HTC
settings.setNavDump(true);

And i can't understand why the hell they did that ? I've researched
native WebKit code... studied rendering process... just searching why
my application is crashing after some numeric keys pressed...
Root of all evil is code in WebView:
3875 if (getSettings().getNavDump()) {
3876 switch (keyCode) {
3877 case KeyEvent.KEYCODE_4:
3878 dumpDisplayTree();
3879 break;
3880 case KeyEvent.KEYCODE_5:
3881 case KeyEvent.KEYCODE_6:
3882 dumpDomTree(keyCode == KeyEvent.KEYCODE_5);
3883 break;
3884 case KeyEvent.KEYCODE_7:
3885 case KeyEvent.KEYCODE_8:
3886 dumpRenderTree(keyCode == KeyEvent.KEYCODE_7);
3887 break;
3888 case KeyEvent.KEYCODE_9:
3889 nativeInstrumentReport();
3890 return true;
3891 }
3892 }

Alexandr Tereshchuk

unread,
Mar 3, 2012, 9:34:47 AM3/3/12
to phonegap
UP! It's critical. Because keyboard is not showing on HTC when NavDump
is disabled!

On Jan 27, 5:47 pm, Alexandr Tereshchuk <atereshc...@stanfy.com.ua>
wrote:
Reply all
Reply to author
Forward
0 new messages