Check only window.document in order to confirm this environment supports cookie. bugid:110282