Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | /* Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | http://creativecommons.org/publicdomain/zero/1.0/ */ |
michael@0 | 3 | function whenNewWindowLoaded(aOptions, aCallback) { |
michael@0 | 4 | let win = OpenBrowserWindow(aOptions); |
michael@0 | 5 | win.addEventListener("load", function onLoad() { |
michael@0 | 6 | win.removeEventListener("load", onLoad, false); |
michael@0 | 7 | aCallback(win); |
michael@0 | 8 | }, false); |
michael@0 | 9 | } |