When calling let a = window.open("https://bbc.com") the a.document is there (throws a cross origin error which is expected).
When calling let b = window.open("https://facebook.com") the b.document is undefined (see the attached image).
Why's that?