Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1AB9E7C3 for ; Wed, 28 Nov 2012 00:25:00 +0000 (UTC) Received: (qmail 60792 invoked by uid 500); 28 Nov 2012 00:25:00 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 60756 invoked by uid 500); 28 Nov 2012 00:25:00 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 60707 invoked by uid 500); 28 Nov 2012 00:25:00 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 60692 invoked by uid 99); 28 Nov 2012 00:25:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 00:25:00 +0000 Date: Wed, 28 Nov 2012 00:25:00 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <145629082.30449.1354062300291.JavaMail.jiratomcat@arcas> In-Reply-To: <483053254.13403.1353523918530.JavaMail.jiratomcat@arcas> Subject: [jira] [Comment Edited] (CB-1889) White-list exception enhancements for plugins MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505093#comment-13505093 ] Shazron Abdullah edited comment on CB-1889 at 11/28/12 12:24 AM: ----------------------------------------------------------------- Items 1 and 3 are implemented: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/b8c57f10 was (Author: shazron): Items 1 and 3 are implemented. > White-list exception enhancements for plugins > --------------------------------------------- > > Key: CB-1889 > URL: https://issues.apache.org/jira/browse/CB-1889 > Project: Apache Cordova > Issue Type: Improvement > Components: iOS > Reporter: Shazron Abdullah > Assignee: Shazron Abdullah > Fix For: 2.3.0 > > > See CB-1695 > 1. CDVViewController needs a UserAgent property that plugins can query, so they can set their NSURLRequest User-Agent to the same UserAgent, so they can take advantage of the white-list. Right now, any other network connection that is not part of the main Cordova UIWebView is excepted from the white-list with the changes in CB-1695. > 2. Have a way for plugins to query the whitelist before sending out requests > 3. The UA in (1) should be cached after being discovered (since it requires a costly UIWebView instantation the first time). Cache the iOS version as well, so that we invalidate the UA if the iOS version changes. Also, hook into locale change notifications, if a locale change happens, invalidate the cached UA value as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira