[ 
https://issues.apache.org/jira/browse/CB-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15648217#comment-15648217
 ] 

Sam Kelleher commented on CB-11720:
-----------------------------------

The projects readme describes spec compliance, however, because it overwrites 
the window.File class, it breaks WebAPI compatibility as the function being 
written is not compliant with the File spec 
(https://www.w3.org/TR/FileAPI/#dfn-file).

The File class introduced by this plugin should not overwrite the WebAPI File 
class (or any other native classes). The types from the JS seems to be all 
leaking into the global scope.

The workaround described in CB-10858 also doesn't function as described there 
(theory, I believe because the File API is overwritten directly rather than 
being mapped there via Cordova).

> File plugin change File constructor browser API
> -----------------------------------------------
>
>                 Key: CB-11720
>                 URL: https://issues.apache.org/jira/browse/CB-11720
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>            Reporter: László Radics
>
> File plugin alter the global File constructor function which become not 
> compatible with the standard API
> https://developer.mozilla.org/en/docs/Web/API/File
> more discussion about this in CB-10858 which is closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to