<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");
      }

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

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

      function GetChromeFrame() {
        return window.document.ChromeFrame;
      }

    </script>
  </head>
  <body>
      <div id="statusPanel" style="border: 1px solid red; width: 100%">
      Test running....
      </div>
      <span id="ChromeFrameSpan"></span>
      <script type="text/javascript">
insertControl(
    "ChromeFrameSpan",
    { "src": "src_property_frame1.html",
      "eventHandlers": {
        "onload": "return OnChromeFrameLoaded();",
        "onloaderror": "return OnNavigationFailed(arguments[0]);"
      }
    });
      </script>
      <p>Tests ChromeFrame Navigation</p>
  </body>
</html>

<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");
      }

      function OnChromeFrameLoaded(url) {
        try {
          url = url.data;
          var chromeFrame = GetChromeFrame();
          var frame_url = chromeFrame.src;
          appendStatus("Loaded URL: " + url + " Frame url: " + frame_url);
        }
        catch (err) {
          onFailure("ChromeFrame_SrcTest", 2, "OnChromeFrameLoaded failed.");
        }
      }

      function GetChromeFrame() {
        return window.document.ChromeFrame;
      }

    </script>
  </head>
  <body>
      <div id="statusPanel" style="border: 1px solid red; width: 100%">
      Test running....
      </div>
      <span id="ChromeFrameSpan"></span>
      <script type="text/javascript">
insertControl(
    "ChromeFrameSpan",
    { "src": "src_property_frame1.html",
      "eventHandlers": {
        "onload": "return OnChromeFrameLoaded(arguments[0]);",
        "onloaderror": "return OnNavigationFailed(arguments[0]);"
      }
    });
      </script>
      <p>Tests ChromeFrame Navigation</p>
  </body>
</html>

Fix JS error in ChromeFrameTestWithWebServer.FLAKY_WidgetModeIE_SrcProperty that could result in an IE browser hang on a JS error dialog.
Fix JS error in ChromeFrameTestWithWebServer.FLAKY_WidgetModeIE_SrcProperty that could result in an IE browser hang on a JS error dialog.

BUG=111384
TEST=chrome_frame_tests.exe

Review URL: https://chromiumcodereview.appspot.com/9290026

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@119245 0039d316-1c4b-4281-b951-d872f2087c98
