For google chrome extension i need to be able to detect if user use chrome browse to open .html file.
I tried different method but it seem i do not get an event
"permissions": ["webRequest","browsingData", "fileSystemProvider"],
"file_system_provider_capabilities": {
"configurable": true,
"watchable": true,
"source": "file"
},
I tried to intercept in webRequest
chrome.webRequest.onBeforeSendHeaders.addListener(function(info){
// info.url does not give me the file.html which opened
)};
I tried with different methods for file event handling but none get fire
chrome.fileSystemProvider.onOpenFileRequested.addListener(function(file){
console.log("open file");
});
chrome.fileSystemProvider.onReadFileRequested.addListener(function(file){
console.log("read file");
});
chrome.fileSystemProvider.onExecuteActionRequested.addListener(function(){
console.log("execute file");
});
Thanks in advance for any help