Forbid constants on [noInterfaceObject] interfaces

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