{
"id": "88253",
"key": "TIMOB-8113",
"fields": {
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
},
"project": {
"id": "10153",
"key": "TIMOB",
"name": "Titanium SDK/CLI",
"projectCategory": {
"id": "10100",
"description": "Titanium and related SDKs used in application development",
"name": "Client"
}
},
"fixVersions": [
{
"id": "13271",
"description": "Release 2.1.0",
"name": "Release 2.1.0",
"archived": false,
"released": true,
"releaseDate": "2012-06-29"
},
{
"id": "13277",
"name": "Sprint 2012-08",
"archived": true,
"released": true,
"releaseDate": "2012-04-22"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2012-04-17T11:28:30.000+0000",
"created": "2012-03-20T11:25:42.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [
"SupportTeam",
"api",
"module_webview",
"qe-testadded"
],
"versions": [],
"issuelinks": [
{
"id": "40123",
"type": {
"id": "10003",
"name": "Relates",
"inward": "relates to",
"outward": "relates to"
},
"inwardIssue": {
"id": "134722",
"key": "TIDOC-1844",
"fields": {
"summary": "Documentation Request : onCreation method of Ti.UI.Webview ",
"status": {
"description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.",
"name": "Closed",
"id": "6",
"statusCategory": {
"id": 3,
"key": "done",
"colorName": "green",
"name": "Done"
}
},
"priority": {
"name": "High",
"id": "2"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
}
],
"assignee": {
"name": "joshroesslein",
"key": "joshroesslein",
"displayName": "Josh Roesslein",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2014-08-21T21:21:11.000+0000",
"status": {
"description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.",
"name": "Closed",
"id": "6",
"statusCategory": {
"id": 3,
"key": "done",
"colorName": "green",
"name": "Done"
}
},
"components": [
{
"id": "10202",
"name": "Android",
"description": "Android Platform"
}
],
"description": "*Code*\r\n* app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar webview = Titanium.UI.createWebView({ \r\n\turl: 'index.html'\r\n});\r\n\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code}\r\n\r\n* index.html\r\n{code}\r\nClick to load Google in a new window.\r\n
\r\nClick to load Google in the same window.\r\n{code}\r\n\r\n*Expected behavior*\r\nWhen you click on either of the two links, it should load up Google.\r\n\r\n*Actual behavior*\r\nWhat actually happens, is that the first link doesn't seem to do anything, only the second one seems to work.\r\n\r\n*Notes*\r\n-Only tested on a HTC Sensation and Samsung Galaxy S2, both giving me the same result.\r\n-Same result, whether I use the Rhino or V8 engine.\r\n-When testing the same code on the iOS simulator, both links seem to work fine.\r\n-The issue is 'target=\"_blank\"' without this, it seems to work fine.\r\n-HD ticket: http://support-admin.appcelerator.com/display/APP-257637",
"attachment": [],
"flagged": false,
"summary": "Android: Ti.UI.WebView doesn't seem to load pages that try to open a new window",
"creator": {
"name": "jyounus",
"key": "jyounus",
"displayName": "Junaid Younus",
"active": true,
"timeZone": "Europe/London"
},
"subtasks": [],
"reporter": {
"name": "jyounus",
"key": "jyounus",
"displayName": "Junaid Younus",
"active": true,
"timeZone": "Europe/London"
},
"environment": "Titanium SDK version: 1.7.5, 1.8.2, 2.0.0.v20120320111817\r\nJavascript Engine: Rhino & V8 \r\nPlatform & version: Android 2.3.x\r\nDevice Details: HTC Sensation, Samsung Galaxy S2\r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio version: 1.0.9.201202141208",
"comment": {
"comments": [
{
"id": "190820",
"author": {
"name": "joshroesslein",
"key": "joshroesslein",
"displayName": "Josh Roesslein",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Submitted PR [#1996|https://github.com/appcelerator/titanium_mobile/pull/1996] to resolve issue.\r\n\r\nThis fixes a new, currently undocumented API `onCreateWindow` callback.\r\nAlso it adds default behavior if this callback is not set which just opens a new activity\r\nwindow containing the new WebView instance.\r\n\r\nh3. WebView.onCreateWindow\r\n\r\n{code:JavaScript}\r\nvar win = Ti.UI.createWindow();\r\nvar webview = Ti.UI.createWebView({ url:'index.html' });\r\n\r\nwebview.onCreateWindow = function(e) {\r\n if (!e.isUserGesture) {\r\n return null;\r\n }\r\n \r\n var webWin = Ti.UI.createWindow({\r\n fullscreen: false\r\n });\r\n var newWebView = Ti.UI.createWebView();\r\n webWin.add(newWebView);\r\n webWin.open();\r\n \r\n return newWebView;\r\n};\r\n \r\nwin.add(webview);\r\n \r\nwin.open();\r\n{code}\r\n\r\nUse the same index.html in this ticket's description.\r\n\r\nNOTE: onCreateWindow is not currently public and shouldn't be used yet.\r\n This test case is purely for testing purposes.",
"updateAuthor": {
"name": "joshroesslein",
"key": "joshroesslein",
"displayName": "Josh Roesslein",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2012-04-12T16:38:15.000+0000",
"updated": "2012-04-12T16:39:57.000+0000"
},
{
"id": "191114",
"author": {
"name": "billdawson",
"key": "billdawson",
"displayName": "Bill Dawson",
"active": true,
"timeZone": "Europe/Berlin"
},
"body": "Re-opening because it looks like the change doesn't work in Rhino: http://pastie.org/3799021",
"updateAuthor": {
"name": "billdawson",
"key": "billdawson",
"displayName": "Bill Dawson",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2012-04-16T09:20:31.000+0000",
"updated": "2012-04-16T09:20:31.000+0000"
},
{
"id": "191152",
"author": {
"name": "joshroesslein",
"key": "joshroesslein",
"displayName": "Josh Roesslein",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "[PR #2013|https://github.com/appcelerator/titanium_mobile/pull/2013] sent to resolve Rhino issue.",
"updateAuthor": {
"name": "joshroesslein",
"key": "joshroesslein",
"displayName": "Josh Roesslein",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2012-04-16T12:31:11.000+0000",
"updated": "2012-04-16T12:31:11.000+0000"
},
{
"id": "199962",
"author": {
"name": "psingh",
"key": "psingh",
"displayName": "Payminder Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Titanium Studio: 2.1.0.201206221045\r\nMobile SDK: 2.1.0.v20120622174154\r\nOS: X Lion\r\nDevice: Samsung Galaxy \r\n\r\nFixed\r\n\r\nBoth hyperlinks are working and providing the expected result by opening the Google.com",
"updateAuthor": {
"name": "psingh",
"key": "psingh",
"displayName": "Payminder Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2012-06-23T16:07:40.000+0000",
"updated": "2012-06-23T16:07:40.000+0000"
}
],
"maxResults": 5,
"total": 5,
"startAt": 0
}
}
}