protected void updateCookieStates(JsData jsData, boolean deviceCookieReceived) { CookieStates states = getCookieStates(); if (!deviceCookieReceived) { // There has been a full round trip with the client, so we know for // sure if cookies are supported at this point. We override // the previous value of NEW or RESTORED_FROM_* states.setPlainState(NOT_SUPPORTED); } if (jsData.getWebLocalStorageTest() != Boolean.TRUE) { states.setWebStorageState(NOT_SUPPORTED); } }