mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
18 lines
536 B
JavaScript
18 lines
536 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
let tab = gBrowser.selectedTab = gBrowser.addTab(
|
|
"http://localhost:8888/browser/browser/base/content/test/browser_bug479408_sample.html");
|
|
|
|
gBrowser.addEventListener("DOMLinkAdded", function(aEvent) {
|
|
gBrowser.removeEventListener("DOMLinkAdded", arguments.callee, true);
|
|
|
|
executeSoon(function() {
|
|
ok(!tab.linkedBrowser.engines,
|
|
"the subframe's search engine wasn't detected");
|
|
|
|
gBrowser.removeTab(tab);
|
|
finish();
|
|
});
|
|
}, true);
|
|
}
|