<def-group>
  <definition class="compliance" id="firefox_preferences-non-secure_page_warning"  version="1">
    <metadata>
      <title>Enable Non-Secure Page Warnings</title>
      <affected family="unix">
        <platform>Mozilla Firefox</platform>
      </affected>
      <description>Firefox is not configured to provide warnings when a user switches
      from a secure (SSL-enabled) to a non-secure page.</description>
      <reference source="galford" ref_id="20150424" ref_url="test_attestation"/>
    </metadata>
    <criteria>
      <criterion comment="non-secure page warning configured" test_ref="test_firefox_preferences-non-secure_page_warning" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="Check for non-secure page warning configured" id="test_firefox_preferences-non-secure_page_warning" version="1">
    <ind:object object_ref="object_firefox_preferences-non-secure_page_warning" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_firefox_preferences-non-secure_page_warning" version="1">
    <ind:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ind:path>
    <ind:filename operation="pattern match">^.*\.cfg$</ind:filename>
    <ind:pattern operation="pattern match">^lockPref\("security.warn_leaving_secure",[\s]+true\);$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
