-
Notifications
You must be signed in to change notification settings - Fork 1.7k
FileSystem API not supported #3022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This comment was originally written by [email protected] Pavel, may you have a look, please? Set owner to [email protected]. |
This comment was originally written by [email protected] Added Started label. |
This comment was originally written by [email protected] Fixed in Dartium. Still doesn't work in frog though. Stephen, could you please take a look? |
This comment was originally written by [email protected] Set owner to @rakudrama. |
There is also some issue with dart2js as well (note: This error showed up when podilvilov's change went in, but because there were multiple commits I am marking the test as skip rather than reverting the commit): CONSOLE MESSAGE: line 7935: Uncaught ReferenceError: errorCallback is not defined FAILED: dart2js-drt release_ia32 html/fileapi_test |
This comment was originally written by [email protected] Added this to the M1 milestone. |
Marked this as being blocked by #3536. |
Removed the owner. |
This comment was originally written by [email protected] This may be the same as issue #4549. I.e. we might be passing a Dart has instead of a normal JavaScript object to getDirectory. |
This test is being skipped. We should try it again. The test may have bugs in the use of expectAsync. |
This appears to be working properly on the latest bits, I am updating the tests to run correctly. FYI- the syntax for the latest bits is: |
Tests have been updated and are enabled. Added Fixed label. |
This issue was originally filed by [email protected]
Using this code:
import('dart:html');
void main() {
window.webkitRequestFileSystem(Window.TEMPORARY, 5 * 1024 * 1024, (DOMFileSystem fs) {
window.console.log('Got Filesystem');
fs.root.getDirectory('path', successCallback: (Entry e) {
window.console.log('Got directory $e.name');
}, errorCallback: (FileError e) {
window.console.error(e);
});
});
}
In Dartium, I get the "Got Filesystem" message, but getting a directory (or file) results in an UnsupportedOperationException:
Stack Trace: 0. Function: 'DirectoryEntryImplementation.getDirectory' url: '/b/build/slave/dartium-mac-full/build/src/xcodebuild/DerivedSources/Release/webkit/bindings/dart/dart/DirectoryEntryImplementation.dart' line:20 col:3
1. Function: '::function' url: 'http://127.0.0.1:3030/Users/jasonhall/dart/filesystem/filesystem.dart' line:7 col:25
When running the generated JS (generated with dart2js), I get an UncaughtReferenceError stating that the errorCallback is not defined:
Uncaught ReferenceError: errorCallback is not defined filesystem.dart.js:2879
$.dynamicFunction.DOMWindow
nullCheckMethod
$.dynamicBind
bind
$.main
(anonymous function)
I suppose this is probably a known issue, but I figured I'd file this to track its progress. This might be considered a duplicate of Issue #1241 as well.
The text was updated successfully, but these errors were encountered: