-
Notifications
You must be signed in to change notification settings - Fork 150
Description
filer.js works awesome in Chrome. However, when loaded as a Chrome App, I get SecurityError with the message "It was determined that certain files are unsafe for access within a Web Application, or that too many calls are being made on file resources." when invoking self.requestFileSystem in the following lines for both Temporary and Persistent.
Line 453 and 457 is the one throwing an error.
I have Chrome browser version 74+ which works great on Windows and Chromebook.
Issue is when running it as a Chrome App on the same Chromebook where it works fine on Chrome browser.
From debugging, self.requestFileSystem is undefined so it uses self.webkitRequestFileSystem instead.
I've been trying to figure this out for days and I can't get rid of that SecurityError.
Please help.
Below is my Chrome App manifest.json:
{
"name": "Signage Player",
"version": "0.1",
"manifest_version": 2,
"minimum_chrome_version": "37.0.0.0",
"permissions": [
"webview",
"power",
"storage",
"videoCapture",
"geolocation",
"pointerLock",
"system.display",
"syncFileSystem",
"webNavigation",
"fileSystem",
"fileSystem.write",
"fileSystem.requestFileSystem",
"fileSystem.retainEntries",
"fileSystem.directory",
"accessibilityFeatures.read",
"accessibilityFeatures.modify"
],
"app": {
"background": {
"scripts": [
"js/foam.js",
"js/cab.js",
"config.js",
"background_main.js"
]
}
},
"kiosk_enabled": true,
"default_locale": "en",
"icons": {
"128": "img/Signage-128.png"
}
}
