Currently we just mainly consider the 'no open window case', partially 'no executing any script' case, will take other cases into consideration later.