W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Forbid constants on [noInterfaceObject] interfaces

From: David Bruant <bruant.d@gmail.com>
Date: Wed, 31 Jul 2013 14:21:11 +0200
Message-ID: <CAHbscB02=tA=jrf1eDkkz8Fz0CgTHRqPnKBM241VTVZfWxWnjA@mail.gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
Hi,

From
http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#using-localfilesystem

[Supplemental, NoInterfaceObject]
interface LocalFileSystem {    const unsigned short TEMPORARY
<http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#TEMPORARY> =
0;    const unsigned short PERSISTENT
<http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#PERSISTENT>
= 1;    void requestFileSystem
<http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#widl-LocalFileSystem-requestFileSystem-void-unsigned-short-type-unsigned-long-long-size-FileSystemCallback-successCallback-ErrorCallback-errorCallback>
(unsigned short type, unsigned long long size, FileSystemCallback
<http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#idl-def-FileSystemCallback>
successCallback, optional ErrorCallback
<http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#idl-def-ErrorCallback>
errorCallback);    void resolveLocalFileSystemURL
<http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#widl-LocalFileSystem-resolveLocalFileSystemURL-void-DOMString-url-EntryCallback-successCallback-ErrorCallback-errorCallback>
(DOMString url, EntryCallback
<http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#idl-def-EntryCallback>
successCallback, optional ErrorCallback
<http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#idl-def-ErrorCallback>
errorCallback);
};

This results in TEMPORARY and PERSISTENT global properties. Look in a
recent Chrome console.

This should be forbidden in my opinion.

I'll take the time later to send feedback to the File API people to see if
this can be changed.

David
Received on Wednesday, 31 July 2013 12:21:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC