2014-Q1 : Bugs in Chrome & Safari ?

7 posts, 0 answers
  1. Chris
    Chris avatar
    58 posts
    Member since:
    Feb 2012

    Posted 27 Apr 2014 Link to this post

    Hi There,

    I've just upgraded my site to the latest version and it appears there is some bug with Chrome & Safari. It works fine with Firefox, didn't try with IE (but really, is there anyone out there still using IE ? :) )
    I didn't notice anything with the previous version, which I think was 2013 Q3.

    Roughly, what I'm doing is loading a usercontrol containing my Async Upload control through an AjaxManager. Pretty basic.
    As soon as my control is loaded, here's what I get in my console:

    01.Uncaught ReferenceError: Invalid left-hand side in assignment VM936:148
    02.(anonymous function) VM936:148
    03.Telerik.Web.UI.RadProgressManager._createSafariIFrame Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:92
    04.Telerik.Web.UI.RadProgressManager._createSafariPoller Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:67
    05.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    06.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    07.Sys._Application.raiseLoad Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    08.Sys.WebForms.PageRequestManager._pageLoaded Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
    09.Sys.WebForms.PageRequestManager._scriptsLoadComplete Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
    10.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    11.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    12.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    13.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    14.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    15.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    16.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    17.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    18.Sys._ScriptLoader._nextSession Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    19.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    20.Sys._ScriptLoader._scriptLoadedHandler Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    21.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    22.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6

    And :

    01.Uncaught TypeError: Cannot set property '_primaryProgressBarElement' of undefined Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:1440
    02.Telerik.Web.UI.RadProgressArea._setupSafariProgressAreaControls Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:1440
    03.Telerik.Web.UI.RadProgressManager._setupSafariProgressAreas Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:73
    04.Telerik.Web.UI.RadProgressManager._createSafariIFrame Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:94
    05.Telerik.Web.UI.RadProgressManager._createSafariPoller Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:67
    06.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    07.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    08.Sys._Application.raiseLoad Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    09.Sys.WebForms.PageRequestManager._pageLoaded Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
    10.Sys.WebForms.PageRequestManager._scriptsLoadComplete Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
    11.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    12.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    13.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    14.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    15.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    16.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    17.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    18.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    19.Sys._ScriptLoader._nextSession Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    20.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    21.Sys._ScriptLoader._scriptLoadedHandler Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    22.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
    23.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6

    The second one is probably more useful, therefore I clicked on it and it brought me there on the row 1440 of "Telerik.Web.UI.Upload.RadProgressManager.js":

    },_setupSafariProgressAreaControls:function(){if($telerik.RadUpload_isIFrameProgress){this._getSafariProgressArea()._primaryProgressBarElement=this._primaryProgressBarElement;

    This 'bug' does not prevent me to upload any file but then none of my handlers are being called except for the HttpHandlerUrl defined on the control, hence I can't use it.

    Hope this is useful and will help you in your investigation.

    Cheers,

    Chris
  2. Chris
    Chris avatar
    58 posts
    Member since:
    Feb 2012

    Posted 28 Apr 2014 in reply to Chris Link to this post

    No one ? This is pretty annoying as it prevents me to release my site.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 30 Apr 2014 Link to this post

    Hello Chris,

    I would like to clarify that recently we modified the some of the RadProgressManager logic  that is related Google chrome and Safari browsers. Please try to update with our latest internal build and let us know how that worked.

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Chris
    Chris avatar
    58 posts
    Member since:
    Feb 2012

    Posted 05 May 2014 in reply to Boyan Dimitrov Link to this post

    Hi Boyan.

    Thanks for your answer and suggestion to use the latest InBuild. I did upgrade my project using the version 425_Dev_HotFix and it solved this issue for Chrome and Safari. Thank you for this. Although I don't really like using that kind of patch for production environment...

    Other than this, it did create another issue, still for Chrome and Safari (works well in FF) : The Uploaded file content type is null when uploading a simple zip file. Am I missing something ? It does this as well for MSI files.

    Would you have any idea ?

    Cheers,

    Chris
  6. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 May 2014 in reply to Chris Link to this post

    Hi Chris, 

    Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end. Please provide your code if it doesn't help.

    ASPX:
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" OnFileUploaded="RadAsyncUpload1_FileUploaded">
    </telerik:RadAsyncUpload>
    <telerik:RadButton ID="RadButton1" runat="server" Text="Upload">
    </telerik:RadButton>

    C#:
    protected void RadAsyncUpload1_FileUploaded(object sender, Telerik.Web.UI.FileUploadedEventArgs e)
    {
        string contentType = e.File.ContentType;
    }

    Thanks,
    Princy.
  7. IT
    IT avatar
    26 posts
    Member since:
    Dec 2008

    Posted 21 May 2014 Link to this post

    Just wanted to confirm i've also got the same bug

    e.File.ContentType works fine in Firefox but not so in Chrome

  8. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 26 May 2014 Link to this post

    Hello,

    The issue is caused by the fact that Chrome browser does not set type to the zip files uploaded. The other files have the type assigned correctly. This field is used by RadAsyncUpload to set the ContentType. You can observe the issue event with     <input type="file" /> . If you upload a file and inspect the element you can see that files[0].type element is empty string in chrome and correct type in FireFox.

    Hope this will explain the issue.


    Regards,
    Plamen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017