144
rated 0 times
[
148]
[
4]
/ answers: 1 / hits: 18959
/ 8 Years ago, thu, march 17, 2016, 12:00:00
Please consider the following code in html/javascript:
<html>
<head>
<script>
var myObject = {};
var mySecondReference = myObject;
for (s in window)
if (window[s]===myObject)
alert(reference found: + s);
</script>
</head>
</html>
It iterates though the window object in order to search any references to a given object. It works fine everywhere, however in Chrome/ium gives me the following warnings:
'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
test.html:8 'webkitIndexedDB' is deprecated. Please use 'indexedDB' instead.
Is it something I should be scared of (especially with future versions of chrome browser)?
How can I get rid of those messages?
More From » google-chrome