[TIMOB-8267] Android: App crashes when reusing a WebView instance on an Activity window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-04T12:42:10.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | Android |
Labels | qe-and031912, qe-testadded, regression |
Reporter | Neha Chhabra |
Assignee | Marshall Culpepper |
Created | 2012-03-24T02:41:20.000+0000 |
Updated | 2012-04-04T12:42:10.000+0000 |
Description
Application crashes on reopening a web view button (Titanium.UI.WebView Acceptance TIMOB-4357)
Steps To Reproduce:
1. Launch app on Android device or emulator
2. Navigate to acceptance tab and run timob_4357
3. Press the open WebView button
4. Press the back hardware button
5. Press the open WebView button again.
Expected Result:
After Step 5: App should not crash
Actual Result:
After Step 5, the app crashes.
app.js
var win = Ti.UI.createWindow({
backgroundColor : 'black'
});
var button = Ti.UI.createButton({
title : 'Open WebView'
});
var browser = Ti.UI.createWebView();
var html = '<html><body><select><option value="Feedback">Feedback</option><option value="Bug">Bug</option></select></body></html>';
button.addEventListener('click', function() {
var w = Ti.UI.createWindow({
fullscreen : true
});
w.add(browser);
w.open();
browser.html = html;
});
win.add(button);
win.open();
Attachments
File | Date | Size |
---|---|---|
Crash_log.txt | 2012-03-24T02:41:20.000+0000 | 5480 |
error.png | 2012-03-24T02:41:20.000+0000 | 16584 |
motorola.png | 2012-03-24T02:41:20.000+0000 | 36708 |
What version of the Android emulator does this occur on?
Google API's Android 2.2
PR #1833 available for review.
Closing the bug. Verified the bug and no crash happens on reloading a webview instance and it opens correctly. Verified on: Titanium SDK: 2.0.0.v20120325213306 Titanium Studio: 2.0.0.201203262445 Device: Nexus One (V2.2.2)
Opening to edit labels.