summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/browser_bug479408.js
blob: be9f1439a644fa4df4d3f2025299588fc915f76c (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();
    });
  });
}