Changeset 107382 in webkit


Ignore:
Timestamp:
Feb 10, 2012 1:28:05 AM (12 years ago)
Author:
haraken@chromium.org
Message:

Remove [ConvertingNullStringTo] from CloseEvent.idl
https://bugs.webkit.org/show_bug.cgi?id=78328

Reviewed by Adam Barth.

In CloseEvent.idl, [ConvertingNullStringTo] is a typo of [ConvertNullStringTo],
(although in bug 78108, [ConvertNullStringTo] was renamed to [TreatReturnedNullStringAs]).

Anyway, the spec says that "The reason attribute must return the value it was
initialized to. When the object is created, this attribute must be initialized to empty string."
http://dev.w3.org/html5/websockets/#event-definitions
Thus, this patch removes [ConvertingNullStringTo] from CloseEvent.idl.

Test: fast/events/constructors/close-event-constructor.html

  • websockets/CloseEvent.idl:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107380 r107382  
     12012-02-10  Kentaro Hara  <haraken@chromium.org>
     2
     3        Remove [ConvertingNullStringTo] from CloseEvent.idl
     4        https://bugs.webkit.org/show_bug.cgi?id=78328
     5
     6        Reviewed by Adam Barth.
     7
     8        In CloseEvent.idl, [ConvertingNullStringTo] is a typo of [ConvertNullStringTo],
     9        (although in bug 78108, [ConvertNullStringTo] was renamed to [TreatReturnedNullStringAs]).
     10
     11        Anyway, the spec says that "The reason attribute must return the value it was
     12        initialized to. When the object is created, this attribute must be initialized to empty string."
     13        http://dev.w3.org/html5/websockets/#event-definitions
     14        Thus, this patch removes [ConvertingNullStringTo] from CloseEvent.idl.
     15
     16        Test: fast/events/constructors/close-event-constructor.html
     17
     18        * websockets/CloseEvent.idl:
     19
    1202012-02-10  Pavel Feldman  <pfeldman@google.com>
    221
  • trunk/Source/WebCore/websockets/CloseEvent.idl

    r106737 r107382  
    3737        readonly attribute [InitializedByEventConstructor] boolean wasClean;
    3838        readonly attribute [InitializedByEventConstructor] unsigned short code;
    39         readonly attribute [InitializedByEventConstructor, ConvertingNullStringTo=Undefined] DOMString reason;
     39        readonly attribute [InitializedByEventConstructor] DOMString reason;
    4040    };
    4141
Note: See TracChangeset for help on using the changeset viewer.