mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
25 lines
623 B
JavaScript
25 lines
623 B
JavaScript
var listener = {
|
|
handleEvent : function(e) {
|
|
if (e.target == theBrowser.contentDocument)
|
|
doTest();
|
|
}
|
|
}
|
|
|
|
var theTab;
|
|
var theBrowser;
|
|
|
|
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
theTab = gBrowser.addTab();
|
|
theBrowser = gBrowser.getBrowserForTab(theTab);
|
|
theBrowser.addEventListener("load", listener, true);
|
|
theBrowser.contentWindow.location = "chrome://mochikit/content/browser/layout/style/test/bug453896_iframe.html";
|
|
}
|
|
|
|
function doTest() {
|
|
var fake_window = { ok: ok, SimpleTest: { finish: finish } };
|
|
theBrowser.contentWindow.wrappedJSObject.run(fake_window);
|
|
gBrowser.removeTab(theTab);
|
|
}
|