JavaScriptCore: Enable SHARED_WORKERS by default
authorDrew Wilson <atwilson@chromium.org>
Mon, 7 Sep 2009 19:53:13 +0000 (19:53 +0000)
committerDrew Wilson <atwilson@chromium.org>
Mon, 7 Sep 2009 19:53:13 +0000 (19:53 +0000)
commit8f1daf1e99f18d6ec0678ffd23bf8b55992633fc
tree32e1abac100add3f1bae78fa96ff93238820f4c7
parentfd7f0e64e16493bc53e4f1de16cb28f651cbe4ac
JavaScriptCore: Enable SHARED_WORKERS by default
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

* Configurations/FeatureDefines.xcconfig:

WebCore: Enable SHARED_WORKERS by default.
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

Tests (enabled in a separate patch):
       fast/workers/shared-worker-constructor.html
       fast/workers/shared-worker-context-gc.html
       fast/workers/shared-worker-event-listener.html
       fast/workers/shared-worker-exception.html
       fast/workers/shared-worker-frame-lifecycle.html
       fast/workers/shared-worker-gc.html
       fast/workers/shared-worker-lifecycle.html
       fast/workers/shared-worker-load-error.html
       fast/workers/shared-worker-location.html
       fast/workers/shared-worker-navigator.html
       fast/workers/shared-worker-replace-global-constructor.html
       fast/workers/shared-worker-replace-self.html
       fast/workers/shared-worker-shared.html
       fast/workers/shared-worker-simple.html
       http/tests/workers/shared-worker-importScripts.html
       http/tests/workers/shared-worker-redirect.html
       http/tests/xmlhttprequest/workers/shared-worker-close.html
       http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
       http/tests/xmlhttprequest/workers/shared-worker-methods.html
       http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html

* config.h: Removed some whitespace/touched the file to force a full rebuild on the build-bots.
* Configurations/FeatureDefines.xcconfig:
* WebCore.pro:
* WebCore.vcproj/WebCoreCommon.vsprops:
* WebCore.vcproj/build-generated-files.sh:
* dom/DOMWindow.idl: Removed unnecessary whitespace to force a rebuild on the build-bots to pickup the flag change.
* workers/DefaultSharedWorkerRepository.cpp:
(WebCore::SharedWorkerScriptLoader::load):
Clean up bitrot in SharedWorker code - DenyCrossOriginRedirect is now DenyCrossOriginRequests.
* workers/SharedWorkerContext.cpp:
(WebCore::SharedWorkerContext::dispatchConnect):
Clean up bitrot - updated SharedWorker code to reflect new MessageEvent API.

WebKit/mac: Enable SHARED_WORKERS by default.
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

* Configurations/FeatureDefines.xcconfig:

WebKit/win: Enable SHARED_WORKERS by default.
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

* WebKit.vcproj/WebKit.vcproj:

WebKitTools: Enable SHARED_WORKERS by default
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

* Scripts/build-webkit:

LayoutTests: Enable SHARED_WORKERS by default
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

Update test expectations to reflect the availability of the SharedWorker constructor.
Fixup bitrot in disabled tests - now reflects new MessagePort API.

* fast/dom/Window/window-properties-expected.txt:
Updated expectations now that window.SharedWorkers is defined.
* fast/dom/prototype-inheritance-2-expected.txt:
Updated expectations now that window.SharedWorkers is defined.
* fast/dom/prototype-inheritance-expected.txt:
Updated expectations now that window.SharedWorkers is defined.
* fast/workers/shared-worker-script-error-expected.txt
Updated expectations to reflect current (correct) behavior (unhandled exceptions are logged to console).
* fast/workers/shared-worker-script-error.html
Pauses before exiting the test to allow pending console errors to get emitted (makes test less flaky).
* fast/workers/resources/shared-worker-script-error.js
(onerror):
Now properly handles the exception (onerror function has to return false to swallow the exception).
* fast/js/global-constructors-expected.txt:
Updated expectations now that window.SharedWorkers is defined.
* http/tests/workers/resources/worker-importScripts.js:
Clean up bitrot in tests - MessageEvent.messagePort => MessageEvent.ports.
(handleConnect.self.postMessage):
(handleConnect):
* http/tests/workers/resources/worker-redirect-target.js:
Clean up bitrot in tests - MessageEvent.messagePort => MessageEvent.ports.
(self.onconnect):
* http/tests/xmlhttprequest/workers/resources/worker-pre.js:
Clean up bitrot in tests - MessageEvent.messagePort => MessageEvent.ports.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
27 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/Configurations/FeatureDefines.xcconfig
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-properties-expected.txt
LayoutTests/fast/dom/prototype-inheritance-2-expected.txt
LayoutTests/fast/dom/prototype-inheritance-expected.txt
LayoutTests/fast/js/global-constructors-expected.txt
LayoutTests/fast/workers/resources/shared-worker-script-error.js
LayoutTests/fast/workers/shared-worker-script-error-expected.txt
LayoutTests/fast/workers/shared-worker-script-error.html-disabled
LayoutTests/http/tests/workers/resources/worker-importScripts.js
LayoutTests/http/tests/workers/resources/worker-redirect-target.js
LayoutTests/http/tests/xmlhttprequest/workers/resources/worker-pre.js
WebCore/ChangeLog
WebCore/Configurations/FeatureDefines.xcconfig
WebCore/WebCore.pro
WebCore/WebCore.vcproj/WebCoreCommon.vsprops
WebCore/WebCore.vcproj/build-generated-files.sh
WebCore/page/DOMWindow.idl
WebCore/workers/DefaultSharedWorkerRepository.cpp
WebCore/workers/SharedWorkerContext.cpp
WebKit/mac/ChangeLog
WebKit/mac/Configurations/FeatureDefines.xcconfig
WebKit/win/ChangeLog
WebKit/win/WebKit.vcproj/WebKit.vcproj
WebKitTools/ChangeLog
WebKitTools/Scripts/build-webkit