summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/browser_bug479408.js
blob: f616fa0ee40b16847240c8dc40e3a97363cdf503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function test() {
  waitForExplicitFinish();
  let tab = (gBrowser.selectedTab = BrowserTestUtils.addTab(
    gBrowser,
    "http://mochi.test:8888/browser/browser/base/content/test/general/browser_bug479408_sample.html"
  ));

  BrowserTestUtils.waitForContentEvent(
    gBrowser.selectedBrowser,
    "DOMLinkAdded",
    true
  ).then(() => {
    executeSoon(function () {
      ok(
        !tab.linkedBrowser.engines,
        "the subframe's search engine wasn't detected"
      );

      gBrowser.removeTab(tab);
      finish();
    });
  });
}