void () { if (myHrefProcessingRequestHandler != null) return; var hrefProcessingRequestHandler = new CefRequestHandlerAdapter() { @Override public boolean onBeforeBrowse(CefBrowser browser, CefFrame frame, CefRequest request, boolean user_gesture, boolean is_redirect) { if (user_gesture) { BrowserUtil.open(request.getURL()); return true; } return false; } }; this.myCefClient.addRequestHandler(hrefProcessingRequestHandler, myCefBrowser); myHrefProcessingRequestHandler = hrefProcessingRequestHandler; }