tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

browser_mixed_passive_content_indicator.js (571B)


      1 const TEST_URL =
      2  getRootDirectory(gTestPath).replace(
      3    "chrome://mochitests/content",
      4    "https://example.com"
      5  ) + "simple_mixed_passive.html";
      6 
      7 add_task(async function test_mixed_passive_content_indicator() {
      8  await SpecialPowers.pushPrefEnv({
      9    set: [["security.mixed_content.upgrade_display_content", false]],
     10  });
     11  await BrowserTestUtils.withNewTab(TEST_URL, function () {
     12    is(
     13      document.getElementById("identity-box").className,
     14      "unknownIdentity mixedDisplayContent",
     15      "identity box has class name for mixed content"
     16    );
     17  });
     18 });