`pair_view.js` is loaded only when this line `this.childWindow = window.open(protocol + '//' + host + '/onpair.html',
 'pair_screen', 'attention');` get executed. Which means that we can make sure all the properties in the checks here is valid, aren't they?