mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 612625 - intermittent orange: test_bug607584.xul continues executing after we've left the page, mostly showing up in test_bug171813.html; r=roc a=test-fix
This commit is contained in:
parent
3864825ddd
commit
f6d6332349
@ -71,6 +71,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=607584
|
||||
firstP.id == "foo" &&
|
||||
lastP.id == "";
|
||||
ok(isOk, "CR in a paragraph with an ID should not create two paragraphs of same ID");
|
||||
progress.removeProgressListener(this);
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
@ -99,11 +100,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=607584
|
||||
mEditor: null
|
||||
};
|
||||
|
||||
var progress;
|
||||
|
||||
function runTest() {
|
||||
var newEditorElement = document.getElementById("editor");
|
||||
newEditorElement.makeEditable("html", true);
|
||||
var docShell = newEditorElement.boxObject.QueryInterface(Components.interfaces.nsIEditorBoxObject).docShell;
|
||||
var progress = docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebProgress);
|
||||
progress = docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebProgress);
|
||||
var progressListener = new EditorContentListener(newEditorElement);
|
||||
progress.addProgressListener(progressListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL);
|
||||
newEditorElement.setAttribute("src", "about:blank");
|
||||
|
Loading…
Reference in New Issue
Block a user