add check for autofill mode before using webkit