Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #551 from josh/geolocation-disables-webkit-page-cache

Avoid activating geolocation in WebKit
  • Loading branch information...
commit c74ca46e4d97dcc309697e8a3ebe5b47f309c872 2 parents bc8f7d8 + 67d7249
@paulirish paulirish authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 modernizr.js
View
5 modernizr.js
@@ -481,9 +481,12 @@ window.Modernizr = (function( window, document, undefined ) {
* code.google.com/p/geo-location-javascript/
* or view a fallback solution using google's geo API:
* gist.github.com/366184
+ *
+ * Directly accessing geolocation in WebKit disables page caching:
+ * https://bugs.webkit.org/show_bug.cgi?id=43956
*/
tests['geolocation'] = function() {
- return !!navigator.geolocation;
+ return 'geolocation' in navigator;
};
// Per 1.6:
Please sign in to comment.
Something went wrong with that request. Please try again.