fix wrong type for old firefox, make current_url, document_title required