Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1905] Setting a blob to a webviews data property causes an error

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:05:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M06
ComponentsiOS
Labelsdefect, ios, iphone, release-1.6.0, webview
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T03:05:13.000+0000
Updated2017-03-02T19:01:26.000+0000

Description

When fetching an image and using the blob of the image set to the data property of a webview causes the following error:

[ERROR] Error loading: , Error: Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo=0x7e40790 {NSErrorFailingURLKey=about:blank, NSErrorFailingURLStringKey=about:blank, NSLocalizedDescription=Frame load interrupted}

see this ticket for code:
http://developer.appcelerator.com/helpdesk/view/42211">http://developer.appcelerator.com/helpdesk/view/42211

happens on iOS 4 with latest titanium sdk (1.4.2)

Comments

  1. sand (at gizmolab) 2011-04-15

    do I need (can I get?) permission to access the help desk ticket:

    http://developer.appcelerator.com/helpdesk/view/42211">http://developer.appcelerator.com/helpdesk/view/42211

  2. Chris Reed 2011-04-15

    As creator and owner of that ticket, I'm afraid not.

    That ticket is private, as it contains confidential information.

    rgds,
    Chris

  3. Ralf Pfeiffer 2011-04-15

    This was assigned to Jonathan Sand.

    Please manage the pull from Jonathan, or ask steve to do it.

  4. Ralf Pfeiffer 2011-04-15

    I confirmed that the sample provided in the HD ticket:

    1. has an HTTPS URL that does not have a username and password that is valid - even when using a Web browser to login directly
    2. When I choose a HTTPS URL, and specify a correct user:pass the sample works fine for me.

    The frameloadinterruped.zip in the HD ticket also doesn't use a WebView, so part of the description of the this does not jive with the sample.

    I am going to place this bug in needs-more-info, and suggest we close it if we don't get a repro case from the customer.

  5. Ralf Pfeiffer 2011-04-15

    I believe this should be closed.

  6. Chris Reed 2011-04-15

    Hi Ralf,

    The credentials provided should now work, if you can check and confirm.

    In win1.js in the example there should be the following lines 15 & 16:

       var webView = Ti.UI.createWebView({data:request.responseData});
       Titanium.UI.currentWindow.add(webView);
       

    which should take the blob from the response body, populate the webView and display in the window. Please advise if this is not the correct syntax or these lines are not in the code you see.

    Kind Rgds,
    Chris.

  7. Lee Morris 2017-03-02

    Closing as invalid.

JSON Source