Correctly get not popup window on Nightly:
now window.getTopWin() (chrome://browser/content/utilityOverlay.js) returns window with the same privacy, but we may use any window, so will use resource:///modules/RecentWindow.jsm directly