Changeset 47323 in webkit


Ignore:
Timestamp:
Aug 15, 2009 2:04:32 PM (15 years ago)
Author:
weinig@apple.com
Message:

JavaScriptCore: Added ENABLE_EVENTSOURCE flag.
https://bugs.webkit.org/show_bug.cgi?id=14997

Patch by Adam Bergkvist <adam.bergkvist@ericsson.com> on 2009-08-15
Reviewed by Sam Weinig.

  • Configurations/FeatureDefines.xcconfig:

WebCore: Added implementation of the EventSource object that enables
server-sent events from HTML5.
http://dev.w3.org/html5/eventsource/
https://bugs.webkit.org/show_bug.cgi?id=14997

Patch by Adam Bergkvist <adam.bergkvist@ericsson.com> on 2009-08-15
Reviewed by Sam Weinig.

Tests: fast/eventsource/eventsource-attribute-listeners.html

fast/eventsource/eventsource-constructor.html
http/tests/eventsource/eventsource-bad-mime-type.html
http/tests/eventsource/eventsource-parse-event-stream.html
http/tests/eventsource/eventsource-reconnect.html
http/tests/eventsource/eventsource-status-code-states.html
http/tests/eventsource/workers/eventsource-simple.html

  • Configurations/FeatureDefines.xcconfig:
  • DerivedSources.cpp:
  • DerivedSources.make:
  • GNUmakefile.am:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/JSDOMWindowCustom.cpp:

(WebCore::JSDOMWindow::eventSource):

  • bindings/js/JSEventSourceConstructor.cpp: Added.

(WebCore::):
(WebCore::JSEventSourceConstructor::JSEventSourceConstructor):
(WebCore::constructEventSource):
(WebCore::JSEventSourceConstructor::getConstructData):

  • bindings/js/JSEventSourceConstructor.h: Added.

(WebCore::JSEventSourceConstructor::classInfo):

  • bindings/js/JSEventSourceCustom.cpp: Added.

(WebCore::JSEventSource::markChildren):
(WebCore::JSEventSource::addEventListener):
(WebCore::JSEventSource::removeEventListener):

  • bindings/js/JSEventTarget.cpp:

(WebCore::toJS):
(WebCore::toEventTarget):

  • bindings/js/JSWorkerContextCustom.cpp:

(WebCore::JSWorkerContext::eventSource):

  • dom/EventNames.h:
  • dom/EventTarget.cpp:

(WebCore::EventTarget::toEventSource):

  • dom/EventTarget.h:
  • page/DOMWindow.idl:
  • page/EventSource.cpp: Added.

(WebCore::EventSource::EventSource):
(WebCore::EventSource::~EventSource):
(WebCore::EventSource::connect):
(WebCore::EventSource::endRequest):
(WebCore::EventSource::scheduleReconnect):
(WebCore::EventSource::reconnectTimerFired):
(WebCore::EventSource::url):
(WebCore::EventSource::readyState):
(WebCore::EventSource::close):
(WebCore::EventSource::scriptExecutionContext):
(WebCore::EventSource::addEventListener):
(WebCore::EventSource::removeEventListener):
(WebCore::EventSource::dispatchEvent):
(WebCore::EventSource::didReceiveResponse):
(WebCore::EventSource::didReceiveData):
(WebCore::EventSource::didFinishLoading):
(WebCore::EventSource::didFail):
(WebCore::EventSource::didFailRedirectCheck):
(WebCore::EventSource::parseEventStream):
(WebCore::EventSource::parseEventStreamLine):
(WebCore::EventSource::dispatchGenericEvent):
(WebCore::EventSource::dispatchMessageEvent):
(WebCore::EventSource::stop):

  • page/EventSource.h: Added.

(WebCore::EventSource::create):
(WebCore::EventSource::):
(WebCore::EventSource::setOnopen):
(WebCore::EventSource::onopen):
(WebCore::EventSource::setOnmessage):
(WebCore::EventSource::onmessage):
(WebCore::EventSource::setOnerror):
(WebCore::EventSource::onerror):
(WebCore::EventSource::toEventSource):
(WebCore::EventSource::eventListeners):
(WebCore::EventSource::refEventTarget):
(WebCore::EventSource::derefEventTarget):

  • page/EventSource.idl: Added.
  • workers/WorkerContext.idl:

WebKit/mac: Added ENABLE_EVENTSOURCE flag.
https://bugs.webkit.org/show_bug.cgi?id=14997

Patch by Adam Bergkvist <adam.bergkvist@ericsson.com> on 2009-08-15
Reviewed by Sam Weinig.

  • Configurations/FeatureDefines.xcconfig:

WebKitTools: Added EventSource to the build script (default on).
https://bugs.webkit.org/show_bug.cgi?id=14997

Patch by Adam Bergkvist <adam.bergkvist@ericsson.com> on 2009-08-14
Reviewed by Sam Weinig.

  • Scripts/build-webkit:

LayoutTests: Tests for EventSource.
https://bugs.webkit.org/show_bug.cgi?id=14997

Patch by Adam Bergkvist <adam.bergkvist@ericsson.com> on 2009-08-14
Reviewed by Sam Weinig.

  • fast/eventsource: Added.
  • fast/eventsource/eventsource-attribute-listeners-expected.txt: Added.
  • fast/eventsource/eventsource-attribute-listeners.html: Added.
  • fast/eventsource/eventsource-constructor-expected.txt: Added.
  • fast/eventsource/eventsource-constructor.html: Added.
  • http/tests/eventsource: Added.
  • http/tests/eventsource/eventsource-bad-mime-type-expected.txt: Added.
  • http/tests/eventsource/eventsource-bad-mime-type.html: Added.
  • http/tests/eventsource/eventsource-parse-event-stream-expected.txt: Added.
  • http/tests/eventsource/eventsource-parse-event-stream.html: Added.
  • http/tests/eventsource/eventsource-reconnect-expected.txt: Added.
  • http/tests/eventsource/eventsource-reconnect.html: Added.
  • http/tests/eventsource/eventsource-status-code-states-expected.txt: Added.
  • http/tests/eventsource/eventsource-status-code-states.html: Added.
  • http/tests/eventsource/resources: Added.
  • http/tests/eventsource/resources/bad-mime-type.asis: Added.
  • http/tests/eventsource/resources/event-stream.php: Added.
  • http/tests/eventsource/resources/reconnect.php: Added.
  • http/tests/eventsource/resources/simple-event-stream.asis: Added.
  • http/tests/eventsource/resources/status-codes.php: Added.
  • http/tests/eventsource/workers: Added.
  • http/tests/eventsource/workers/eventsource-simple-expected.txt: Added.
  • http/tests/eventsource/workers/eventsource-simple.html: Added.
  • http/tests/eventsource/workers/resources: Added.
  • http/tests/eventsource/workers/resources/simple-worker.js: Added.

(es.onmessage):
(es.onerror):

Location:
trunk
Files:
31 added
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r47307 r47323  
     12009-08-15  Adam Bergkvist  <adam.bergkvist@ericsson.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Added ENABLE_EVENTSOURCE flag.
     6        https://bugs.webkit.org/show_bug.cgi?id=14997
     7
     8        * Configurations/FeatureDefines.xcconfig:
     9
    1102009-08-14  Gavin Barraclough  <barraclough@apple.com>
    211
  • trunk/JavaScriptCore/Configurations/FeatureDefines.xcconfig

    r47056 r47323  
    3737ENABLE_DATAGRID = ENABLE_DATAGRID;
    3838ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE;
     39ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE;
    3940ENABLE_FILTERS = ;
    4041ENABLE_GEOLOCATION = ;
     
    5960ENABLE_XSLT = ENABLE_XSLT;
    6061
    61 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);
     62FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);
  • trunk/LayoutTests/ChangeLog

    r47314 r47323  
     12009-08-14  Adam Bergkvist  <adam.bergkvist@ericsson.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Tests for EventSource.
     6        https://bugs.webkit.org/show_bug.cgi?id=14997
     7
     8        * fast/eventsource: Added.
     9        * fast/eventsource/eventsource-attribute-listeners-expected.txt: Added.
     10        * fast/eventsource/eventsource-attribute-listeners.html: Added.
     11        * fast/eventsource/eventsource-constructor-expected.txt: Added.
     12        * fast/eventsource/eventsource-constructor.html: Added.
     13        * http/tests/eventsource: Added.
     14        * http/tests/eventsource/eventsource-bad-mime-type-expected.txt: Added.
     15        * http/tests/eventsource/eventsource-bad-mime-type.html: Added.
     16        * http/tests/eventsource/eventsource-parse-event-stream-expected.txt: Added.
     17        * http/tests/eventsource/eventsource-parse-event-stream.html: Added.
     18        * http/tests/eventsource/eventsource-reconnect-expected.txt: Added.
     19        * http/tests/eventsource/eventsource-reconnect.html: Added.
     20        * http/tests/eventsource/eventsource-status-code-states-expected.txt: Added.
     21        * http/tests/eventsource/eventsource-status-code-states.html: Added.
     22        * http/tests/eventsource/resources: Added.
     23        * http/tests/eventsource/resources/bad-mime-type.asis: Added.
     24        * http/tests/eventsource/resources/event-stream.php: Added.
     25        * http/tests/eventsource/resources/reconnect.php: Added.
     26        * http/tests/eventsource/resources/simple-event-stream.asis: Added.
     27        * http/tests/eventsource/resources/status-codes.php: Added.
     28        * http/tests/eventsource/workers: Added.
     29        * http/tests/eventsource/workers/eventsource-simple-expected.txt: Added.
     30        * http/tests/eventsource/workers/eventsource-simple.html: Added.
     31        * http/tests/eventsource/workers/resources: Added.
     32        * http/tests/eventsource/workers/resources/simple-worker.js: Added.
     33        (es.onmessage):
     34        (es.onerror):
     35
    1362009-08-14  Jon Honeycutt  <jhoneycutt@apple.com>
    237
  • trunk/LayoutTests/fast/dom/Window/window-properties-expected.txt

    r47233 r47323  
    858858window.EventException.prototype [object EventExceptionPrototype]
    859859window.EventException.prototype.UNSPECIFIED_EVENT_TYPE_ERR [number]
     860window.EventSource [object EventSourceContructor]
     861window.EventSource.prototype [object EventSourcePrototype]
     862window.EventSource.prototype.CLOSED [number]
     863window.EventSource.prototype.CONNECTING [number]
     864window.EventSource.prototype.OPEN [number]
     865window.EventSource.prototype.addEventListener [function]
     866window.EventSource.prototype.close [function]
     867window.EventSource.prototype.dispatchEvent [function]
     868window.EventSource.prototype.removeEventListener [function]
    860869window.File [object FileConstructor]
    861870window.File.prototype [object FilePrototype]
  • trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt

    r46874 r47323  
    7878PASS DocumentPrototype from inner.document.__proto__.__proto__
    7979PASS ElementPrototype from inner.document.activeElement.lastElementChild.__proto__.__proto__
     80PASS EventSourceContructor from inner.EventSource
    8081FAIL Function from inner.document.location.pathname.constructor
    8182PASS HTMLAnchorElement from inner.document.activeElement.firstElementChild
  • trunk/LayoutTests/fast/dom/prototype-inheritance-expected.txt

    r46874 r47323  
    7878PASS inner.EventException.isInner is true
    7979PASS inner.EventException.constructor.isInner is true
     80PASS inner.EventSource.isInner is true
     81PASS inner.EventSource.constructor.isInner is true
    8082PASS inner.File.isInner is true
    8183PASS inner.File.constructor.isInner is true
  • trunk/WebCore/ChangeLog

    r47319 r47323  
     12009-08-15  Adam Bergkvist  <adam.bergkvist@ericsson.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Added implementation of the EventSource object that enables
     6        server-sent events from HTML5.
     7        http://dev.w3.org/html5/eventsource/
     8        https://bugs.webkit.org/show_bug.cgi?id=14997
     9
     10        Tests: fast/eventsource/eventsource-attribute-listeners.html
     11               fast/eventsource/eventsource-constructor.html
     12               http/tests/eventsource/eventsource-bad-mime-type.html
     13               http/tests/eventsource/eventsource-parse-event-stream.html
     14               http/tests/eventsource/eventsource-reconnect.html
     15               http/tests/eventsource/eventsource-status-code-states.html
     16               http/tests/eventsource/workers/eventsource-simple.html
     17
     18        * Configurations/FeatureDefines.xcconfig:
     19        * DerivedSources.cpp:
     20        * DerivedSources.make:
     21        * GNUmakefile.am:
     22        * WebCore.pro:
     23        * WebCore.vcproj/WebCore.vcproj:
     24        * WebCore.xcodeproj/project.pbxproj:
     25        * bindings/js/JSDOMWindowCustom.cpp:
     26        (WebCore::JSDOMWindow::eventSource):
     27        * bindings/js/JSEventSourceConstructor.cpp: Added.
     28        (WebCore::):
     29        (WebCore::JSEventSourceConstructor::JSEventSourceConstructor):
     30        (WebCore::constructEventSource):
     31        (WebCore::JSEventSourceConstructor::getConstructData):
     32        * bindings/js/JSEventSourceConstructor.h: Added.
     33        (WebCore::JSEventSourceConstructor::classInfo):
     34        * bindings/js/JSEventSourceCustom.cpp: Added.
     35        (WebCore::JSEventSource::markChildren):
     36        (WebCore::JSEventSource::addEventListener):
     37        (WebCore::JSEventSource::removeEventListener):
     38        * bindings/js/JSEventTarget.cpp:
     39        (WebCore::toJS):
     40        (WebCore::toEventTarget):
     41        * bindings/js/JSWorkerContextCustom.cpp:
     42        (WebCore::JSWorkerContext::eventSource):
     43        * dom/EventNames.h:
     44        * dom/EventTarget.cpp:
     45        (WebCore::EventTarget::toEventSource):
     46        * dom/EventTarget.h:
     47        * page/DOMWindow.idl:
     48        * page/EventSource.cpp: Added.
     49        (WebCore::EventSource::EventSource):
     50        (WebCore::EventSource::~EventSource):
     51        (WebCore::EventSource::connect):
     52        (WebCore::EventSource::endRequest):
     53        (WebCore::EventSource::scheduleReconnect):
     54        (WebCore::EventSource::reconnectTimerFired):
     55        (WebCore::EventSource::url):
     56        (WebCore::EventSource::readyState):
     57        (WebCore::EventSource::close):
     58        (WebCore::EventSource::scriptExecutionContext):
     59        (WebCore::EventSource::addEventListener):
     60        (WebCore::EventSource::removeEventListener):
     61        (WebCore::EventSource::dispatchEvent):
     62        (WebCore::EventSource::didReceiveResponse):
     63        (WebCore::EventSource::didReceiveData):
     64        (WebCore::EventSource::didFinishLoading):
     65        (WebCore::EventSource::didFail):
     66        (WebCore::EventSource::didFailRedirectCheck):
     67        (WebCore::EventSource::parseEventStream):
     68        (WebCore::EventSource::parseEventStreamLine):
     69        (WebCore::EventSource::dispatchGenericEvent):
     70        (WebCore::EventSource::dispatchMessageEvent):
     71        (WebCore::EventSource::stop):
     72        * page/EventSource.h: Added.
     73        (WebCore::EventSource::create):
     74        (WebCore::EventSource::):
     75        (WebCore::EventSource::setOnopen):
     76        (WebCore::EventSource::onopen):
     77        (WebCore::EventSource::setOnmessage):
     78        (WebCore::EventSource::onmessage):
     79        (WebCore::EventSource::setOnerror):
     80        (WebCore::EventSource::onerror):
     81        (WebCore::EventSource::toEventSource):
     82        (WebCore::EventSource::eventListeners):
     83        (WebCore::EventSource::refEventTarget):
     84        (WebCore::EventSource::derefEventTarget):
     85        * page/EventSource.idl: Added.
     86        * workers/WorkerContext.idl:
     87
    1882009-08-15  Pavel Feldman  <pfeldman@chromium.org>
    289
  • trunk/WebCore/Configurations/FeatureDefines.xcconfig

    r47056 r47323  
    3939ENABLE_DATAGRID = ENABLE_DATAGRID;
    4040ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE;
     41ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE;
    4142ENABLE_FILTERS = ;
    4243ENABLE_GEOLOCATION = ;
     
    6162ENABLE_XSLT = ENABLE_XSLT;
    6263
    63 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);
     64FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);
  • trunk/WebCore/DerivedSources.cpp

    r47056 r47323  
    7474#include "JSEvent.cpp"
    7575#include "JSEventException.cpp"
     76#include "JSEventSource.cpp"
    7677#include "JSFile.cpp"
    7778#include "JSFileList.cpp"
  • trunk/WebCore/DerivedSources.make

    r47056 r47323  
    101101    EventException \
    102102    EventListener \
     103    EventSource \
    103104    EventTarget \
    104105    File \
  • trunk/WebCore/GNUmakefile.am

    r47313 r47323  
    243243        WebCore/page/DOMSelection.idl \
    244244        WebCore/page/DOMWindow.idl \
     245        WebCore/page/EventSource.idl \
    245246        WebCore/page/Geolocation.idl \
    246247        WebCore/page/Geoposition.idl \
     
    347348        WebCore/bindings/js/JSEventListener.cpp \
    348349        WebCore/bindings/js/JSEventListener.h \
     350        WebCore/bindings/js/JSEventSourceConstructor.cpp \
     351        WebCore/bindings/js/JSEventSourceConstructor.h \
     352        WebCore/bindings/js/JSEventSourceCustom.cpp \
    349353        WebCore/bindings/js/JSEventTarget.cpp \
    350354        WebCore/bindings/js/JSEventTarget.h \
     
    12721276        WebCore/page/EventHandler.cpp \
    12731277        WebCore/page/EventHandler.h \
     1278        WebCore/page/EventSource.cpp \
     1279        WebCore/page/EventSource.h \
    12741280        WebCore/page/FocusController.cpp \
    12751281        WebCore/page/FocusController.h \
     
    21262132
    21272133# ----
     2134# HTML5 server-sent events
     2135# ----
     2136if !ENABLE_EVENTSOURCE
     2137global_cppflags += -DENABLE_EVENTSOURCE=0
     2138endif
     2139
     2140if ENABLE_EVENTSOURCE
     2141FEATURE_DEFINES_JAVASCRIPT += ENABLE_EVENTSOURCE=1
     2142
     2143webcore_cppflags += \
     2144        -DENABLE_EVENTSOURCE=1
     2145endif # ENABLE_EVENTSOURCE
     2146
     2147# ----
    21282148# HTML5 client-side session and persistent storage
    21292149# ----
  • trunk/WebCore/WebCore.pro

    r47201 r47323  
    109109!contains(DEFINES, ENABLE_JAVASCRIPT_DEBUGGER=.): DEFINES += ENABLE_JAVASCRIPT_DEBUGGER=1
    110110!contains(DEFINES, ENABLE_DATABASE=.): DEFINES += ENABLE_DATABASE=1
     111!contains(DEFINES, ENABLE_EVENTSOURCE=.): DEFINES += ENABLE_EVENTSOURCE=1
    111112!contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=.): DEFINES += ENABLE_OFFLINE_WEB_APPLICATIONS=1
    112113!contains(DEFINES, ENABLE_DOM_STORAGE=.): DEFINES += ENABLE_DOM_STORAGE=1
     
    442443    page/DOMSelection.idl \
    443444    page/DOMWindow.idl \
     445    page/EventSource.idl \
    444446    page/Geolocation.idl \
    445447    page/Geoposition.idl \
     
    658660    bindings/js/JSElementCustom.cpp \
    659661    bindings/js/JSEventCustom.cpp \
     662    bindings/js/JSEventSourceConstructor.cpp \
     663    bindings/js/JSEventSourceCustom.cpp \
    660664    bindings/js/JSEventTarget.cpp \
    661665    bindings/js/JSGeolocationCustom.cpp \
     
    10901094    page/DragController.cpp \
    10911095    page/EventHandler.cpp \
     1096    page/EventSource.cpp \
    10921097    page/FocusController.cpp \
    10931098    page/Frame.cpp \
     
    13371342    bindings/js/JSDOMWindowShell.h \
    13381343    bindings/js/JSEventListener.h \
     1344    bindings/js/JSEventSourceConstructor.h \
    13391345    bindings/js/JSEventTarget.h \
    13401346    bindings/js/JSHistoryCustom.h \
     
    17621768    page/DragController.h \
    17631769    page/EventHandler.h \
     1770    page/EventSource.h \
    17641771    page/FocusController.h \
    17651772    page/Frame.h \
     
    24402447}
    24412448
     2449contains(DEFINES, ENABLE_EVENTSOURCE=1) {
     2450    FEATURE_DEFINES_JAVASCRIPT += ENABLE_EVENTSOURCE=1
     2451}
     2452
    24422453contains(DEFINES, ENABLE_SQLITE=1) {
    24432454    !system-sqlite:exists( $${SQLITE3SRCDIR}/sqlite3.c ) {
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r47313 r47323  
    27802780                        </File>
    27812781                        <File
     2782                                RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSEventSource.cpp"
     2783                                >
     2784                                <FileConfiguration
     2785                                        Name="Debug|Win32"
     2786                                        ExcludedFromBuild="true"
     2787                                        >
     2788                                        <Tool
     2789                                                Name="VCCLCompilerTool"
     2790                                        />
     2791                                </FileConfiguration>
     2792                                <FileConfiguration
     2793                                        Name="Release|Win32"
     2794                                        ExcludedFromBuild="true"
     2795                                        >
     2796                                        <Tool
     2797                                                Name="VCCLCompilerTool"
     2798                                        />
     2799                                </FileConfiguration>
     2800                                <FileConfiguration
     2801                                        Name="Debug_Internal|Win32"
     2802                                        ExcludedFromBuild="true"
     2803                                        >
     2804                                        <Tool
     2805                                                Name="VCCLCompilerTool"
     2806                                        />
     2807                                </FileConfiguration>
     2808                                <FileConfiguration
     2809                                        Name="Debug_Cairo|Win32"
     2810                                        ExcludedFromBuild="true"
     2811                                        >
     2812                                        <Tool
     2813                                                Name="VCCLCompilerTool"
     2814                                        />
     2815                                </FileConfiguration>
     2816                                <FileConfiguration
     2817                                        Name="Release_Cairo|Win32"
     2818                                        ExcludedFromBuild="true"
     2819                                        >
     2820                                        <Tool
     2821                                                Name="VCCLCompilerTool"
     2822                                        />
     2823                                </FileConfiguration>
     2824                        </File>
     2825                        <File
     2826                                RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSEventSource.h"
     2827                                >
     2828                        </File>
     2829                        <File
    27822830                                RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSFile.cpp"
    27832831                                >
     
    1681116859                        <File
    1681216860                                RelativePath="..\page\win\EventHandlerWin.cpp"
     16861                                >
     16862                        </File>
     16863                        <File
     16864                                RelativePath="..\page\EventSource.cpp"
     16865                                >
     16866                        </File>
     16867                        <File
     16868                                RelativePath="..\page\EventSource.h"
    1681316869                                >
    1681416870                        </File>
     
    2877628832                                </File>
    2877728833                                <File
     28834                                        RelativePath="..\bindings\js\JSEventSourceConstructor.cpp"
     28835                                        >
     28836                                </File>
     28837                                <File
     28838                                        RelativePath="..\bindings\js\JSEventSourceConstructor.h"
     28839                                        >
     28840                                </File>
     28841                                <File
     28842                                        RelativePath="..\bindings\js\JSEventSourceCustom.cpp"
     28843                                        >
     28844                                </File>
     28845                                <File
    2877828846                                        RelativePath="..\bindings\js\JSEventTarget.cpp"
    2877928847                                        >
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r47313 r47323  
    44064406                DD7CDF250A23CF9800069928 /* CSSUnknownRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CCE0A1989CA007FB8C5 /* CSSUnknownRule.h */; };
    44074407                DDE63ED50B7D45A800226998 /* DOMTextEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 933A14750B7D1BAF00A53FFD /* DOMTextEvent.h */; };
     4408                E0FEF372B17C53EAC1C1FBEE /* EventSource.h in Headers */ = {isa = PBXBuildFile; fileRef = E0FEF371B17C53EAC1C1FBEE /* EventSource.h */; };
     4409                E0FEF372B27C53EAC1C1FBEE /* EventSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E0FEF371B27C53EAC1C1FBEE /* EventSource.cpp */; };
     4410                E0FEF372B37C53EAC1C1FBEE /* JSEventSource.h in Headers */ = {isa = PBXBuildFile; fileRef = E0FEF371B37C53EAC1C1FBEE /* JSEventSource.h */; };
     4411                E0FEF372B47C53EAC1C1FBEE /* JSEventSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E0FEF371B47C53EAC1C1FBEE /* JSEventSource.cpp */; };
     4412                E0FEF372B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E0FEF371B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp */; };
     4413                E0FEF372B67C53EAC1C1FBEE /* JSEventSourceConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = E0FEF371B67C53EAC1C1FBEE /* JSEventSourceConstructor.h */; };
     4414                E0FEF372B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E0FEF371B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp */; };
    44084415                E107400D0E77BDC00033AF24 /* JSMessageChannel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E107400B0E77BDC00033AF24 /* JSMessageChannel.cpp */; };
    44094416                E107400E0E77BDC00033AF24 /* JSMessageChannel.h in Headers */ = {isa = PBXBuildFile; fileRef = E107400C0E77BDC00033AF24 /* JSMessageChannel.h */; };
     
    93359342                DD05FE0B0B8BA3C6009ACDFE /* WebCoreObjCExtras.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebCoreObjCExtras.h; sourceTree = "<group>"; };
    93369343                DD763BB10992C2C900740B8E /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = /usr/lib/libxml2.dylib; sourceTree = "<absolute>"; };
     9344                E0FEF371B07C53EAC1C1FBEE /* EventSource.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = EventSource.idl; sourceTree = "<group>"; };
     9345                E0FEF371B17C53EAC1C1FBEE /* EventSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventSource.h; sourceTree = "<group>"; };
     9346                E0FEF371B27C53EAC1C1FBEE /* EventSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EventSource.cpp; sourceTree = "<group>"; };
     9347                E0FEF371B37C53EAC1C1FBEE /* JSEventSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEventSource.h; sourceTree = "<group>"; };
     9348                E0FEF371B47C53EAC1C1FBEE /* JSEventSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventSource.cpp; sourceTree = "<group>"; };
     9349                E0FEF371B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventSourceCustom.cpp; sourceTree = "<group>"; };
     9350                E0FEF371B67C53EAC1C1FBEE /* JSEventSourceConstructor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEventSourceConstructor.h; sourceTree = "<group>"; };
     9351                E0FEF371B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventSourceConstructor.cpp; sourceTree = "<group>"; };
    93379352                E107400B0E77BDC00033AF24 /* JSMessageChannel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSMessageChannel.cpp; sourceTree = "<group>"; };
    93389353                E107400C0E77BDC00033AF24 /* JSMessageChannel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSMessageChannel.h; sourceTree = "<group>"; };
     
    1061810633                                93C09A800B064F00005ABD4D /* EventHandler.cpp */,
    1061910634                                93C09A520B064DB3005ABD4D /* EventHandler.h */,
     10635                                E0FEF371B27C53EAC1C1FBEE /* EventSource.cpp */,
     10636                                E0FEF371B17C53EAC1C1FBEE /* EventSource.h */,
     10637                                E0FEF371B07C53EAC1C1FBEE /* EventSource.idl */,
    1062010638                                14993BE30B2F2B1C0050497F /* FocusController.cpp */,
    1062110639                                14993BE40B2F2B1C0050497F /* FocusController.h */,
     
    1366913687                                93B70D4D09EB0C7C009D8468 /* JSEventListener.cpp */,
    1367013688                                93B70D4E09EB0C7C009D8468 /* JSEventListener.h */,
     13689                                E0FEF371B67C53EAC1C1FBEE /* JSEventSourceConstructor.h */,
     13690                                E0FEF371B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp */,
    1367113691                                BC60901E0E91B8EC000C68B5 /* JSEventTarget.cpp */,
    1367213692                                BC60901D0E91B8EC000C68B5 /* JSEventTarget.h */,
     
    1383513855                                BC2ED5540C6B9BD300920BFF /* JSElementCustom.cpp */,
    1383613856                                BCEFAF4D0C317E6900FA81F6 /* JSEventCustom.cpp */,
     13857                                E0FEF371B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp */,
    1383713858                                FE80D7A60E9C1ED2000D6F75 /* JSGeolocationCustom.cpp */,
    1383813859                                BCE7B1920D4E86960075A539 /* JSHistoryCustom.cpp */,
     
    1396913990                                1403BA0B09EB18C700797C7F /* JSDOMWindow.cpp */,
    1397013991                                1403BA0E09EB18F800797C7F /* JSDOMWindow.h */,
     13992                                E0FEF371B37C53EAC1C1FBEE /* JSEventSource.h */,
     13993                                E0FEF371B47C53EAC1C1FBEE /* JSEventSource.cpp */,
    1397113994                                BC94D14C0C275C68006BC617 /* JSHistory.cpp */,
    1397213995                                BC94D14D0C275C68006BC617 /* JSHistory.h */,
     
    1593315956                                1CA19E160DC255CA0065A994 /* EventLoop.h in Headers */,
    1593415957                                939885C408B7E3D100E707C4 /* EventNames.h in Headers */,
     15958                                E0FEF372B17C53EAC1C1FBEE /* EventSource.h in Headers */,
    1593515959                                E12EDB7B0B308A78002704B6 /* EventTarget.h in Headers */,
    1593615960                                BC60D8F30D2A11E000B9918F /* ExceptionBase.h in Headers */,
     
    1621816242                                BC60D9C00D2A269A00B9918F /* JSEventException.h in Headers */,
    1621916243                                93B70D6A09EB0C7C009D8468 /* JSEventListener.h in Headers */,
     16244                                E0FEF372B37C53EAC1C1FBEE /* JSEventSource.h in Headers */,
     16245                                E0FEF372B67C53EAC1C1FBEE /* JSEventSourceConstructor.h in Headers */,
    1622016246                                BC60901F0E91B8EC000C68B5 /* JSEventTarget.h in Headers */,
    1622116247                                BC00F0150E0A189500FD04E3 /* JSFile.h in Headers */,
     
    1799518021                                1CA19E050DC255950065A994 /* EventLoopMac.mm in Sources */,
    1799618022                                939885C308B7E3D100E707C4 /* EventNames.cpp in Sources */,
     18023                                E0FEF372B27C53EAC1C1FBEE /* EventSource.cpp in Sources */,
    1799718024                                E12EDBEA0B308E0B002704B6 /* EventTarget.cpp in Sources */,
    1799818025                                BC60D8F20D2A11E000B9918F /* ExceptionBase.cpp in Sources */,
     
    1830118328                                BC60D9BF0D2A269A00B9918F /* JSEventException.cpp in Sources */,
    1830218329                                93B70D6909EB0C7C009D8468 /* JSEventListener.cpp in Sources */,
     18330                                E0FEF372B47C53EAC1C1FBEE /* JSEventSource.cpp in Sources */,
     18331                                E0FEF372B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp in Sources */,
     18332                                E0FEF372B57C53EAC1C1FBEE /* JSEventSourceCustom.cpp in Sources */,
    1830318333                                BC6090200E91B8EC000C68B5 /* JSEventTarget.cpp in Sources */,
    1830418334                                BC00F0140E0A189500FD04E3 /* JSFile.cpp in Sources */,
  • trunk/WebCore/WebCoreSources.bkl

    r47165 r47323  
    8787        bindings/js/JSElementCustom.cpp
    8888        bindings/js/JSEventCustom.cpp
     89        bindings/js/JSEventSourceConstructor.cpp
     90        bindings/js/JSEventSourceCustom.cpp
    8991        bindings/js/JSEventTarget.cpp
    9092        bindings/js/JSGeolocationCustom.cpp
     
    286288        DerivedSources/WebCore/JSErrorEvent.cpp
    287289        DerivedSources/WebCore/JSEvent.cpp
     290        DerivedSources/WebCore/JSEventSource.cpp
    288291        DerivedSources/WebCore/JSEventException.cpp
    289292        DerivedSources/WebCore/JSFile.cpp
     
    750753        page/DragController.cpp
    751754        page/EventHandler.cpp
     755        page/EventSource.cpp
    752756        page/FocusController.cpp
    753757        page/Frame.cpp
  • trunk/WebCore/bindings/js/JSDOMWindowCustom.cpp

    r47236 r47323  
    3939#include "JSEvent.h"
    4040#include "JSEventListener.h"
     41#include "JSEventSourceConstructor.h"
    4142#include "JSHTMLCollection.h"
    4243#include "JSHistory.h"
     
    428429}
    429430
     431#if ENABLE(EVENTSOURCE)
     432JSValue JSDOMWindow::eventSource(ExecState* exec) const
     433{
     434    return getDOMConstructor<JSEventSourceConstructor>(exec, this);
     435}
     436#endif
     437
    430438JSValue JSDOMWindow::image(ExecState* exec) const
    431439{
  • trunk/WebCore/bindings/js/JSEventTarget.cpp

    r47288 r47323  
    4444#include "XMLHttpRequestUpload.h"
    4545
     46#if ENABLE(EVENTSOURCE)
     47#include "EventSource.h"
     48#include "JSEventSource.h"
     49#endif
     50
    4651#if ENABLE(OFFLINE_WEB_APPLICATIONS)
    4752#include "DOMApplicationCache.h"
     
    7580        return jsNull();
    7681   
     82#if ENABLE(EVENTSOURCE)
     83    if (EventSource* eventSource = target->toEventSource())
     84        return toJS(exec, globalObject, eventSource);
     85#endif
     86
    7787#if ENABLE(SVG)
    7888    // SVGElementInstance supports both toSVGElementInstance and toNode since so much mouse handling code depends on toNode returning a valid node.
     
    140150        return static_cast<JSDOMWindowShell*>(asObject(value))->impl();
    141151
     152#if ENABLE(EVENTSOURCE)
     153    CONVERT_TO_EVENT_TARGET(EventSource)
     154#endif
     155
    142156#if ENABLE(OFFLINE_WEB_APPLICATIONS)
    143157    CONVERT_TO_EVENT_TARGET(DOMApplicationCache)
  • trunk/WebCore/bindings/js/JSWorkerContextCustom.cpp

    r47022 r47323  
    4444#include <interpreter/Interpreter.h>
    4545
     46#if ENABLE(EVENTSOURCE)
     47#include "JSEventSourceConstructor.h"
     48#endif
     49
    4650using namespace JSC;
    4751
     
    7781    return false;
    7882}
     83
     84#if ENABLE(EVENTSOURCE)
     85JSValue JSWorkerContext::eventSource(ExecState* exec) const
     86{
     87    return getDOMConstructor<JSEventSourceConstructor>(exec, this);
     88}
     89#endif
    7990
    8091JSValue JSWorkerContext::xmlHttpRequest(ExecState* exec) const
  • trunk/WebCore/dom/EventNames.h

    r46892 r47323  
    7474    macro(offline) \
    7575    macro(online) \
     76    macro(open) \
    7677    macro(overflowchanged) \
    7778    macro(paste) \
  • trunk/WebCore/dom/EventTarget.cpp

    r47056 r47323  
    4343EventTarget::~EventTarget()
    4444{
     45}
     46
     47EventSource* EventTarget::toEventSource()
     48{
     49    return 0;
    4550}
    4651
  • trunk/WebCore/dom/EventTarget.h

    r47056 r47323  
    4444    class Event;
    4545    class EventListener;
     46    class EventSource;
    4647    class MessagePort;
    4748    class Node;
     
    5960    class EventTarget {
    6061    public:
     62        virtual EventSource* toEventSource();
    6163        virtual MessagePort* toMessagePort();
    6264        virtual Node* toNode();
  • trunk/WebCore/page/DOMWindow.idl

    r47233 r47323  
    446446        attribute RangeExceptionConstructor RangeException;
    447447
     448#if ENABLE_EVENTSOURCE
     449        attribute [JSCCustomGetter] EventSourceConstructor EventSource; // Usable with new the operator
     450#endif
     451
    448452        // Mozilla has a separate XMLDocument object for XML documents.
    449453        // We just use Document for this.
  • trunk/WebCore/workers/WorkerContext.idl

    r47056 r47323  
    8282        attribute [JSCCustomGetter] MessageChannelConstructor MessageChannel;
    8383#endif
     84#if ENABLE_EVENTSOURCE
     85        attribute [JSCCustomGetter] EventSourceConstructor EventSource;
     86#endif
    8487        attribute [JSCCustomGetter] XMLHttpRequestConstructor XMLHttpRequest;
    8588    };
  • trunk/WebKit/mac/ChangeLog

    r47303 r47323  
     12009-08-15  Adam Bergkvist  <adam.bergkvist@ericsson.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Added ENABLE_EVENTSOURCE flag.
     6        https://bugs.webkit.org/show_bug.cgi?id=14997
     7
     8        * Configurations/FeatureDefines.xcconfig:
     9
    1102009-08-14  Mark Rowe  <mrowe@apple.com>
    211
  • trunk/WebKit/mac/Configurations/FeatureDefines.xcconfig

    r47056 r47323  
    3939ENABLE_DATAGRID = ENABLE_DATAGRID;
    4040ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE;
     41ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE;
    4142ENABLE_FILTERS = ;
    4243ENABLE_GEOLOCATION = ;
     
    6162ENABLE_XSLT = ENABLE_XSLT;
    6263
    63 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);
     64FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_RUBY) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XPATH) $(ENABLE_XSLT);
  • trunk/WebKitTools/ChangeLog

    r47321 r47323  
     12009-08-14  Adam Bergkvist  <adam.bergkvist@ericsson.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Added EventSource to the build script (default on).
     6        https://bugs.webkit.org/show_bug.cgi?id=14997
     7
     8        * Scripts/build-webkit:
     9
    1102009-08-15  Ryosuke Niwa  <rniwa@webkit.org>
    211
  • trunk/WebKitTools/Scripts/build-webkit

    r47178 r47323  
    4747
    4848my ($threeDCanvasSupport, $threeDRenderingSupport, $channelMessagingSupport, $databaseSupport, $datagridSupport, $domStorageSupport,
    49     $filtersSupport, $geolocationSupport, $gnomeKeyringSupport, $iconDatabaseSupport,
     49    $eventsourceSupport, $filtersSupport, $geolocationSupport, $gnomeKeyringSupport, $iconDatabaseSupport,
    5050    $javaScriptDebuggerSupport, $offlineWebApplicationSupport, $rubySupport, $sharedWorkersSupport,
    5151    $svgSupport, $svgAnimationSupport, $svgAsImageSupport, $svgDOMObjCBindingsSupport, $svgFontsSupport,
     
    7474    { option => "dom-storage", desc => "Toggle DOM Storage Support",
    7575      define => "ENABLE_DOM_STORAGE", default => 1, value => \$domStorageSupport },
     76
     77    { option => "eventsource", desc => "Toggle server-sent events support",
     78      define => "ENABLE_EVENTSOURCE", default => 1, value => \$eventsourceSupport },
    7679
    7780    { option => "filters", desc => "Toggle Filters support",
Note: See TracChangeset for help on using the changeset viewer.