locked
WebView control crashes when I navigate URL http://www.youtube.com?

    Question

  • When I navigate to http://www.youtube.com  WebView Control crashes.   any help please.

    I see it is crashing near flash plug-in detection.   I just inserted a webview and tried to navigate to youtube.com

     RichMediaCore_69_11.prototype._getIeWindowsFlashPluginVersion = function() {
      var versionStr = "";
      var flashVersion = 0;
      var versionArray = new Array();
      var tempArray = new Array();
      var lineFeed = "\r\n";
      var defSwfVersion = 0;
      var str = 'swfVersion = '+ defSwfVersion + lineFeed +
        'mtfIsOk = ' + false + lineFeed +
        'On Error Resume Next' + lineFeed +
        'set motifSwfObject = CreateObject(\"ShockwaveFlash.ShockwaveFlash\")' + lineFeed +
        'mtfIsOk = IsObject(motifSwfObject)' + lineFeed +
        'if mtfIsOk = true then' + lineFeed +
        'swfVersion = motifSwfObject.GetVariable(\"$version\")' + lineFeed +
        'end if' + lineFeed + '';
      window.execScript(str, "VBScript");
      if(mtfIsOk) {
        versionStr = swfVersion;
        tempArray = versionStr.split(" ");

     

    Thursday, July 05, 2012 6:33 AM

All replies

  • Hello,

    I tested the WebView control. If you disable script debugging(Internet Explorer) in Internet Options, the control will work fine.

    I think this is caused by the script error form youtube.

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Friday, July 06, 2012 7:36 AM
  • Jesse,

    Problem is not script debugging.  websites try to deternime browser version before loading the content. in our case since we cannot specify UserAgent  attributes for WebView control - youtube is unable to determine browser version and hense its standard verification scripts are failing.   Capability for us to specify UserAgent so that websites can determine that we are running IE10 under Metro Environment and execute well. 

    In this eample,  if i browse same page in metroIE it is loading HTML5 content rather than flash content but in my case it is trying to load flash content and failing.  If wesite had a problem, it should have failed with MetroIE as well correct?

    Friday, July 06, 2012 3:17 PM