Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0398176C6 for ; Sun, 5 Oct 2014 03:22:34 +0000 (UTC) Received: (qmail 5901 invoked by uid 500); 5 Oct 2014 03:22:34 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 5870 invoked by uid 500); 5 Oct 2014 03:22:34 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 5857 invoked by uid 99); 5 Oct 2014 03:22:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2014 03:22:34 +0000 Date: Sun, 5 Oct 2014 03:22:33 +0000 (UTC) From: "Kevin Hawkins (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-2520) iOS: "original" user agent needs to be overridable 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-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14159410#comment-14159410 ] Kevin Hawkins commented on CB-2520: ----------------------------------- Pull request for proposed fix: https://github.com/apache/cordova-ios/pull/112 > iOS: "original" user agent needs to be overridable > -------------------------------------------------- > > Key: CB-2520 > URL: https://issues.apache.org/jira/browse/CB-2520 > Project: Apache Cordova > Issue Type: New Feature > Components: iOS > Affects Versions: Master > Reporter: Kevin Hawkins > Labels: core > Original Estimate: 8h > Remaining Estimate: 8h > > Cordova's user agent management for iOS employs a scheme of setting a baseline "original" user agent, which by default conforms to the standard user agent a UIWebView would expose, and then optionally appending CDVViewController-specific data to it in the appropriate use cases, to manage whitelisting. > Cordova shouldn't really care too much about the data that the original user agent exposes. I.e. it should be able to be overridden by a consumer, so that the consumer can supply its own user agent data. This is not technically possible with the current implementation of the CDVUserAgentUtil class, since it does not exist as a member of any instance class; it's truly static/global, so inheritance doesn't come into play. > Even if an instance of CDVuserAgentUtil could be made a property of CDVViewController, or something else, it would be kind of weird for a consumer to inherit from what's essentially a static class, just to configure their own user agent data. > There should be another mechanism for users to override the original user agent configuration. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org