windows.on('open') doesn't catch new tabs/pages made with a target set.
windows.on('open')
Try opening this link in a new tab, and then by clicking on it, and compare the output from the extension.