fixed scan window chrM bug, fixed NS_NOT_AVAILABLE_ERROR under firefox