Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12803] 3rd party cookies enable issue in WebView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
LabelsModule, WebView, iOS, mobilesdk
ReporterAshish Nigam
AssigneeUnknown
Created2013-02-21T08:44:08.000+0000
Updated2018-02-28T20:03:38.000+0000

Description

We have noticed that third party cookies are not allowed in WebViews for iOS 5.1+. To reproduce this issue create a new WebView and set the URL to http://m.na.se/Default.aspx?pageid=1179 this should show an ad, but just shows a blank window. Testing the same URL in the browser (both Safari on PC and iOS works, given that cookies are allowed). Attached is the wanted result as a screenshot from the browser. According to http://stackoverflow.com/questions/14448373/3rd-party-cookies-in-an-ios6-uiwebview this behaviour has changed as of iOS 6 but we can reproduce it in iOS 5 too.
var win1 = Ti.UI.createWindow({
	backgroundColor : "white"
});

var webVi = Ti.UI.createWebView({
	top:100,
	height:Ti.UI.SIZE,
	width:Ti.UI.SIZE,
	left:10,
	url:"http://m.na.se/Default.aspx?pageid=1179"
});

win1.add(webVi);
win1.open();

Attachments

FileDateSize
expected_ad.png2013-02-21T08:44:09.000+0000219150

Comments

No comments

JSON Source