cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Hawkins (JIRA)" <>
Subject [jira] [Created] (CB-2520) iOS: "original" user agent needs to be overridable
Date Thu, 21 Feb 2013 20:26:12 GMT
Kevin Hawkins created CB-2520:

             Summary: iOS: "original" user agent needs to be overridable
                 Key: CB-2520
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: Master
            Reporter: Kevin Hawkins
            Assignee: Shazron Abdullah

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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message