Bug 34779 - Webpage that loads JQuery/JQM and contains an iFrame returns Failure when loaded in an iOS WebView
Summary: Webpage that loads JQuery/JQM and contains an iFrame returns Failure when loa...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.5.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-10-12 16:18 UTC by christine.blanda
Modified: 2016-04-13 18:38 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

HTML test file (866 bytes, text/html)
2015-10-12 16:18 UTC, christine.blanda
Test Forms App (238.08 KB, application/x-zip-compressed)
2015-10-12 16:22 UTC, christine.blanda

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description christine.blanda 2015-10-12 16:18:35 UTC
Created attachment 13291 [details]
HTML test file
Comment 1 christine.blanda 2015-10-12 16:22:20 UTC
Created attachment 13292 [details]
Test Forms App
Comment 2 christine.blanda 2015-10-12 16:24:44 UTC
Put the html file on a test server.  In the app, update the targetUrl in Webpage.cs to point to your copy of the file.  Note that the alert, which displays the EventArgs.Result, displays Failure.  Edit the html file and remove the JQuery/JQM lines, run the app again, and the alert will report Success.
Comment 3 christine.blanda 2015-10-13 08:15:11 UTC
Found this information, not sure if this is causing the issue:

This is a known bug with the official Chromecast JavaScript library. Instead of failing silently, it dumps these error messages in all non-Chrome browsers as well as Chrome browsers where the Chromecast extension isn't present.

The Chromecast team have indicated they won't fix this bug.

If you are a developer shipping with this library, you can't do anything about it according to Chromecast team. You can only inform users to ignore the errors. (I believe Chromecast team is not entirely correct as the library could, at the least, avoid requesting the extension scipt if the browser is not Chrome. And I suspect it could be possible to suppress the error even if it is Chrome, but haven't tried anything.)

It's not a bug in your code or the browser's code. It's the JavaScript code inside the YouTube iframe polls for the extensions it could interoperate with in case they were installed (likely to determine if the extension is installed).

Look at the source of www-embed-player.js (loaded from s.ytimg.com, it's YouTube static files CDN). You'll find the following:

function Wj(a){return"chrome-extension://"+a+"/cast_sender.js"}
Comment 4 christine.blanda 2015-12-02 21:27:50 UTC
Any update on this?
Comment 5 Jason Smith [MSFT] 2016-04-13 18:38:45 UTC
This is not an issue with Xamarin.Forms and wont be fixed in Forms.