<commit_before><html>
  <head><title>src property test</title>
    <script type="text/javascript" src="chrome_frame_tester_helpers.js">
    </script>
    <script type="text/javascript">
      function OnNavigationFailed() {
        onFailure("ChromeFrame_SrcTest", 1, "ChromeFrame Navigation failed");
      }

      var load_count = 2;

      function OnChromeFrameLoaded(url) {
        url = url.data;

        var chromeFrame = GetChromeFrame();
        var frame_url = chromeFrame.src;
        
        appendStatus("Loaded URL: " + url + " Frame url: " + frame_url);
        load_count--;

        if (load_count) {
          // For the first load, the URLs should match.
          if (frame_url != url) {
            onFailure("SrcProperty", 1, "Url: " + url);
          }
        } else {
          // Previous versions changed the frame URL when internal navigation
          // was performed. This does not match how iframes behave, and so we
          // report success only in the case that they continue to match, even
          // though the "internal" URL is different (and not visible) to the
          // external host.
          if (frame_url == url) {
            onFailure("SrcProperty", 1, "Url: " + url);
          } else {
            onSuccess("SrcProperty", 1);
          }
        }
      }

      function GetChromeFrame() {
        return window.document.ChromeFrame;
      }
    </script>
  </head>
  <body>
      <div id="statusPanel" style="border: 1px solid red; width: 100%">
      Test running....
      </div>

      <object id="ChromeFrame" width="500" height="500"
          codebase="http://www.google.com"
          classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
          <param name="src" value="src_property_frame1.html">
          <param name="onload" value="return OnChromeFrameLoaded(arguments[0]);">
          <param name="onloaderror" value="return OnNavigationFailed(arguments[0]);">
          <embed id="ChromeFramePlugin" width="500" height="500" name="ChromeFrame"
              src="src_property_frame1.html"
              type="application/chromeframe"
              onload="return OnChromeFrameLoaded(arguments[0]);"
              onloaderror="return OnNavigationFailed(arguments[0]);">
          </embed>
      </object>
      <p>Tests ChromeFrame Navigation</p>
  </body>
</html>
<commit_msg>Add more diagnostics to the SrcProperty test.<commit_after><html>
  <head><title>src property test</title>
    <script type="text/javascript" src="chrome_frame_tester_helpers.js">
    </script>
    <script type="text/javascript">
      function OnNavigationFailed() {
        onFailure("ChromeFrame_SrcTest", 1, "ChromeFrame Navigation failed");
      }

      var load_count = 2;

      function OnChromeFrameLoaded(url) {
        try {
          url = url.data;

          var chromeFrame = GetChromeFrame();
          var frame_url = chromeFrame.src;
          
          appendStatus("Loaded URL: " + url + " Frame url: " + frame_url);
          load_count--;

          if (load_count) {
            // For the first load, the URLs should match.
            if (frame_url != url) {
              onFailure("SrcProperty", 1, "Url: " + url);
            }
          } else {
            // Previous versions changed the frame URL when internal navigation
            // was performed. This does not match how iframes behave, and so we
            // report success only in the case that they continue to match, even
            // though the "internal" URL is different (and not visible) to the
            // external host.
            if (frame_url == url) {
              onFailure("SrcProperty", 1, "Url: " + url);
            } else {
              onSuccess("SrcProperty", 1);
            }
          }
        } catch (e) {
          onFailure("SrcProperty", 1, "OnChromeFrameLoaded: " + e.description);
        }
      }

      function GetChromeFrame() {
        return window.document.ChromeFrame;
      }
    </script>
  </head>
  <body>
      <div id="statusPanel" style="border: 1px solid red; width: 100%">
      Test running....
      </div>

      <object id="ChromeFrame" width="500" height="500"
          codebase="http://www.google.com"
          classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
          <param name="src" value="src_property_frame1.html">
          <param name="onload" value="return OnChromeFrameLoaded(arguments[0]);">
          <param name="onloaderror" value="return OnNavigationFailed(arguments[0]);">
          <embed id="ChromeFramePlugin" width="500" height="500" name="ChromeFrame"
              src="src_property_frame1.html"
              type="application/chromeframe"
              onload="return OnChromeFrameLoaded(arguments[0]);"
              onloaderror="return OnNavigationFailed(arguments[0]);">
          </embed>
      </object>
      <p>Tests ChromeFrame Navigation</p>
  </body>
</html>

{'fraction_non_alphanumeric': 0.1242122382598089, 'fraction_numerical': 0.019312868469201057, 'mean_word_length': 2.1762427372498387, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4930000', 'n_tokens_mistral': 1468, 'n_tokens_neox': 1386, 'n_words': 341}