Integrate suggestion from review to improve consistency with existing code.
2 function whenNewWindowLoaded(aOptions, aCallback) {
3 let win = OpenBrowserWindow(aOptions);
4 win.addEventListener("load", function onLoad() {
5 win.removeEventListener("load", onLoad, false);