зеркало из https://github.com/mozilla/pjs.git
Bug 612448 - Protect the progress listener object from being garbage collected too soon which could cause a test timeout; r=roc
This commit is contained in:
Родитель
9ace3a2dfe
Коммит
5bd3ae6404
|
@ -52,10 +52,14 @@
|
|||
var browser1 = document.getElementById('browser1');
|
||||
var browser2 = document.getElementById('browser2');
|
||||
|
||||
var progressListener1, progressListener2;
|
||||
|
||||
function setup() {
|
||||
browser1.addProgressListener(new ProgressListener(), nsIWebProgress.NOTIFY_STATE_WINDOW);
|
||||
progressListener1 = new ProgressListener();
|
||||
browser1.addProgressListener(progressListener1, nsIWebProgress.NOTIFY_STATE_WINDOW);
|
||||
browser1.loadURI(kURI, null, null);
|
||||
browser2.addProgressListener(new ProgressListener(), nsIWebProgress.NOTIFY_STATE_WINDOW);
|
||||
progressListener2 = new ProgressListener();
|
||||
browser2.addProgressListener(progressListener2, nsIWebProgress.NOTIFY_STATE_WINDOW);
|
||||
browser2.loadURI(kURI, null, null);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче