mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-13 23:17:57 +00:00
18 lines
537 B
JavaScript
18 lines
537 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
let tab = gBrowser.selectedTab = gBrowser.addTab(
|
|
"http://mochi.test: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);
|
|
}
|