зеркало из https://github.com/mozilla/gecko-dev.git
14 строки
344 B
JavaScript
14 строки
344 B
JavaScript
add_task(function* () {
|
|
let uri = getRootDirectory(gTestPath) + "bug453896_iframe.html";
|
|
|
|
yield BrowserTestUtils.withNewTab({
|
|
gBrowser,
|
|
url: uri
|
|
}, function*(browser) {
|
|
return ContentTask.spawn(browser, null, function* () {
|
|
var fake_window = { ok: ok };
|
|
content.wrappedJSObject.run(fake_window);
|
|
});
|
|
});
|
|
});
|