this change prevents user from modify
content.geolocation attributes
[Verification]
- tested on chrome console
Change-Id: Ia5e887d6029124e8eb3c0830391506632db16813
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
},
geolocation: {
get: function() {
- return geolocation;
+ if (isEarlierThan55) {
+ return geolocation;
+ } else {
+ // for keep geolocation's latitude and longitude readonly
+ // we need to return copy of this object
+ return new tizen.SimpleCoordinates(geolocation.latitude, geolocation.longitude);
+ }
},
set: function(v) {
// since 5.5 this attribute is readonly, it is disallowed to modify it,
},
geolocation: {
get: function() {
- return geolocation;
+ if (isEarlierThan55) {
+ return geolocation;
+ } else {
+ // for keep geolocation's latitude and longitude readonly
+ // we need to return copy of this object
+ return new tizen.SimpleCoordinates(geolocation.latitude, geolocation.longitude);
+ }
},
set: function(v) {
// since 5.5 this attribute is readonly, it is disallowed to modify it,