Index: lib/windowObserver.js |
=================================================================== |
--- a/lib/windowObserver.js |
+++ b/lib/windowObserver.js |
@@ -35,12 +35,7 @@ |
this._listener = listener; |
this._when = when; |
- let e = Services.wm.getZOrderDOMWindowEnumerator(null, true); |
- if (!e.hasMoreElements()) |
- { |
- // On Linux the list returned will be empty, see bug 156333. Fall back to random order. |
- e = Services.wm.getEnumerator(null); |
- } |
+ let e = Services.ww.getWindowEnumerator(); |
Wladimir Palant
2013/09/09 08:04:22
You are reverting the change I made for https://bu
|
while (e.hasMoreElements()) |
{ |
let window = e.getNext().QueryInterface(Ci.nsIDOMWindow); |