Log opened windows in waitForWindow() test support function

This commit is contained in:
Dan Stillman 2016-09-06 18:02:54 -04:00
parent 474420620e
commit 08b62f41e0

View file

@ -68,6 +68,7 @@ function waitForWindow(uri, callback) {
Components.utils.import("resource://gre/modules/Services.jsm");
var loadobserver = function(ev) {
ev.originalTarget.removeEventListener("load", loadobserver, false);
Zotero.debug("Window opened: " + ev.target.location.href);
if(ev.target.location.href == uri) {
Services.ww.unregisterNotification(winobserver);
var win = ev.target.docShell