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 CFB6CDC85 for ; Fri, 23 Nov 2012 03:22:12 +0000 (UTC) Received: (qmail 124 invoked by uid 500); 23 Nov 2012 03:22:07 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 99724 invoked by uid 500); 23 Nov 2012 03:22:07 -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 99641 invoked by uid 99); 23 Nov 2012 03:22:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2012 03:22:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of agrieve@google.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2012 03:21:55 +0000 Received: by mail-ob0-f175.google.com with SMTP id vb8so8321444obc.6 for ; Thu, 22 Nov 2012 19:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=4wYxIzIUxv0V6PpDHRTLz7kOAoev2PorbOW5FkuXeNQ=; b=mdzjl1hsthg+VakeCwUCAil3QhPu4SypIj1gxIvB9TGTIib9Er/3n1F8tMYLJsWTvx p29e9DL28lGvGCKRNOrxOgf5yvxU7qUjpKBBxsIQv0oIfNAGiixYwJJM0fO3OVmNQ73o VZtCBHNB3fsmsqlkvEHkx+lPyeG7VJqVyHSlEuW0SL315LbXbo8pCAq4x2Hi8qBVNgD7 6JlkgNPlKk3N5g35GXqlN39sgwbSTgk1FltdIIaEs95WzwIR61qJbL2LKCw9DQx70MHn w1p3Bj2wQuoJNM0Zwl9+5PZbtL26OCjmrDl4+OKgSExeVNoifPQtVrj9XnDi7jomjEjC QRyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:x-gm-message-state; bh=4wYxIzIUxv0V6PpDHRTLz7kOAoev2PorbOW5FkuXeNQ=; b=BKbDpKg24yvntFj2CPhDSgbxord5tT152XAZPBl/Po0NeRQ0m8PCiIrnCX4olarT5S SG6m4SMvsh+lZCQ6CqbPBeinsVEZBWppdir/0JFk+mMWlKAscveyv4A45JdEOOaz5TIf PYqwH642AUCxaIDcCAEnfVyRMG6P3Q6VjXY6axjoVkj25XmlmvtdGh0qhsXjtUZWEmJL h2pWd0inIvK0uYGOKemc0YBrxb0mGZRnnwrSrHiJ4MYfrWmofBVNlloZ7ZDeQQ+BVlRy h1RhgLWeuTikZczTCTqUUXGmzhEHMUuX/OT9FI9L4i4HWKRb9jGX0wYfnEIjg0e3O989 HCsw== Received: by 10.60.154.231 with SMTP id vr7mr1794920oeb.119.1353640894961; Thu, 22 Nov 2012 19:21:34 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.138.5 with HTTP; Thu, 22 Nov 2012 19:21:14 -0800 (PST) From: Andrew Grieve Date: Thu, 22 Nov 2012 22:21:14 -0500 X-Google-Sender-Auth: FKL62voPXUU-NcCCY7dO21icOvI Message-ID: Subject: iOS Changes to InAppBrowser To: Shazron Abdullah Cc: dev Content-Type: multipart/alternative; boundary=bcaec550b6f6b2986104cf211405 X-Gm-Message-State: ALoCoQm2RnR9ivBMOEPzfJWaODa84qHer0d2NHSfeaYIJqHHDviw703FhlBB8lrHjx7jX1vu4xa3xfw6G61WxmYXKWZDmXBTpC8+uXD8HuitrzF+G0PIaYnVYnkPExlVuwH0VCz5mLmfEzIp/bFrFINmhYenwmeuoKbK8RmHfWOpQVPBWZFUWHvDrVqe0+ezxKhC1dxBOG74 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec550b6f6b2986104cf211405 Content-Type: text/plain; charset=ISO-8859-1 Just pushed a few. Let me know if you have concerns about any of them. 1. I changed the User-Agent from appending a GUID to appending the VC's memory location I was hoping this would let me get rid of the vc header field in the bridge all together, but it turns out that the User-Agent isn't being sent for all requests. (Maybe because they are file:// requests?). Anyways, it still gets rid of having two sets in the URLProtocol, and now the JS gets the value from the UA instead of cordova.iOSVCAddr 2. Added a helper to InvokedCommand for getting arguments. There was a bug in InAppBrowser with NSNull vs nil, which I've run into many times before, so it pushed me over the edge! Makes a lot of sense I think though, to have such a helper method. I'll probably update other plugins to use it instead of checking NSNull themselves 3. I made InAppBrowser's UA the default UA instead of having a GUID appended to it. I don't think a GUID in this case makes a difference since we're not registering them with the URIProtocol, but if you had a use in mind we can just roll back that commit. Andrew --bcaec550b6f6b2986104cf211405--