Bug 117247

Summary: Remove remaining custom getters for WorkerContext constructor attributes
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: BindingsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, commit-queue, ggaren, haraken, laszlo.gombos, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
WIP patch
none
JSWebContext.cpp diff
none
Patch none

Description Chris Dumez 2013-06-05 04:31:58 PDT
The following constructor attributes on WorkerContext interface have custom getters but their custom code doesn't seem to do anything special:
   [Conditional=CHANNEL_MESSAGING, CustomGetter] attribute MessageChannelConstructor MessageChannel;
   [CustomGetter] attribute EventSourceConstructor EventSource;
   [CustomGetter] attribute XMLHttpRequestConstructor XMLHttpRequest;
   [CustomGetter] attribute WebSocketConstructor WebSocket;

We can probably remove the custom code and have them automatically generated.
Comment 1 Chris Dumez 2013-06-05 04:36:29 PDT
Created attachment 203802 [details]
WIP patch
Comment 2 Chris Dumez 2013-06-05 04:37:43 PDT
Created attachment 203803 [details]
JSWebContext.cpp diff
Comment 3 Chris Dumez 2013-06-05 05:15:17 PDT
Created attachment 203808 [details]
Patch
Comment 4 Kentaro Hara 2013-06-05 05:19:14 PDT
Comment on attachment 203808 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=203808&action=review

Great improvement.

> Source/WebCore/dom/MessageChannel.idl:29
> +    Conditional=CHANNEL_MESSAGING,

I wonder why MessageChannel code has been working without this conditional.
Comment 5 Chris Dumez 2013-06-05 05:26:52 PDT
Comment on attachment 203808 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=203808&action=review

>> Source/WebCore/dom/MessageChannel.idl:29
>> +    Conditional=CHANNEL_MESSAGING,
> 
> I wonder why MessageChannel code has been working without this conditional.

Looks like everyone is enabling CHANNEL_MESSAGING:
Tools/Scripts/webkitperl/FeatureList.pm:      define => "ENABLE_CHANNEL_MESSAGING", default => 1, value => \$channelMessagingSupport },
Comment 6 Kentaro Hara 2013-06-05 06:54:48 PDT
Comment on attachment 203808 [details]
Patch

ok, thanks for the clarification.
Comment 7 WebKit Commit Bot 2013-06-05 07:16:46 PDT
Comment on attachment 203808 [details]
Patch

Clearing flags on attachment: 203808

Committed r151223: <http://trac.webkit.org/changeset/151223>
Comment 8 WebKit Commit Bot 2013-06-05 07:16:50 PDT
All reviewed patches have been landed.  Closing bug.