Problem Description
When a webview is closed which was filled by using setHTML, it shows errors in the console
Test case
webview = Ti.UI.createWebView();
self.add(webview);
self.showArticle = function(html) {
webview.setHtml("<p>hi</p>");
};
Extra info (error message)
[ERROR] Couldn't determine the proper encoding. Make sure this file: LucepediAPP.app is UTF-8 encoded.
[ERROR] Error loading file: /Users/ncdegroot/Library/Application Support/iPhone Simulator/6.1/Applications/F751D4EE-E3B7-4823-B3F3-F8A76ED38238/LucepediAPP.app. Message was: Error Domain=NSCocoaErrorDomain Code=257 "The operation couldn’t be completed. (Cocoa error 257.)" UserInfo=0xae690e0 {NSFilePath=/Users/ncdegroot/Library/Application Support/iPhone Simulator/6.1/Applications/F751D4EE-E3B7-4823-B3F3-F8A76ED38238/LucepediAPP.app, NSUnderlyingError=0xae69140 "The operation couldn’t be completed. Permission deni
Hello, as additional comment, we have seen this bug with other customers' environments. Best, Mauro
The error occurs after the first close of the window (back button). After a code review and retesting I discovered the cause. Closing the window prevents reopening the webview error free because the containing window has to be created again. In my case the webview was recreated on reopening, but not the containing window. By moving
inside the eventlistener that opens the window, the error disappears.
I think this issues can be marked as resolved, programmer error after all.
Resolving as invalid based on customer feedback.
Closing ticket as invalid with reference to the above comments.