<def-group>
  <definition class="compliance" id="firefox_preferences-javascript_window_changes"  version="1">
    <metadata>
      <title>Disable JavaScript's Raise Or Lower Windows Capability</title>
      <affected family="unix">
        <platform>Mozilla Firefox</platform>
      </affected>
      <description>Firefox should be configured to not allow JavaScript to
      raise or lower windows.</description>
      <reference source="galford" ref_id="20150424" ref_url="test_attestation"/>
    </metadata>
    <criteria>
      <criterion comment="raise or lower windows disabled" test_ref="test_firefox_preferences-javascript_window_changes" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="raise or lower windows is disabled" id="test_firefox_preferences-javascript_window_changes" version="1">
    <ind:object object_ref="object_firefox_preferences-javascript_window_changes" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_firefox_preferences-javascript_window_changes" 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\("dom.disable_window_flip",[\s]+true\);$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object> 
</def-group>
