Support for https://localhost on Android (for ICS and above)

Perfect then. :)

On Friday, August 8, 2014, Wolfgang Mathurin <notifications@github.com>
wrote:

> In
> libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/sfhybrid/SalesforceIceCreamWebViewClient.java:
>
> > +    	if (response != null) {
> > +    		return response;
> > +    	}
> > +
> > +    	// Not a localhost request
> > +		Uri origUri = Uri.parse(url);
> > +		if (!origUri.getHost().equals("localhost")) {
> > +			return null;
> > +		}
> > +			
> > +		// Localhost request
> > +		try {
> > +			String localPath = WWW_DIR + origUri.getPath();
> > +			// Trying to access file outside assets/www
> > +			if (!isFileUnder(localPath, WWW_DIR)) {
> > +				throw new IOException("Trying to access file outside assets/www");
>
> The exception is caught just below and a 404 response (web response with
> null body) is returned.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/602/files#r16023314>
> .
>