/** This method is called by WebCore to check whether application wants to hijack url loading */ public boolean handleUrl(String url) { if (mLoadInitFromJava == true) { return false; } if (mCallbackProxy.shouldOverrideUrlLoading(url)) { // if the url is hijacked, reset the state of the BrowserFrame didFirstLayout(); return true; } else { return false; } }