You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of this plugin classes are overriding Javascript native classes instead of implements them properly
What is expected to happen?
Plugin Blob, File, ArrayBuffer, FileReader classes should not replace Javascript native code and extend native JS API's
What does actually happen?
For exemple, if i do a const file = new File([], 'yoyo'), I can't use Blob() functions like file.arrayBuffer() as File isn't extending Blob interface.
Also, file.name is an array containing a Blob item.
It cause unexpected behavior between browser web native Javascript File implementation and phone device cordova one.
In addition, we must add trash code to handle this.
Bug Report
Problem
Many of this plugin classes are overriding Javascript native classes instead of implements them properly
What is expected to happen?
Plugin Blob, File, ArrayBuffer, FileReader classes should not replace Javascript native code and extend native JS API's
What does actually happen?
For exemple, if i do a
const file = new File([], 'yoyo')
, I can't use Blob() functions likefile.arrayBuffer()
as File isn't extending Blob interface.Also, file.name is an array containing a Blob item.
It cause unexpected behavior between browser web native Javascript File implementation and phone device cordova one.
In addition, we must add trash code to handle this.
Information
https://developer.mozilla.org/en-US/docs/Web/API/Blob
https://developer.mozilla.org/en-US/docs/Web/API/File
https://developer.mozilla.org/fr/docs/Web/API/FileReader
Command or Code
Just init a new File() or an new ArrayBuffer() and compare them with browser result, they are not as Javascript define them.
Environment, Platform, Device
Cordova-android 11, Android 13 device, Chrome.
Version information
Checklist
The text was updated successfully, but these errors were encountered: