Log opened windows in waitForWindow() test support function
This commit is contained in:
parent
474420620e
commit
08b62f41e0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue