browser_bug479408.js
Go to the documentation of this file.
1 function test() {
3  let tab = gBrowser.selectedTab = gBrowser.addTab(
4  "http://localhost:8888/browser/browser/base/content/test/browser_bug479408_sample.html");
5 
6  gBrowser.addEventListener("DOMLinkAdded", function(aEvent) {
7  gBrowser.removeEventListener("DOMLinkAdded", arguments.callee, true);
8 
9  executeSoon(function() {
10  ok(!tab.linkedBrowser.engines,
11  "the subframe's search engine wasn't detected");
12 
13  gBrowser.removeTab(tab);
14  finish();
15  });
16  }, true);
17 }
function test()
var tab
waitForExplicitFinish()
return!aWindow arguments!aWindow arguments[0]