[ 
https://issues.apache.org/jira/browse/CB-6911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14127949#comment-14127949
 ] 

ASF GitHub Bot commented on CB-6911:
------------------------------------

GitHub user shazron opened a pull request:

    https://github.com/apache/cordova-js/pull/80

    CB-6911 - iOS 8 - "deprecated attempt to access property" errors when 
accessing anything off window.navigator

    Tested on iOS 8 UIWebView. Any attempt to call the bridge will result in:
    "Deprecated attempt to access property 'userAgent' on a non-Navigator 
object." in the console of the Web Inspector.
    
    Object.defineProperty seems to have broad support in mobile browsers:
    
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__#Browser_compatibility
    
    Not sure about IE Mobile, that's why I sent this pull request for 
discussion since these files are common for all platforms. The (safe) 
alternative is to add this code for iOS only.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shazron/cordova-js CB-6911

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-js/pull/80.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #80
    
----
commit 6c7a76fcd2f0aa60e0879d1417e1ac0ca44f2c6c
Author: Shazron Abdullah <[email protected]>
Date:   2014-09-10T02:09:28Z

    CB-6911 - iOS 8 - "deprecated attempt to access property" errors when 
accessing anything off window.navigator

----


> iOS 8 - "deprecated attempt to access property" errors when accessing 
> anything off window.navigator
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CB-6911
>                 URL: https://issues.apache.org/jira/browse/CB-6911
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: CordovaJS
>         Environment: iOS 8 beta 5 (device)
>            Reporter: Jeff Schilling
>            Assignee: Shazron Abdullah
>         Attachments: Screen Shot 2014-09-01 at 9.03.30 pm.png, Screen Shot 
> 2014-09-04 at 9.30.58 pm.png
>
>
> references to window.navigator.* (platform, geolocation) etc fail with 
> Deprecated attempt to access property 'geolocation' on a non-Navigator object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to