<def-group>
  <definition class="compliance" id="firefox_preferences-cookies_clear"  version="1">
    <metadata>
      <title>Clear Cookies And Other Data When Firefox Closes</title>
      <affected family="unix">
        <platform>Mozilla Firefox</platform>
      </affected>
      <description>Set browser preferences to perform a Clear Private Data
      operation when closing the browser in order to clear cookies and other
      data installed by websites visited during the session.</description>
      <reference source="galford" ref_id="20150424" ref_url="test_attestation"/>
    </metadata>
    <criteria>
      <criterion comment="enabled sanitizeOnShutdown" test_ref="test_firefox_preferences-cookies_shutdown_sanitize" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="Check for sanitizeOnShutdown enabled" id="test_firefox_preferences-cookies_shutdown_sanitize" version="1">
    <ind:object object_ref="object_firefox_preferences-cookies_shutdown_sanitize" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_firefox_preferences-cookies_shutdown_sanitize" 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\("privacy.sanitize.sanitizeOnShutdown",[\s]+true\);$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
