I have tryed to make a request from console:
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "chrome://version");
xmlhttp.onreadystatechange = function()
{
if ((xmlhttp.status == 200) && (xmlhttp.readyState == 4))
{
console.log(xmlhttp.responseText)
}
};
xmlhttp.send();
This work perfectly on console, but when I try to execute it on background.js I have this error:
Not allowed to load local resource: chrome://version/
I have tryed to give permission in manifest.json but was unsuccessfull
Permission I have given to manifest:
fileSystem
If there is no way to get chrome version, how I can identificate a chrome user like profile path, whitout the profile is logged in google.