indexeddbshim / IndexedDBShim

A polyfill for IndexedDB using WebSql
Other
968 stars 191 forks source link

`Blob`, `File`, `FileList` #285

Closed brettz9 closed 7 years ago

brettz9 commented 7 years ago

As raised in #267 , there are problems implementing Blob, File, and FileList although the Structured Cloning Algorithm technically supports them and the support that existed within our past implementation (which had problems in using eval (bad for CSP if not security) and with cyclic values) has been removed for now.

The reason for this is that the spec currently requires throwing errors synchronously upon bad data, but to encounter and thus report errors in retrieving their contents, we'd need to load synchronously (or just inform users that the must forego the chance to get errors reported synchronously as per the spec).

Although we should be able to get around it, our implementation would be cleaner with https://github.com/tmpvar/jsdom/issues/1721 .

brettz9 commented 7 years ago

This is now fixed in master (at least as long as we still have sync XHR available).