function exposed to javascript to signal that a page unload event was fired . webdriver 's asynchronous script execution model does not permit new page loads . this method has public visibility for rhino and should never be called by code outside of rhino . concode_field_sep CountDownLatch latch concode_elem_sep boolean unloadDetected concode_elem_sep long timeoutMillis concode_elem_sep Object value concode_elem_sep HtmlPage page concode_elem_sep boolean isTimeout concode_field_sep Function createInjectedScriptFunction concode_elem_sep void callback concode_elem_sep Object execute concode_elem_sep void timeout concode_elem_sep Object waitForResult
void function ( ) { if ( latch . getCount ( ) > 0 ) { unloadDetected = true ; latch . countDown ( ) ; } }