[Bug 23479] New: File Constructor and Blob Constructor should have same signature

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23479

            Bug ID: 23479
           Summary: File Constructor and Blob Constructor should have same
                    signature
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: File API
          Assignee: arun@mozilla.com
          Reporter: arun@mozilla.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: public-webapps@w3.org

File and Blob constructors currently have different signatures.  Feedback in
off-list email was:

Shouldn't the File constructor have the same signature as the Blob
constructor, but also allow a 'name' parameter to be passed in the
dictionary. Possibly even throwing if no name is provided.

Having the Blob constructor and the File constructor be so different
when they are really doing the same thing seems surprising. And
forcing authors to create a temporary Blob just so that they can
create a File seems wasteful.

Please consider this implementation feedback.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Thursday, 10 October 2013 13:19:07 UTC