summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/siteIdentity/browser_mixed_passive_content_indicator.js
blob: 909764c597fbd1c6ef89de80c92630304685ab37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const TEST_URL =
  getRootDirectory(gTestPath).replace(
    "chrome://mochitests/content",
    "https://example.com"
  ) + "simple_mixed_passive.html";

add_task(async function test_mixed_passive_content_indicator() {
  await SpecialPowers.pushPrefEnv({
    set: [["security.mixed_content.upgrade_display_content", false]],
  });
  await BrowserTestUtils.withNewTab(TEST_URL, function () {
    is(
      document.getElementById("identity-box").className,
      "unknownIdentity mixedDisplayContent",
      "identity box has class name for mixed content"
    );
  });
});