mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00: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);
|
|
}
|