Remove support for SharedWorkers
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Jan 2015 00:40:49 +0000 (00:40 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Jan 2015 00:40:49 +0000 (00:40 +0000)
https://bugs.webkit.org/show_bug.cgi?id=140344

Reviewed by Anders Carlsson.

.:

* Source/cmake/OptionsEfl.cmake:
* Source/cmake/OptionsGTK.cmake:
* Source/cmake/OptionsMac.cmake:
* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

* CMakeLists.txt:
* Configurations/FeatureDefines.xcconfig:
* DerivedSources.cpp:
* DerivedSources.make:
* PlatformGTK.cmake:
* PlatformMac.cmake:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* bindings/generic/RuntimeEnabledFeatures.cpp:
(WebCore::RuntimeEnabledFeatures::sharedWorkerEnabled): Deleted.
* bindings/generic/RuntimeEnabledFeatures.h:
* bindings/js/JSBindingsAllInOne.cpp:
* bindings/js/JSDOMWindowCustom.cpp:
* bindings/js/JSSharedWorkerCustom.cpp: Removed.
* bindings/js/JSWorkerGlobalScopeBase.cpp:
(WebCore::toJSWorkerGlobalScope):
(WebCore::toJSSharedWorkerGlobalScope): Deleted.
* bindings/js/JSWorkerGlobalScopeBase.h:
* bindings/js/WorkerScriptController.cpp:
(WebCore::WorkerScriptController::initScript):
* bindings/scripts/IDLAttributes.txt:
* bindings/scripts/preprocess-idls.pl:
* dom/Document.cpp:
(WebCore::Document::prepareForDestruction):
* dom/EventTarget.h:
* dom/EventTargetFactory.in:
* history/PageCache.cpp:
(WebCore::logCanCacheFrameDecision):
(WebCore::PageCache::canCachePageContainingThisFrame):
* loader/FrameLoader.cpp:
* page/SecurityOrigin.h:
(WebCore::SecurityOrigin::canAccessLocalStorage):
(WebCore::SecurityOrigin::canAccessSharedWorkers): Deleted.
* platform/FeatureCounterKeys.h:
* platform/PlatformStrategies.h:
(WebCore::PlatformStrategies::PlatformStrategies):
(WebCore::PlatformStrategies::sharedWorkerStrategy): Deleted.
* workers/DefaultSharedWorkerRepository.cpp: Removed.
* workers/DefaultSharedWorkerRepository.h: Removed.
* workers/SharedWorker.cpp: Removed.
* workers/SharedWorker.h: Removed.
* workers/SharedWorker.idl: Removed.
* workers/SharedWorkerGlobalScope.cpp: Removed.
* workers/SharedWorkerGlobalScope.h: Removed.
* workers/SharedWorkerGlobalScope.idl: Removed.
* workers/SharedWorkerRepository.cpp: Removed.
* workers/SharedWorkerRepository.h: Removed.
* workers/SharedWorkerStrategy.h: Removed.
* workers/SharedWorkerThread.cpp: Removed.
* workers/SharedWorkerThread.h: Removed.
* workers/WorkerGlobalScope.h:
(WebCore::WorkerGlobalScope::isSharedWorkerGlobalScope): Deleted.

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:
* WebCoreSupport/WebPlatformStrategies.h:
* WebCoreSupport/WebPlatformStrategies.mm:
(WebPlatformStrategies::createSharedWorkerStrategy): Deleted.

Source/WebKit/win:

* WebCoreSupport/WebPlatformStrategies.cpp:
(WebPlatformStrategies::createSharedWorkerStrategy): Deleted.
* WebCoreSupport/WebPlatformStrategies.h:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:
* NetworkProcess/NetworkProcessPlatformStrategies.cpp:
(WebKit::NetworkProcessPlatformStrategies::createSharedWorkerStrategy): Deleted.
* NetworkProcess/NetworkProcessPlatformStrategies.h:
* WebKit2Prefix.h:
* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::createSharedWorkerStrategy): Deleted.
(WebKit::WebPlatformStrategies::isAvailable): Deleted.
* WebProcess/WebCoreSupport/WebPlatformStrategies.h:

Source/WTF:

* wtf/FeatureDefines.h:

Tools:

* Scripts/webkitperl/FeatureList.pm:

LayoutTests:

Remove shared worker specific tests and update others to remove references to shared workers.

* fast/constructors/constructor-as-function-crash-expected.txt:
* fast/constructors/constructor-as-function-crash.html:
* fast/dom/call-a-constructor-as-a-function-expected.txt:
* fast/dom/call-a-constructor-as-a-function.html:
* fast/workers/resources/create-shared-worker-frame.html: Removed.
* fast/workers/resources/shared-worker-common.js: Removed.
* fast/workers/resources/shared-worker-count-connections.js: Removed.
* fast/workers/resources/shared-worker-create-common.js: Removed.
* fast/workers/resources/shared-worker-exception.js: Removed.
* fast/workers/resources/shared-worker-iframe.html: Removed.
* fast/workers/resources/shared-worker-lifecycle.js: Removed.
* fast/workers/resources/shared-worker-name.js: Removed.
* fast/workers/resources/shared-worker-script-error.js: Removed.
* fast/workers/shared-worker-constructor-expected.txt: Removed.
* fast/workers/shared-worker-constructor.html: Removed.
* fast/workers/shared-worker-context-gc-expected.txt: Removed.
* fast/workers/shared-worker-context-gc.html: Removed.
* fast/workers/shared-worker-event-listener-expected.txt: Removed.
* fast/workers/shared-worker-event-listener.html: Removed.
* fast/workers/shared-worker-exception-expected.txt: Removed.
* fast/workers/shared-worker-exception.html: Removed.
* fast/workers/shared-worker-frame-lifecycle-expected.txt: Removed.
* fast/workers/shared-worker-frame-lifecycle.html: Removed.
* fast/workers/shared-worker-gc-expected.txt: Removed.
* fast/workers/shared-worker-gc.html: Removed.
* fast/workers/shared-worker-in-iframe-expected.txt: Removed.
* fast/workers/shared-worker-in-iframe.html: Removed.
* fast/workers/shared-worker-lifecycle-expected.txt: Removed.
* fast/workers/shared-worker-lifecycle.html: Removed.
* fast/workers/shared-worker-load-error-expected.txt: Removed.
* fast/workers/shared-worker-load-error.html: Removed.
* fast/workers/shared-worker-location-expected.txt: Removed.
* fast/workers/shared-worker-location.html: Removed.
* fast/workers/shared-worker-messageevent-source-expected.txt: Removed.
* fast/workers/shared-worker-messageevent-source.html: Removed.
* fast/workers/shared-worker-name-expected.txt: Removed.
* fast/workers/shared-worker-name.html: Removed.
* fast/workers/shared-worker-navigator-expected.txt: Removed.
* fast/workers/shared-worker-navigator.html: Removed.
* fast/workers/shared-worker-replace-global-constructor-expected.txt: Removed.
* fast/workers/shared-worker-replace-global-constructor.html: Removed.
* fast/workers/shared-worker-replace-self-expected.txt: Removed.
* fast/workers/shared-worker-replace-self.html: Removed.
* fast/workers/shared-worker-script-error-expected.txt: Removed.
* fast/workers/shared-worker-script-error.html: Removed.
* fast/workers/shared-worker-shared-expected.txt: Removed.
* fast/workers/shared-worker-shared.html: Removed.
* fast/workers/shared-worker-simple-expected.txt: Removed.
* fast/workers/shared-worker-simple.html: Removed.
* fast/workers/shared-worker-storagequota-query-usage-expected.txt: Removed.
* fast/workers/shared-worker-storagequota-query-usage.html: Removed.
* fast/workers/worker-crash-with-invalid-location-expected.txt:
* fast/workers/worker-crash-with-invalid-location.html:
* http/tests/resources/js-test-pre.js:
(startWorker):
(.worker.port.onmessage): Deleted.
(.self.onconnect.workerPort.onmessage): Deleted.
(.self.onconnect): Deleted.
* http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js: Removed.
* http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed-expected.txt: Removed.
* http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html: Removed.
* http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked-expected.txt: Removed.
* http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html: Removed.
* http/tests/security/cross-origin-shared-worker-allowed-expected.txt: Removed.
* http/tests/security/cross-origin-shared-worker-allowed.html: Removed.
* http/tests/security/cross-origin-shared-worker-expected.txt: Removed.
* http/tests/security/cross-origin-shared-worker.html: Removed.
* http/tests/security/resources/cross-origin-iframe-for-shared-worker.html: Removed.
* http/tests/security/resources/iframe-for-storage-blocking-changed-shared-worker.html: Removed.
* http/tests/security/resources/shared-worker.js: Removed.
* http/tests/security/same-origin-shared-worker-blocked-expected.txt: Removed.
* http/tests/security/same-origin-shared-worker-blocked.html: Removed.
* http/tests/security/storage-blocking-loosened-shared-worker-expected.txt: Removed.
* http/tests/security/storage-blocking-loosened-shared-worker.html: Removed.
* http/tests/security/storage-blocking-strengthened-shared-worker-expected.txt: Removed.
* http/tests/security/storage-blocking-strengthened-shared-worker.html: Removed.
* http/tests/websocket/tests/hybi/workers/close-in-shared-worker-expected.txt: Removed.
* http/tests/websocket/tests/hybi/workers/close-in-shared-worker.html: Removed.
* http/tests/websocket/tests/hybi/workers/shared-worker-simple-expected.txt: Removed.
* http/tests/websocket/tests/hybi/workers/shared-worker-simple.html: Removed.
* http/tests/workers/shared-worker-importScripts-expected.txt: Removed.
* http/tests/workers/shared-worker-importScripts.html: Removed.
* http/tests/workers/shared-worker-invalid-url-expected.txt: Removed.
* http/tests/workers/shared-worker-invalid-url.html: Removed.
* http/tests/workers/shared-worker-redirect-expected.txt: Removed.
* http/tests/workers/shared-worker-redirect.html: Removed.
* http/tests/xmlhttprequest/workers/resources/shared-worker-create.js: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple-expected.txt: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple.html: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-close-expected.txt: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-close.html: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-methods-async.html: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-methods.html: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-referer-expected.txt: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-referer.html: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found-expected.txt: Removed.
* http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html: Removed.
* js/dom/constructor-length.html:
* js/dom/global-constructors-attributes-expected.txt:
* js/dom/global-constructors-attributes-shared-worker-expected.txt: Removed.
* js/dom/global-constructors-attributes-shared-worker.html: Removed.
* platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Removed.
* platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Removed.
* platform/efl/js/dom/constructor-length-expected.txt:
* platform/efl/js/dom/global-constructors-attributes-expected.txt:
* platform/efl/js/dom/global-constructors-attributes-shared-worker-expected.txt: Removed.
* platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Removed.
* platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Removed.
* platform/gtk/js/dom/constructor-length-expected.txt:
* platform/gtk/js/dom/global-constructors-attributes-expected.txt:
* platform/ios-sim-deprecated/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/ios-sim-deprecated/fast/js/constructor-length-expected.txt:
* platform/ios-sim-deprecated/fast/js/global-constructors-expected.txt:
* platform/ios-sim-deprecated/fast/workers/shared-worker-storagequota-query-usage-expected.txt: Removed.
* platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-allowed-expected.txt: Removed.
* platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-expected.txt: Removed.
* platform/ios-sim-deprecated/js/dom/global-constructors-attributes-expected.txt:
* platform/ios-sim-deprecated/storage/indexeddb/basics-shared-workers-expected.txt: Removed.
* platform/ios-simulator/js/dom/constructor-length-expected.txt:
* platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-wk2/TestExpectations:
* platform/mac/js/dom/constructor-length-expected.txt:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:
* platform/win/fast/dom/call-a-constructor-as-a-function-expected.txt:
* platform/win/js/dom/global-constructors-attributes-expected.txt:
* platform/win/js/dom/global-constructors-attributes-shared-worker-expected.txt: Removed.
* resources/js-test-pre.js:
(startWorker):
(.worker.port.onmessage): Deleted.
(.self.onconnect.workerPort.onmessage): Deleted.
(.self.onconnect): Deleted.
* resources/js-test.js:
(startWorker):
(.worker.port.onmessage): Deleted.
(.self.onconnect.workerPort.onmessage): Deleted.
(.self.onconnect): Deleted.
* storage/indexeddb/basics-shared-workers-expected.txt: Removed.
* storage/indexeddb/basics-shared-workers.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178310 268f45cc-cd09-0410-ab3c-d52691b4dbfc

198 files changed:
ChangeLog
LayoutTests/ChangeLog
LayoutTests/fast/constructors/constructor-as-function-crash-expected.txt
LayoutTests/fast/constructors/constructor-as-function-crash.html
LayoutTests/fast/dom/call-a-constructor-as-a-function-expected.txt
LayoutTests/fast/dom/call-a-constructor-as-a-function.html
LayoutTests/fast/workers/resources/create-shared-worker-frame.html [deleted file]
LayoutTests/fast/workers/resources/shared-worker-common.js [deleted file]
LayoutTests/fast/workers/resources/shared-worker-count-connections.js [deleted file]
LayoutTests/fast/workers/resources/shared-worker-create-common.js [deleted file]
LayoutTests/fast/workers/resources/shared-worker-exception.js [deleted file]
LayoutTests/fast/workers/resources/shared-worker-iframe.html [deleted file]
LayoutTests/fast/workers/resources/shared-worker-lifecycle.js [deleted file]
LayoutTests/fast/workers/resources/shared-worker-name.js [deleted file]
LayoutTests/fast/workers/resources/shared-worker-script-error.js [deleted file]
LayoutTests/fast/workers/shared-worker-constructor-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-constructor.html [deleted file]
LayoutTests/fast/workers/shared-worker-context-gc-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-context-gc.html [deleted file]
LayoutTests/fast/workers/shared-worker-event-listener-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-event-listener.html [deleted file]
LayoutTests/fast/workers/shared-worker-exception-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-exception.html [deleted file]
LayoutTests/fast/workers/shared-worker-frame-lifecycle-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-frame-lifecycle.html [deleted file]
LayoutTests/fast/workers/shared-worker-gc-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-gc.html [deleted file]
LayoutTests/fast/workers/shared-worker-in-iframe-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-in-iframe.html [deleted file]
LayoutTests/fast/workers/shared-worker-lifecycle-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-lifecycle.html [deleted file]
LayoutTests/fast/workers/shared-worker-load-error-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-load-error.html [deleted file]
LayoutTests/fast/workers/shared-worker-location-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-location.html [deleted file]
LayoutTests/fast/workers/shared-worker-messageevent-source-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-messageevent-source.html [deleted file]
LayoutTests/fast/workers/shared-worker-name-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-name.html [deleted file]
LayoutTests/fast/workers/shared-worker-navigator-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-navigator.html [deleted file]
LayoutTests/fast/workers/shared-worker-replace-global-constructor-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-replace-global-constructor.html [deleted file]
LayoutTests/fast/workers/shared-worker-replace-self-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-replace-self.html [deleted file]
LayoutTests/fast/workers/shared-worker-script-error-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-script-error.html [deleted file]
LayoutTests/fast/workers/shared-worker-shared-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-shared.html [deleted file]
LayoutTests/fast/workers/shared-worker-simple-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-simple.html [deleted file]
LayoutTests/fast/workers/shared-worker-storagequota-query-usage-expected.txt [deleted file]
LayoutTests/fast/workers/shared-worker-storagequota-query-usage.html [deleted file]
LayoutTests/fast/workers/worker-crash-with-invalid-location-expected.txt
LayoutTests/fast/workers/worker-crash-with-invalid-location.html
LayoutTests/http/tests/resources/js-test-pre.js
LayoutTests/http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js [deleted file]
LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed-expected.txt [deleted file]
LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html [deleted file]
LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked-expected.txt [deleted file]
LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html [deleted file]
LayoutTests/http/tests/security/cross-origin-shared-worker-allowed-expected.txt [deleted file]
LayoutTests/http/tests/security/cross-origin-shared-worker-allowed.html [deleted file]
LayoutTests/http/tests/security/cross-origin-shared-worker-expected.txt [deleted file]
LayoutTests/http/tests/security/cross-origin-shared-worker.html [deleted file]
LayoutTests/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html [deleted file]
LayoutTests/http/tests/security/resources/iframe-for-storage-blocking-changed-shared-worker.html [deleted file]
LayoutTests/http/tests/security/resources/shared-worker.js [deleted file]
LayoutTests/http/tests/security/same-origin-shared-worker-blocked-expected.txt [deleted file]
LayoutTests/http/tests/security/same-origin-shared-worker-blocked.html [deleted file]
LayoutTests/http/tests/security/storage-blocking-loosened-shared-worker-expected.txt [deleted file]
LayoutTests/http/tests/security/storage-blocking-loosened-shared-worker.html [deleted file]
LayoutTests/http/tests/security/storage-blocking-strengthened-shared-worker-expected.txt [deleted file]
LayoutTests/http/tests/security/storage-blocking-strengthened-shared-worker.html [deleted file]
LayoutTests/http/tests/websocket/tests/hybi/workers/close-in-shared-worker-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hybi/workers/close-in-shared-worker.html [deleted file]
LayoutTests/http/tests/websocket/tests/hybi/workers/shared-worker-simple-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hybi/workers/shared-worker-simple.html [deleted file]
LayoutTests/http/tests/workers/shared-worker-importScripts-expected.txt [deleted file]
LayoutTests/http/tests/workers/shared-worker-importScripts.html [deleted file]
LayoutTests/http/tests/workers/shared-worker-invalid-url-expected.txt [deleted file]
LayoutTests/http/tests/workers/shared-worker-invalid-url.html [deleted file]
LayoutTests/http/tests/workers/shared-worker-redirect-expected.txt [deleted file]
LayoutTests/http/tests/workers/shared-worker-redirect.html [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/resources/shared-worker-create.js [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple-expected.txt [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple.html [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-close-expected.txt [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-close.html [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async.html [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods.html [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-referer-expected.txt [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-referer.html [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found-expected.txt [deleted file]
LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html [deleted file]
LayoutTests/js/dom/constructor-length.html
LayoutTests/js/dom/global-constructors-attributes-expected.txt
LayoutTests/js/dom/global-constructors-attributes-shared-worker-expected.txt [deleted file]
LayoutTests/js/dom/global-constructors-attributes-shared-worker.html [deleted file]
LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt [deleted file]
LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt [deleted file]
LayoutTests/platform/efl/js/dom/constructor-length-expected.txt
LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/efl/js/dom/global-constructors-attributes-shared-worker-expected.txt [deleted file]
LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt [deleted file]
LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt [deleted file]
LayoutTests/platform/gtk/js/dom/constructor-length-expected.txt
LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/window-property-descriptors-expected.txt
LayoutTests/platform/ios-sim-deprecated/fast/js/constructor-length-expected.txt
LayoutTests/platform/ios-sim-deprecated/fast/js/global-constructors-expected.txt
LayoutTests/platform/ios-sim-deprecated/fast/workers/shared-worker-storagequota-query-usage-expected.txt [deleted file]
LayoutTests/platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-allowed-expected.txt [deleted file]
LayoutTests/platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-expected.txt [deleted file]
LayoutTests/platform/ios-sim-deprecated/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/ios-sim-deprecated/storage/indexeddb/basics-shared-workers-expected.txt [deleted file]
LayoutTests/platform/ios-simulator/js/dom/constructor-length-expected.txt
LayoutTests/platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-wk2/TestExpectations
LayoutTests/platform/mac/js/dom/constructor-length-expected.txt
LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/win/fast/dom/call-a-constructor-as-a-function-expected.txt
LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/win/js/dom/global-constructors-attributes-shared-worker-expected.txt [deleted file]
LayoutTests/resources/js-test-pre.js
LayoutTests/resources/js-test.js
LayoutTests/storage/indexeddb/basics-shared-workers-expected.txt [deleted file]
LayoutTests/storage/indexeddb/basics-shared-workers.html [deleted file]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
Source/WTF/ChangeLog
Source/WTF/wtf/FeatureDefines.h
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/Configurations/FeatureDefines.xcconfig
Source/WebCore/DerivedSources.cpp
Source/WebCore/DerivedSources.make
Source/WebCore/PlatformGTK.cmake
Source/WebCore/PlatformMac.cmake
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
Source/WebCore/bindings/js/JSBindingsAllInOne.cpp
Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
Source/WebCore/bindings/js/JSSharedWorkerCustom.cpp [deleted file]
Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp
Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.h
Source/WebCore/bindings/js/WorkerScriptController.cpp
Source/WebCore/bindings/scripts/IDLAttributes.txt
Source/WebCore/bindings/scripts/preprocess-idls.pl
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/EventTarget.h
Source/WebCore/dom/EventTargetFactory.in
Source/WebCore/history/PageCache.cpp
Source/WebCore/loader/FrameLoader.cpp
Source/WebCore/page/SecurityOrigin.h
Source/WebCore/platform/FeatureCounterKeys.h
Source/WebCore/platform/PlatformStrategies.h
Source/WebCore/workers/DefaultSharedWorkerRepository.cpp [deleted file]
Source/WebCore/workers/DefaultSharedWorkerRepository.h [deleted file]
Source/WebCore/workers/SharedWorker.cpp [deleted file]
Source/WebCore/workers/SharedWorker.h [deleted file]
Source/WebCore/workers/SharedWorker.idl [deleted file]
Source/WebCore/workers/SharedWorkerGlobalScope.cpp [deleted file]
Source/WebCore/workers/SharedWorkerGlobalScope.h [deleted file]
Source/WebCore/workers/SharedWorkerGlobalScope.idl [deleted file]
Source/WebCore/workers/SharedWorkerRepository.cpp [deleted file]
Source/WebCore/workers/SharedWorkerRepository.h [deleted file]
Source/WebCore/workers/SharedWorkerStrategy.h [deleted file]
Source/WebCore/workers/SharedWorkerThread.cpp [deleted file]
Source/WebCore/workers/SharedWorkerThread.h [deleted file]
Source/WebCore/workers/WorkerGlobalScope.h
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
Source/WebKit/mac/WebCoreSupport/WebPlatformStrategies.h
Source/WebKit/mac/WebCoreSupport/WebPlatformStrategies.mm
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebCoreSupport/WebPlatformStrategies.cpp
Source/WebKit/win/WebCoreSupport/WebPlatformStrategies.h
Source/WebKit2/ChangeLog
Source/WebKit2/Configurations/FeatureDefines.xcconfig
Source/WebKit2/NetworkProcess/NetworkProcessPlatformStrategies.cpp
Source/WebKit2/NetworkProcess/NetworkProcessPlatformStrategies.h
Source/WebKit2/WebKit2Prefix.h
Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h
Source/cmake/OptionsEfl.cmake
Source/cmake/OptionsGTK.cmake
Source/cmake/OptionsMac.cmake
Source/cmake/WebKitFeatures.cmake
Source/cmakeconfig.h.cmake
Tools/ChangeLog
Tools/Scripts/webkitperl/FeatureList.pm

index 876343e..be09c2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2015-01-11  Sam Weinig  <sam@webkit.org>
+
+        Remove support for SharedWorkers
+        https://bugs.webkit.org/show_bug.cgi?id=140344
+
+        Reviewed by Anders Carlsson.
+
+        * Source/cmake/OptionsEfl.cmake:
+        * Source/cmake/OptionsGTK.cmake:
+        * Source/cmake/OptionsMac.cmake:
+        * Source/cmake/WebKitFeatures.cmake:
+        * Source/cmakeconfig.h.cmake:
+
 2015-01-10  Dan Bernstein  <mitz@apple.com>
 
         [Xcode, iOS] Files are recompiled when alternating between using make and the Xcode IDE
index 28d83e3..a5baa27 100644 (file)
@@ -1,3 +1,154 @@
+2015-01-11  Sam Weinig  <sam@webkit.org>
+
+        Remove support for SharedWorkers
+        https://bugs.webkit.org/show_bug.cgi?id=140344
+
+        Reviewed by Anders Carlsson.
+
+        Remove shared worker specific tests and update others to remove references to shared workers.
+
+        * fast/constructors/constructor-as-function-crash-expected.txt:
+        * fast/constructors/constructor-as-function-crash.html:
+        * fast/dom/call-a-constructor-as-a-function-expected.txt:
+        * fast/dom/call-a-constructor-as-a-function.html:
+        * fast/workers/resources/create-shared-worker-frame.html: Removed.
+        * fast/workers/resources/shared-worker-common.js: Removed.
+        * fast/workers/resources/shared-worker-count-connections.js: Removed.
+        * fast/workers/resources/shared-worker-create-common.js: Removed.
+        * fast/workers/resources/shared-worker-exception.js: Removed.
+        * fast/workers/resources/shared-worker-iframe.html: Removed.
+        * fast/workers/resources/shared-worker-lifecycle.js: Removed.
+        * fast/workers/resources/shared-worker-name.js: Removed.
+        * fast/workers/resources/shared-worker-script-error.js: Removed.
+        * fast/workers/shared-worker-constructor-expected.txt: Removed.
+        * fast/workers/shared-worker-constructor.html: Removed.
+        * fast/workers/shared-worker-context-gc-expected.txt: Removed.
+        * fast/workers/shared-worker-context-gc.html: Removed.
+        * fast/workers/shared-worker-event-listener-expected.txt: Removed.
+        * fast/workers/shared-worker-event-listener.html: Removed.
+        * fast/workers/shared-worker-exception-expected.txt: Removed.
+        * fast/workers/shared-worker-exception.html: Removed.
+        * fast/workers/shared-worker-frame-lifecycle-expected.txt: Removed.
+        * fast/workers/shared-worker-frame-lifecycle.html: Removed.
+        * fast/workers/shared-worker-gc-expected.txt: Removed.
+        * fast/workers/shared-worker-gc.html: Removed.
+        * fast/workers/shared-worker-in-iframe-expected.txt: Removed.
+        * fast/workers/shared-worker-in-iframe.html: Removed.
+        * fast/workers/shared-worker-lifecycle-expected.txt: Removed.
+        * fast/workers/shared-worker-lifecycle.html: Removed.
+        * fast/workers/shared-worker-load-error-expected.txt: Removed.
+        * fast/workers/shared-worker-load-error.html: Removed.
+        * fast/workers/shared-worker-location-expected.txt: Removed.
+        * fast/workers/shared-worker-location.html: Removed.
+        * fast/workers/shared-worker-messageevent-source-expected.txt: Removed.
+        * fast/workers/shared-worker-messageevent-source.html: Removed.
+        * fast/workers/shared-worker-name-expected.txt: Removed.
+        * fast/workers/shared-worker-name.html: Removed.
+        * fast/workers/shared-worker-navigator-expected.txt: Removed.
+        * fast/workers/shared-worker-navigator.html: Removed.
+        * fast/workers/shared-worker-replace-global-constructor-expected.txt: Removed.
+        * fast/workers/shared-worker-replace-global-constructor.html: Removed.
+        * fast/workers/shared-worker-replace-self-expected.txt: Removed.
+        * fast/workers/shared-worker-replace-self.html: Removed.
+        * fast/workers/shared-worker-script-error-expected.txt: Removed.
+        * fast/workers/shared-worker-script-error.html: Removed.
+        * fast/workers/shared-worker-shared-expected.txt: Removed.
+        * fast/workers/shared-worker-shared.html: Removed.
+        * fast/workers/shared-worker-simple-expected.txt: Removed.
+        * fast/workers/shared-worker-simple.html: Removed.
+        * fast/workers/shared-worker-storagequota-query-usage-expected.txt: Removed.
+        * fast/workers/shared-worker-storagequota-query-usage.html: Removed.
+        * fast/workers/worker-crash-with-invalid-location-expected.txt:
+        * fast/workers/worker-crash-with-invalid-location.html:
+        * http/tests/resources/js-test-pre.js:
+        (startWorker):
+        (.worker.port.onmessage): Deleted.
+        (.self.onconnect.workerPort.onmessage): Deleted.
+        (.self.onconnect): Deleted.
+        * http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js: Removed.
+        * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed-expected.txt: Removed.
+        * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html: Removed.
+        * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked-expected.txt: Removed.
+        * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html: Removed.
+        * http/tests/security/cross-origin-shared-worker-allowed-expected.txt: Removed.
+        * http/tests/security/cross-origin-shared-worker-allowed.html: Removed.
+        * http/tests/security/cross-origin-shared-worker-expected.txt: Removed.
+        * http/tests/security/cross-origin-shared-worker.html: Removed.
+        * http/tests/security/resources/cross-origin-iframe-for-shared-worker.html: Removed.
+        * http/tests/security/resources/iframe-for-storage-blocking-changed-shared-worker.html: Removed.
+        * http/tests/security/resources/shared-worker.js: Removed.
+        * http/tests/security/same-origin-shared-worker-blocked-expected.txt: Removed.
+        * http/tests/security/same-origin-shared-worker-blocked.html: Removed.
+        * http/tests/security/storage-blocking-loosened-shared-worker-expected.txt: Removed.
+        * http/tests/security/storage-blocking-loosened-shared-worker.html: Removed.
+        * http/tests/security/storage-blocking-strengthened-shared-worker-expected.txt: Removed.
+        * http/tests/security/storage-blocking-strengthened-shared-worker.html: Removed.
+        * http/tests/websocket/tests/hybi/workers/close-in-shared-worker-expected.txt: Removed.
+        * http/tests/websocket/tests/hybi/workers/close-in-shared-worker.html: Removed.
+        * http/tests/websocket/tests/hybi/workers/shared-worker-simple-expected.txt: Removed.
+        * http/tests/websocket/tests/hybi/workers/shared-worker-simple.html: Removed.
+        * http/tests/workers/shared-worker-importScripts-expected.txt: Removed.
+        * http/tests/workers/shared-worker-importScripts.html: Removed.
+        * http/tests/workers/shared-worker-invalid-url-expected.txt: Removed.
+        * http/tests/workers/shared-worker-invalid-url.html: Removed.
+        * http/tests/workers/shared-worker-redirect-expected.txt: Removed.
+        * http/tests/workers/shared-worker-redirect.html: Removed.
+        * http/tests/xmlhttprequest/workers/resources/shared-worker-create.js: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple-expected.txt: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple.html: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-close-expected.txt: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-close.html: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-methods-async.html: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-methods.html: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-referer-expected.txt: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-referer.html: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found-expected.txt: Removed.
+        * http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html: Removed.
+        * js/dom/constructor-length.html:
+        * js/dom/global-constructors-attributes-expected.txt:
+        * js/dom/global-constructors-attributes-shared-worker-expected.txt: Removed.
+        * js/dom/global-constructors-attributes-shared-worker.html: Removed.
+        * platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Removed.
+        * platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Removed.
+        * platform/efl/js/dom/constructor-length-expected.txt:
+        * platform/efl/js/dom/global-constructors-attributes-expected.txt:
+        * platform/efl/js/dom/global-constructors-attributes-shared-worker-expected.txt: Removed.
+        * platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Removed.
+        * platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Removed.
+        * platform/gtk/js/dom/constructor-length-expected.txt:
+        * platform/gtk/js/dom/global-constructors-attributes-expected.txt:
+        * platform/ios-sim-deprecated/fast/dom/Window/window-property-descriptors-expected.txt:
+        * platform/ios-sim-deprecated/fast/js/constructor-length-expected.txt:
+        * platform/ios-sim-deprecated/fast/js/global-constructors-expected.txt:
+        * platform/ios-sim-deprecated/fast/workers/shared-worker-storagequota-query-usage-expected.txt: Removed.
+        * platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-allowed-expected.txt: Removed.
+        * platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-expected.txt: Removed.
+        * platform/ios-sim-deprecated/js/dom/global-constructors-attributes-expected.txt:
+        * platform/ios-sim-deprecated/storage/indexeddb/basics-shared-workers-expected.txt: Removed.
+        * platform/ios-simulator/js/dom/constructor-length-expected.txt:
+        * platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-wk2/TestExpectations:
+        * platform/mac/js/dom/constructor-length-expected.txt:
+        * platform/mac/js/dom/global-constructors-attributes-expected.txt:
+        * platform/win/fast/dom/call-a-constructor-as-a-function-expected.txt:
+        * platform/win/js/dom/global-constructors-attributes-expected.txt:
+        * platform/win/js/dom/global-constructors-attributes-shared-worker-expected.txt: Removed.
+        * resources/js-test-pre.js:
+        (startWorker):
+        (.worker.port.onmessage): Deleted.
+        (.self.onconnect.workerPort.onmessage): Deleted.
+        (.self.onconnect): Deleted.
+        * resources/js-test.js:
+        (startWorker):
+        (.worker.port.onmessage): Deleted.
+        (.self.onconnect.workerPort.onmessage): Deleted.
+        (.self.onconnect): Deleted.
+        * storage/indexeddb/basics-shared-workers-expected.txt: Removed.
+        * storage/indexeddb/basics-shared-workers.html: Removed.
+
 2015-01-12  Andreas Kling  <akling@apple.com>
 
         Geolocation objects shouldn't prevent page caching.
index cf56e2e..6c1d7c3 100644 (file)
@@ -2,7 +2,6 @@ Calling bindings constructors as function should throw an exception and not caus
 
 PASS: EventSource
 PASS: MessageChannel
-PASS: SharedWorker
 PASS: WebGLArrayBuffer
 PASS: WebKitCSSMatrix
 PASS: WebKitPoint
index 9f05fe6..9d3f4a0 100644 (file)
@@ -8,7 +8,7 @@
         function runTest()
         {
             // List of constructors to test.
-            var constructors = ["EventSource", "MessageChannel", "SharedWorker", "WebGLArrayBuffer", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"];
+            var constructors = ["EventSource", "MessageChannel", "WebGLArrayBuffer", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"];
             var result = document.getElementById("result");
             for (var i in constructors) {
                 try {
index 050d20d..a3bc8d6 100644 (file)
@@ -11,7 +11,6 @@ PASS Audio() threw exception TypeError: AudioConstructor is not a function (eval
 PASS Image() threw exception TypeError: ImageConstructor is not a function (evaluating 'Image()').
 PASS Option() threw exception TypeError: OptionConstructor is not a function (evaluating 'Option()').
 PASS MessageChannel() threw exception TypeError: MessageChannelConstructor is not a function (evaluating 'MessageChannel()').
-PASS SharedWorker() threw exception TypeError: SharedWorkerConstructor is not a function (evaluating 'SharedWorker()').
 PASS WebKitCSSMatrix() threw exception TypeError: WebKitCSSMatrixConstructor is not a function (evaluating 'WebKitCSSMatrix()').
 PASS WebKitPoint() threw exception TypeError: WebKitPointConstructor is not a function (evaluating 'WebKitPoint()').
 PASS WebSocket() threw exception TypeError: WebSocketConstructor is not a function (evaluating 'WebSocket()').
index c084ca5..9082b85 100644 (file)
@@ -6,7 +6,7 @@
 
 description("This tests if TypeError is thrown or not when we call a constructor as a normal function.");
 
-var test_constructors = ["AudioContext", "FormData", "EventSource", "FileReader", "Audio", "Image", "Option", "MessageChannel", "SharedWorker", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"];
+var test_constructors = ["AudioContext", "FormData", "EventSource", "FileReader", "Audio", "Image", "Option", "MessageChannel", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"];
 
 test_constructors.forEach(function (constructor) {
     if (eval("window." + constructor))
diff --git a/LayoutTests/fast/workers/resources/create-shared-worker-frame.html b/LayoutTests/fast/workers/resources/create-shared-worker-frame.html
deleted file mode 100644 (file)
index 8c7be30..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<body>
-<script>
-var workerNames = window.location.search.toString().substring(1);
-var nameArray = workerNames.split(",");
-for (var i = 0; i < nameArray.length; i++) {
-    var worker = new SharedWorker("shared-worker-common.js", nameArray[i]);
-}
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/resources/shared-worker-common.js b/LayoutTests/fast/workers/resources/shared-worker-common.js
deleted file mode 100644 (file)
index c975d1c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-function generateError()
-{
-    // Generate an exception by accessing an undefined variable.
-    foo.bar = 0;
-}
-
-onconnect = function(event) {
-    event.ports[0].onmessage = function(evt) { handleMessage(evt, event.ports[0]); };
-};
-
-function gc()
-{
-    for (var i = 0; i < 10000; i++) { // force garbage collection (FF requires about 9K allocations before a collect)
-        var s = new String("abc");
-    }
-}
-
-function handleMessage(event, port) {
-    self.port = port;
-    if (event.data == "ping")
-        port.postMessage("PASS: Received ping message");
-    else if (event.data == "close")
-        close();
-    else if (event.data == "done")
-        port.postMessage("DONE");
-    else if (event.data == "throw")
-        generateError();
-    else if (event.data == "testingNameAttribute")
-        port.postMessage(self.name);
-    else if (/eval.+/.test(event.data)) {
-        try {
-            port.postMessage(event.data.substr(5) + ": " + eval(event.data.substr(5)));
-        } catch (ex) {
-            port.postMessage(event.data.substr(5) + ": " + ex);
-        }
-    }
-    else
-        port.postMessage("FAILURE: Received unknown message: " + event.data);
-}
diff --git a/LayoutTests/fast/workers/resources/shared-worker-count-connections.js b/LayoutTests/fast/workers/resources/shared-worker-count-connections.js
deleted file mode 100644 (file)
index 371d312..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-var ports = [];
-onconnect = function(event) {
-  ports.push(event.ports[0]);
-  for (var i = 0 ; i < ports.length ; i++) {
-    ports[i].postMessage(ports.length);
-  }
-};
diff --git a/LayoutTests/fast/workers/resources/shared-worker-create-common.js b/LayoutTests/fast/workers/resources/shared-worker-create-common.js
deleted file mode 100644 (file)
index 383695a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// Make a SharedWorker that has the same external interface as a DedicatedWorker, to use in shared test code.
-function createWorker()
-{
-    var worker = new SharedWorker('resources/shared-worker-common.js', 'name');
-    worker.port.onmessage = function(evt) { worker.onmessage(evt); };
-    worker.postMessage = function(msg, port) { worker.port.postMessage(msg, port); };
-    return worker;
-}
diff --git a/LayoutTests/fast/workers/resources/shared-worker-exception.js b/LayoutTests/fast/workers/resources/shared-worker-exception.js
deleted file mode 100644 (file)
index c0275af..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-description("This test checks whether exceptions in SharedWorkers are logged to the parent document. An exception should be logged to the error console.");
-
-var worker = createWorker();
-worker.postMessage("throw");
-worker.postMessage("ping");
-
-// Wait for response from ping - that's how we know we have thrown the exception.
-worker.onmessage = function(event)
-{
-    debug(event.data);
-
-    // Give the console message a chance to be written out before ending the test (timers are processed after the task queue is empty).
-    setTimeout(done, 0);
-};
-
-function done()
-{
-    debug('<br /><span class="pass">TEST COMPLETE</span>');
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
diff --git a/LayoutTests/fast/workers/resources/shared-worker-iframe.html b/LayoutTests/fast/workers/resources/shared-worker-iframe.html
deleted file mode 100644 (file)
index 240d4bc..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<body>
-Iframe which loads a worker.
-<script>
-var worker = new SharedWorker('shared-worker-count-connections.js');
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/resources/shared-worker-lifecycle.js b/LayoutTests/fast/workers/resources/shared-worker-lifecycle.js
deleted file mode 100644 (file)
index e84353a..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-description("This test checks whether shared workers exit when the parent document closes");
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-    waitUntilWorkerThreadsExit(runTests);
-} else {
-    debug("NOTE: This test relies on functionality in DumpRenderTree to detect when workers have exited - test results will be incorrect when run in a browser.");
-    runTests();
-}
-
-function runTests()
-{
-    createWorkerFrame("frame1", "worker1");
-    createWorkerFrame("frame2", "worker1,worker2");
-    createWorkerFrame("frame3", "worker3");
-    createWorkerFrame("frame4", "worker1");
-
-    waitUntilThreadCountMatches(closeFrame1, 3);
-}
-
-function createWorkerFrame(id, workerNames)
-{
-    var iframe = document.createElement("iframe");
-    iframe.setAttribute("id", id);
-    iframe.setAttribute("src", "resources/create-shared-worker-frame.html?" + workerNames);
-    document.body.appendChild(iframe);
-}
-
-function closeFrame(id)
-{
-    var frame = document.getElementById(id);
-    frame.parentNode.removeChild(frame);
-}
-
-function closeFrame1()
-{
-    closeFrame("frame1");
-    ensureThreadCountMatches(closeFrame2, 3);
-}
-
-function closeFrame2()
-{
-    testPassed("Frame1 closed, shared workers kept running");
-    closeFrame("frame2");
-    ensureThreadCountMatches(closeFrame3, 2);
-}
-
-function closeFrame3()
-{
-    testPassed("Frame2 closed, shared worker2 exited");
-    closeFrame("frame3");
-    ensureThreadCountMatches(closeFrame4, 1);
-}
-
-function closeFrame4()
-{
-    testPassed("Frame3 closed, shared worker3 exited");
-    closeFrame("frame4");
-    waitUntilWorkerThreadsExit(complete);
-}
-
-function complete()
-{
-    testPassed("Frame4 closed, all workers closed");
-    done();
-}
diff --git a/LayoutTests/fast/workers/resources/shared-worker-name.js b/LayoutTests/fast/workers/resources/shared-worker-name.js
deleted file mode 100644 (file)
index f700f9e..0000000
+++ /dev/null
@@ -1,167 +0,0 @@
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-description("Checks the various use cases around the SharedWorker constructor's optional name parameter");
-
-var currentTest = 0;
-nextTest();
-
-// Iterates through the tests until none are left.
-function nextTest()
-{
-    currentTest++;
-    var testFunction = window["test" + currentTest];
-    if (testFunction)
-        testFunction();
-    else
-        done();
-}
-
-function test1()
-{
-    // Make sure we can create a shared worker with no name.
-    try {
-        var worker = new SharedWorker('resources/shared-worker-common.js');
-        testPassed("created SharedWorker with no name");
-        worker.port.postMessage("eval self.foo = 1234");
-        worker.port.onmessage = function(event) {
-            shouldBeEqual("setting self.foo", event.data, "self.foo = 1234: 1234");
-            nextTest();
-        };
-    } catch (e) {
-        testFailed("SharedWorker with no name threw an exception: " + e);
-        done();
-    }
-}
-
-function test2()
-{
-    // Creating a worker with no name should match an existing worker with no name
-    var worker = new SharedWorker('resources/shared-worker-common.js');
-    worker.port.postMessage("eval self.foo");
-    worker.port.onmessage = function(event) {
-        shouldBeEqual("creating worker with no name", event.data, "self.foo: 1234");
-        nextTest();
-    }
-}
-
-function test3()
-{
-    // Creating a worker with an empty name should be the same as a worker with no name.
-    var worker = new SharedWorker('resources/shared-worker-common.js', '');
-    worker.port.postMessage("eval self.foo");
-    worker.port.onmessage = function(event) {
-        shouldBeEqual("creating worker with empty name", event.data, "self.foo: 1234");
-        nextTest();
-    };
-}
-
-function test4()
-{
-    // Creating a worker with a different name should not be the same as a worker with no name.
-    var worker = new SharedWorker('resources/shared-worker-common.js', 'name');
-    worker.port.postMessage("eval self.foo");
-    worker.port.onmessage = function(event) {
-        shouldBeEqual("creating worker with different name but same URL", event.data, "self.foo: undefined");
-        nextTest();
-    };
-}
-
-function test5()
-{
-    // Creating a worker for an alternate URL with no name should work.
-    var worker = new SharedWorker('resources/shared-worker-common.js?url=1');
-    worker.port.postMessage("eval self.foo");
-    worker.port.onmessage = function(event) {
-        shouldBeEqual("creating no-name worker with alternate URL", event.data, "self.foo: undefined");
-        nextTest();
-    };
-}
-
-function test6()
-{
-    // Creating a worker for an alternate URL with empty name should work.
-    var worker = new SharedWorker('resources/shared-worker-common.js?url=2', '');
-    worker.port.postMessage("eval self.foo");
-    worker.port.onmessage = function(event) {
-        shouldBeEqual("creating empty name worker with alternate URL", event.data, "self.foo: undefined");
-        nextTest();
-    };
-}
-
-function test7()
-{
-    // Make sure we can create a shared worker with name 'null'.
-    try {
-        var worker = new SharedWorker('resources/shared-worker-common.js', 'null');
-        testPassed("created SharedWorker with name 'null'");
-        worker.port.postMessage("eval self.foo = 5678");
-        worker.port.onmessage = function(event) {
-            shouldBeEqual("setting self.foo", event.data, "self.foo = 5678: 5678");
-            nextTest();
-        };
-    } catch (e) {
-        testFailed("SharedWorker with name 'null' threw an exception: " + e);
-        done();
-    }
-}
-
-function test8()
-{
-    // Creating a worker with a null name should match an existing worker with name 'null'
-    var worker = new SharedWorker('resources/shared-worker-common.js', null);
-    worker.port.postMessage("eval self.foo");
-    worker.port.onmessage = function(event) {
-        shouldBeEqual("creating worker with a null name", event.data, "self.foo: 5678");
-        nextTest();
-    }
-}
-
-function test9()
-{
-    // Make sure we can create a shared worker with name 'undefined'.
-    try {
-        var worker = new SharedWorker('resources/shared-worker-common.js', 'undefined');
-        testPassed("created SharedWorker with name 'undefined'");
-        worker.port.postMessage("eval self.foo = 1111");
-        worker.port.onmessage = function(event) {
-            shouldBeEqual("setting self.foo", event.data, "self.foo = 1111: 1111");
-            nextTest();
-        };
-    } catch (e) {
-        testFailed("SharedWorker with name 'undefined' threw an exception: " + e);
-        done();
-    }
-}
-
-function test10()
-{
-    // Creating a worker with an undefined name should match an existing worker with name 'undefined'
-    var worker = new SharedWorker('resources/shared-worker-common.js', undefined);
-    worker.port.postMessage("eval self.foo");
-    worker.port.onmessage = function(event) {
-        shouldBeEqual("creating worker with an undefined name", event.data, "self.foo: 1111");
-        nextTest();
-    }
-}
-
-function test11()
-{
-    // Creating a worker with a specific name, the name attribute should be set to worker correctly.
-    var worker = new SharedWorker('resources/shared-worker-common.js', "testingNameAttribute");
-    worker.port.postMessage("testingNameAttribute");
-    worker.port.onmessage = function(event) {
-        shouldBeEqual("the name attribute of worker can be set correctly", event.data, "testingNameAttribute");
-        nextTest();
-    }
-}
-
-function shouldBeEqual(description, a, b)
-{
-    if (a == b)
-        testPassed(description);
-    else
-        testFailed(description + " - passed value: " + a + ", expected value: " + b);
-}
diff --git a/LayoutTests/fast/workers/resources/shared-worker-script-error.js b/LayoutTests/fast/workers/resources/shared-worker-script-error.js
deleted file mode 100644 (file)
index 130889e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-onconnect = function(event) {
-    event.ports[0].onmessage = function(evt) { handleMessage(evt, event.ports[0]); };
-};
-
-function handleMessage(event, port) {
-    if (event.data == "unhandledError") {
-        // Generate an unhandled error.
-        onerror = null;
-        setTimeout(function() {
-            port.postMessage("SUCCESS: unhandled error generated");
-        }, 100);
-        generateError();  // Undefined function call
-    } else if (event.data == "handledError") {
-        onerror = function(message, url, lineno) {
-            port.postMessage("SUCCESS: error handled via onerror: " + message);
-            return true;
-        };
-        generateError();  // Undefined function call
-    } else {
-        port.postMessage("FAIL: Got unexpected message: " + event.data);
-    }
-};
diff --git a/LayoutTests/fast/workers/shared-worker-constructor-expected.txt b/LayoutTests/fast/workers/shared-worker-constructor-expected.txt
deleted file mode 100644 (file)
index 529e1ec..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-Test SharedWorker constructor functionality. Should print a series of PASS messages, followed with DONE.
-
-PASS: toString exception propagated correctly.
-PASS: trying to create workers recursively resulted in an exception (RangeError: Maximum call stack size exceeded.)
-PASS: invoking SharedWorker constructor without arguments resulted in an exception (TypeError: Not enough arguments)
-PASS: invoking SharedWorker constructor without name did not result in an exception
-PASS: invoking SharedWorker constructor with null name did not result in an exception
-PASS: invoking SharedWorker constructor with undefined name did not result in an exception
-PASS: SharedWorker constructor succeeded: [object SharedWorker]
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-constructor.html b/LayoutTests/fast/workers/shared-worker-constructor.html
deleted file mode 100644 (file)
index 2eec12c..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<body>
-<p>Test SharedWorker constructor functionality. Should print a series of PASS messages, followed with DONE.</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-try {
-    new SharedWorker({toString:function(){throw "exception"}}, "name")
-    log("FAIL: toString exception not propagated.");
-} catch (ex) {
-    if (ex == "exception")
-        log("PASS: toString exception propagated correctly.");
-    else
-        log("FAIL: unexpected exception (" + ex + ") received instead of one propagated from toString.");
-}
-
-try {
-    var foo = {toString:function(){new Worker(foo)}}
-    new SharedWorker(foo, name);
-    log("FAIL: no exception when trying to create workers recursively");
-} catch (ex) {
-    log("PASS: trying to create workers recursively resulted in an exception (" + ex + ")");
-}
-
-try {
-    new SharedWorker();
-    log("FAIL: invoking SharedWorker constructor without arguments did not result in an exception");
-} catch (ex) {
-    log("PASS: invoking SharedWorker constructor without arguments resulted in an exception (" + ex + ")");
-}
-
-try {
-    var worker = new SharedWorker("resources/shared-worker-common.js");
-    log("PASS: invoking SharedWorker constructor without name did not result in an exception");
-} catch (ex) {
-    log("FAIL: Constructor failed when no name is passed: (" + ex + ")");
-}
-
-try {
-    new SharedWorker("resources/shared-worker-common.js", null);
-    log("PASS: invoking SharedWorker constructor with null name did not result in an exception");
-} catch (ex) {
-    log("FAIL: invoking SharedWorker constructor with null name resulted in an exception (" + ex + ")");
-}
-
-try {
-    new SharedWorker("resources/shared-worker-common.js", undefined);
-    log("PASS: invoking SharedWorker constructor with undefined name did not result in an exception");
-} catch (ex) {
-    log("FAIL: invoking SharedWorker constructor with undefined name resulted in an exception (" + ex + ")");
-}
-
-try {
-    var worker = new SharedWorker("resources/shared-worker-common.js", "name");
-    log ("PASS: SharedWorker constructor succeeded: " + worker);
-} catch (ex) {
-    log("FAIL: invoking SharedWorker constructor resulted in an exception (" + ex + ")");
-}
-
-log("DONE");
-if (window.testRunner)
-    testRunner.notifyDone();
-
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-context-gc-expected.txt b/LayoutTests/fast/workers/shared-worker-context-gc-expected.txt
deleted file mode 100644 (file)
index 0b8b002..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-Test Navigator/Location wrappers with GC.
-
-This tests that gc does not destroy the WorkerNavigator and WorkerLocation wrappers if the WorkerContext is still active. You should see two PASSes below if this test succeeds.
-navigator.foo = 'PASS'; gc(); navigator.foo: PASS
-location.foo = 'PASS'; gc(); location.foo: PASS
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-context-gc.html b/LayoutTests/fast/workers/shared-worker-context-gc.html
deleted file mode 100644 (file)
index dd5113d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<body>
-<p>Test Navigator/Location wrappers with GC.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create-common.js"></script>
-<script src="resources/worker-context-gc.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/workers/shared-worker-event-listener-expected.txt b/LayoutTests/fast/workers/shared-worker-event-listener-expected.txt
deleted file mode 100644 (file)
index f8704aa..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-Test SharedWorker event listener. Should print a series of PASS messages, followed with DONE.
-
-SUCCESS: Listener was called.
-SUCCESS: Listener was not called after removal.
-SUCCESS: Listener was called after GC.
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-event-listener.html b/LayoutTests/fast/workers/shared-worker-event-listener.html
deleted file mode 100644 (file)
index f8f7ee3..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<body>
-<p>Test SharedWorker event listener. Should print a series of PASS messages, followed with DONE.</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-var worker = new SharedWorker("resources/worker-common.js", "foobar");
-var numListenerCalls = 0;
-function countListenerCallbacks(event)
-{
-    if (event.type != "foo")
-        log("FAIL: Received unexpected event: " + event.type);
-    numListenerCalls++;
-}
-worker.addEventListener("foo", countListenerCallbacks, false);
-var event = document.createEvent("Events");
-event.initEvent("foo", false, false);
-worker.dispatchEvent(event);
-if (numListenerCalls == 1) {
-    log("SUCCESS: Listener was called.");
-} else {
-    log("FAIL: Listener was not called.");
-}
-
-worker.removeEventListener("foo", countListenerCallbacks, false);
-worker.dispatchEvent(event);
-if (numListenerCalls == 1) {
-    log("SUCCESS: Listener was not called after removal.");
-} else {
-    log("FAIL: Listener was called after removal.");
-}
-
-// Test to make sure that event listeners survive GC.
-worker.addEventListener("foo", createNewListener(countListenerCallbacks), false);
-gc();
-worker.dispatchEvent(event);
-if (numListenerCalls == 2) {
-    log("SUCCESS: Listener was called after GC.");
-} else {
-    log("FAIL: Listener was not called after GC.");
-}
-
-
-log("DONE");
-if (window.testRunner)
-    testRunner.notifyDone();
-
-function createNewListener(func)
-{
-  return function(event) { func(event); };
-}
-
-function gc()
-{
-    if (window.GCController)
-        return GCController.collect();
-
-    for (var i = 0; i < 10000; i++) { // force garbage collection (FF requires about 9K allocations before a collect).
-        var s = new String("abc");
-    }
-}
-
-
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-exception-expected.txt b/LayoutTests/fast/workers/shared-worker-exception-expected.txt
deleted file mode 100644 (file)
index 55fcfbb..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-CONSOLE MESSAGE: line 4: ReferenceError: Can't find variable: foo
-This test checks whether exceptions in SharedWorkers are logged to the parent document. An exception should be logged to the error console.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS: Received ping message
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/workers/shared-worker-exception.html b/LayoutTests/fast/workers/shared-worker-exception.html
deleted file mode 100644 (file)
index bcdc070..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<script src="resources/shared-worker-create-common.js"></script>
-<script src="resources/shared-worker-exception.js"></script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-frame-lifecycle-expected.txt b/LayoutTests/fast/workers/shared-worker-frame-lifecycle-expected.txt
deleted file mode 100644 (file)
index e96b628..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-This test checks whether shared workers exit when the parent document closes
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS Frame1 closed, shared workers kept running
-PASS Frame2 closed, shared worker2 exited
-PASS Frame3 closed, shared worker3 exited
-PASS Frame4 closed, all workers closed
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/workers/shared-worker-frame-lifecycle.html b/LayoutTests/fast/workers/shared-worker-frame-lifecycle.html
deleted file mode 100644 (file)
index e2d7baa..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<script src="resources/shared-worker-create-common.js"></script>
-<script src="resources/worker-util.js"></script>
-<script src="resources/shared-worker-lifecycle.js"></script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-gc-expected.txt b/LayoutTests/fast/workers/shared-worker-gc-expected.txt
deleted file mode 100644 (file)
index 89ba8b8..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Test shared worker garbage collection. Should print "PASS" followed by "DONE".
-
-PASS: Received ping message
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-gc.html b/LayoutTests/fast/workers/shared-worker-gc.html
deleted file mode 100644 (file)
index c2fbd2f..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<body>
-<p>Test shared worker garbage collection. Should print "PASS" followed by "DONE".</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-function gc()
-{
-    if (window.GCController)
-        return GCController.collect();
-
-    for (var i = 0; i < 10000; i++) { // force garbage collection (FF requires about 9K allocations before a collect)
-        var s = new String("abc");
-    }
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-var worker = new SharedWorker('resources/shared-worker-common.js', 'name');
-worker.port.onmessage = handleMessage;
-worker.port.postMessage("ping");
-worker = 0;
-gc();
-
-function handleMessage(event) {
-    log(event.data);
-    log("DONE");
-    if (window.testRunner)
-        testRunner.notifyDone();
-};
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-in-iframe-expected.txt b/LayoutTests/fast/workers/shared-worker-in-iframe-expected.txt
deleted file mode 100644 (file)
index 0da3715..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Test simultaneous shared worker construction case (document + iframe).
-
-Prints "DONE" if the test is successful
-
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-in-iframe.html b/LayoutTests/fast/workers/shared-worker-in-iframe.html
deleted file mode 100644 (file)
index e8d8f4b..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<body>
-<p>Test simultaneous shared worker construction case (document + iframe).</p>
-<p>Prints "DONE" if the test is successful</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-var worker = new SharedWorker('resources/shared-worker-count-connections.js');
-worker.port.onmessage = function(event) {
-  if (event.data == 2) {
-    done();
-  }
-};
-
-function done()
-{
-    log("DONE");
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-</script>
-<iframe src='resources/shared-worker-iframe.html'></iframe>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-lifecycle-expected.txt b/LayoutTests/fast/workers/shared-worker-lifecycle-expected.txt
deleted file mode 100644 (file)
index 5284abf..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-Test SharedWorker lifecycle. Will print PASS multiple times, followed by DONE.
-
-PASS: workerThreadCount = 0
-PASS: Worker thread created
-PASS: Worker exited when close() called.
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-lifecycle.html b/LayoutTests/fast/workers/shared-worker-lifecycle.html
deleted file mode 100644 (file)
index cfb0c3e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<body>
-<p>Test SharedWorker lifecycle. Will print PASS multiple times, followed by DONE.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create-common.js"></script>
-<script src="resources/worker-util.js"></script>
-<script src="resources/worker-lifecycle.js"></script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-load-error-expected.txt b/LayoutTests/fast/workers/shared-worker-load-error-expected.txt
deleted file mode 100644 (file)
index bec1a1d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Test SharedWorker onerror functionality. Prints multiple SUCCESS lines, then DONE when complete.
-
-PASS: Received load error event: [object Event]
-PASS: Received error event after worker GC'd: [object Event]
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-load-error.html b/LayoutTests/fast/workers/shared-worker-load-error.html
deleted file mode 100644 (file)
index c69266a..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<body>
-<p>Test SharedWorker onerror functionality. Prints multiple SUCCESS lines, then DONE when complete.</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-function testSimpleLoadError()
-{
-    var worker = new SharedWorker("file_does_not_exist.js", "name");
-    worker.onerror = function(evt) {
-        log("PASS: Received load error event: " + evt);
-        testLoadErrorGC();
-    }
-}
-
-function testLoadErrorGC()
-{
-    var worker = new SharedWorker("file_does_not_exist.js", "name");
-    worker.onerror = handleError;
-    worker = null;
-    gc();
-}
-
-function gc()
-{
-    if (window.GCController)
-        return GCController.collect();
-
-    for (var i = 0; i < 10000; i++) { // force garbage collection (FF requires about 9K allocations before a collect)
-        var s = new String("abc");
-    }
-}
-
-
-function handleError(evt) {
-    log("PASS: Received error event after worker GC'd: " + evt);
-    log("DONE");
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-testSimpleLoadError();
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-location-expected.txt b/LayoutTests/fast/workers/shared-worker-location-expected.txt
deleted file mode 100644 (file)
index 40ccc3c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Test WorkerLocation properties.
-
-WorkerLocation: [object WorkerLocationConstructor]
-typeof location: object
-location: file:<...>/fast/workers/resources/shared-worker-common.js
-location.href: file:<...>/fast/workers/resources/shared-worker-common.js
-location.protocol: file:
-location.host: 
-location.hostname: 
-location.port: 
-location.pathname: <...>/fast/workers/resources/shared-worker-common.js
-location.search: 
-location.hash: 
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-location.html b/LayoutTests/fast/workers/shared-worker-location.html
deleted file mode 100644 (file)
index 5038cab..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<body>
-<p>Test WorkerLocation properties.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create-common.js"></script>
-<script src="resources/worker-location.js">
-</script>
-</body>
-</html>
diff --git a/LayoutTests/fast/workers/shared-worker-messageevent-source-expected.txt b/LayoutTests/fast/workers/shared-worker-messageevent-source-expected.txt
deleted file mode 100644 (file)
index 55adf7c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Make sure that MessageEvent.source is properly set in connect event.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Starting worker: resources/messageevent-source.js
-PASS [Worker]  event.__proto__ is MessageEvent.prototype
-PASS [Worker]  event.source is event.ports[0]
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/workers/shared-worker-messageevent-source.html b/LayoutTests/fast/workers/shared-worker-messageevent-source.html
deleted file mode 100644 (file)
index de90b40..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<html>
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<script>
-description("Make sure that MessageEvent.source is properly set in connect event.");
-
-startWorker("resources/messageevent-source.js", true);
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/workers/shared-worker-name-expected.txt b/LayoutTests/fast/workers/shared-worker-name-expected.txt
deleted file mode 100644 (file)
index 39c39a1..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-Checks the various use cases around the SharedWorker constructor's optional name parameter
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS created SharedWorker with no name
-PASS setting self.foo
-PASS creating worker with no name
-PASS creating worker with empty name
-PASS creating worker with different name but same URL
-PASS creating no-name worker with alternate URL
-PASS creating empty name worker with alternate URL
-PASS created SharedWorker with name 'null'
-PASS setting self.foo
-PASS creating worker with a null name
-PASS created SharedWorker with name 'undefined'
-PASS setting self.foo
-PASS creating worker with an undefined name
-PASS the name attribute of worker can be set correctly
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/workers/shared-worker-name.html b/LayoutTests/fast/workers/shared-worker-name.html
deleted file mode 100644 (file)
index ce225a3..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<script src="resources/worker-util.js"></script>
-<script src="resources/shared-worker-name.js"></script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-navigator-expected.txt b/LayoutTests/fast/workers/shared-worker-navigator-expected.txt
deleted file mode 100644 (file)
index a80b250..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-Test Navigator properties.
-
-typeof navigator: object
-navigator: [object WorkerNavigator]
-navigator.appName: Netscape
-navigator.appVersion.indexOf('WebKit') != 0: true
-typeof navigator.platform: string
-navigator.userAgent.indexOf('WebKit') != 0: true
-typeof navigator.onLine: boolean
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-navigator.html b/LayoutTests/fast/workers/shared-worker-navigator.html
deleted file mode 100644 (file)
index c86c2a7..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<body>
-<p>Test Navigator properties.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create-common.js"></script>
-<script src="resources/worker-navigator.js"></script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-replace-global-constructor-expected.txt b/LayoutTests/fast/workers/shared-worker-replace-global-constructor-expected.txt
deleted file mode 100644 (file)
index 49286a6..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Test replacing global constructors in a worker context.
-
-self.MessageEvent = 'PASS'; MessageEvent;: PASS
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-replace-global-constructor.html b/LayoutTests/fast/workers/shared-worker-replace-global-constructor.html
deleted file mode 100644 (file)
index d355c44..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<body>
-<p>Test replacing global constructors in a worker context.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create-common.js"></script>
-<script src="resources/worker-replace-global-constructor.js">
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-replace-self-expected.txt b/LayoutTests/fast/workers/shared-worker-replace-self-expected.txt
deleted file mode 100644 (file)
index 293fd8a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Test that self is replaceable.
-
-self='PASS': PASS
-self: PASS
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-replace-self.html b/LayoutTests/fast/workers/shared-worker-replace-self.html
deleted file mode 100644 (file)
index b3b8512..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<body>
-<p>Test that self is replaceable.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create-common.js"></script>
-<script src="resources/worker-replace-self.js"></script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-script-error-expected.txt b/LayoutTests/fast/workers/shared-worker-script-error-expected.txt
deleted file mode 100644 (file)
index 7e3ed6a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-CONSOLE MESSAGE: line 12: ReferenceError: Can't find variable: generateError
-Test SharedWorker script error handling functionality. Should print a series of PASS messages, followed with DONE.
-
-SUCCESS: unhandled error generated
-SUCCESS: error handled via onerror: ReferenceError: Can't find variable: generateError
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-script-error.html b/LayoutTests/fast/workers/shared-worker-script-error.html
deleted file mode 100644 (file)
index df5c7f1..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<body>
-<p>Test SharedWorker script error handling functionality. Should print a series of PASS messages, followed with DONE.</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-var testCases = [
-    "testScriptErrorUnhandled",
-    "testScriptErrorHandled"
-];
-var testIndex = 0;
-
-function runNextTest()
-{
-    if (testIndex < testCases.length) {
-        testIndex++;
-        try {
-            window[testCases[testIndex - 1]]();
-        } catch (ex) {
-            log("FAIL: unexpected exception " + ex);
-            runNextTest();
-        }
-    } else {
-        log("DONE");
-        // Wait briefly to make sure that any pending console messages get written out so they don't spill over into subsequent tests and cause failures.
-        setTimeout(function() {
-            if (window.testRunner)
-                testRunner.notifyDone();
-        }, 10);
-    }
-}
-
-function testScriptErrorUnhandled()
-{
-    var worker = new SharedWorker("resources/shared-worker-script-error.js", "name");
-    // SharedWorkers should only invoke onerror for loading errors.
-    worker.onerror = function(evt) {
-        log("FAIL: onerror invoked for a script error");
-    };
-    worker.port.postMessage("unhandledError");
-    worker.port.onmessage = function(evt) {
-        log(evt.data);
-        runNextTest();
-    }
-}
-
-function testScriptErrorHandled()
-{
-    var worker = new SharedWorker("resources/shared-worker-script-error.js", "name2");
-    // SharedWorkers should only invoke onerror for loading errors.
-    worker.onerror = function(evt) {
-        log("FAIL: onerror invoked for a script error");
-    };
-    worker.port.postMessage("handledError");
-    worker.port.onmessage = function(evt) {
-        log(evt.data);
-        runNextTest();
-    }
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-runNextTest();
-
-</script>
-</body>
-
diff --git a/LayoutTests/fast/workers/shared-worker-shared-expected.txt b/LayoutTests/fast/workers/shared-worker-shared-expected.txt
deleted file mode 100644 (file)
index b7fbc92..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-Test simple shared worker sharing cases. Should print several PASS lines followed by DONE.
-
-PASS: Exception thrown when creating SharedWorker with different URLs but same name: Error: URLMismatchError: DOM Exception 21
-PASS: Accessing new instance of shared worker: self.foo: undefined
-PASS: Setting global variable in shared worker: self.foo = 1234: 1234
-PASS: Accessing simultaneously-loaded instance of shared worker: self.foo: 1234
-PASS: Accessing new instance of shared worker: self.foo: undefined
-PASS: Accessing already-loaded instance of shared worker: self.foo: 1234
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-shared.html b/LayoutTests/fast/workers/shared-worker-shared.html
deleted file mode 100644 (file)
index db336ef..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<body>
-<p>Test simple shared worker sharing cases. Should print several PASS lines followed by DONE.</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-// Load two workers simultaneously, to ensure that simultaneous loads also yield the same instance.
-// Loading a worker named "name" tests that workers shutdown when the parent document exits, because other tests also create workers with that same name but with different URLs.
-var worker = new SharedWorker('resources/shared-worker-common.js', 'name');
-var worker2 = new SharedWorker('resources/shared-worker-common.js', 'name');
-
-try {
-    new SharedWorker('resources/some-other-url.js', 'name');
-    log("FAIL: Creating SharedWorker with different URLs but the same name should fail");
-} catch (ex) {
-    log("PASS: Exception thrown when creating SharedWorker with different URLs but same name: " + ex);
-}
-
-
-// Set something in global context in one worker, read value back on other worker, to make sure they are truly shared.
-worker.port.postMessage("eval self.foo");
-worker.port.onmessage = function(event)
-{
-    log((event.data == "self.foo: undefined" ? "PASS: " : "FAIL: ") + "Accessing new instance of shared worker: " + event.data);
-    worker.port.postMessage("eval self.foo = 1234");
-    worker.port.onmessage = function(event)
-    {
-        log((event.data == "self.foo = 1234: 1234" ? "PASS: " : "FAIL: ") + "Setting global variable in shared worker: " + event.data);
-        worker2.port.postMessage("eval self.foo");
-        worker2.port.onmessage = function(event)
-        {
-            log((event.data == "self.foo: 1234" ? "PASS: " : "FAIL: ") + "Accessing simultaneously-loaded instance of shared worker: " + event.data);
-            testNewWorker();
-        }
-    }
-}
-
-function testNewWorker()
-{
-    // New name, so should be a distinct worker from the previous one.
-    var worker3 = new SharedWorker('resources/shared-worker-common.js', 'name2');
-    worker3.port.postMessage("eval self.foo");
-    worker3.port.onmessage = function(event)
-    {
-        log((event.data == "self.foo: undefined" ? "PASS: " : "FAIL: ") + "Accessing new instance of shared worker: " + event.data);
-        testAlreadyLoaded();
-    };
-}
-
-function testAlreadyLoaded()
-{
-    // Make sure that referencing a worker that is already loaded yields the same instance.
-    var worker4 = new SharedWorker('resources/shared-worker-common.js', 'name');
-    worker4.port.postMessage("eval self.foo");
-    worker4.port.onmessage = function(event)
-    {
-        log((event.data == "self.foo: 1234" ? "PASS: " : "FAIL: ") + "Accessing already-loaded instance of shared worker: " + event.data);
-        done();
-    };
-}
-
-function done()
-{
-    log("DONE");
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-simple-expected.txt b/LayoutTests/fast/workers/shared-worker-simple-expected.txt
deleted file mode 100644 (file)
index f10ec17..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Test simple shared worker construction case.
-
-PASS: Received ping message
-DONE
-
diff --git a/LayoutTests/fast/workers/shared-worker-simple.html b/LayoutTests/fast/workers/shared-worker-simple.html
deleted file mode 100644 (file)
index 005f596..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<body>
-<p>Test simple shared worker construction case.</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-var worker = new SharedWorker('resources/shared-worker-common.js', 'name');
-
-worker.port.postMessage("ping");
-worker.port.postMessage("done");
-
-worker.port.onmessage = function(event) {
-    log(event.data);
-    if (event.data == "DONE")
-        done();
-};
-
-function done()
-{
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-</script>
-</body>
diff --git a/LayoutTests/fast/workers/shared-worker-storagequota-query-usage-expected.txt b/LayoutTests/fast/workers/shared-worker-storagequota-query-usage-expected.txt
deleted file mode 100644 (file)
index 84b9ce3..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-This tests querying usage and quota using Quota API.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS usageData.usage is 0
-PASS usageData.quota is >= usageData.usage
-PASS successfullyParsed is true
-
-TEST COMPLETE
-Test storagequota APIs in Shared Worker
diff --git a/LayoutTests/fast/workers/shared-worker-storagequota-query-usage.html b/LayoutTests/fast/workers/shared-worker-storagequota-query-usage.html
deleted file mode 100644 (file)
index 4b376bd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<html>
-<body>
-    <p>Test storagequota APIs in Shared Worker</p>
-    <script src="../../resources/js-test-pre.js"></script>
-    <script src="resources/shared-worker-create-common.js"></script>
-    <script src="resources/storagequota-query-usage.js"></script>
-    <script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
index 79eb458..48b05e3 100644 (file)
@@ -1,5 +1,4 @@
 Blocked access to external URL http://example.com/worker.js
-Blocked access to external URL http://example.com/worker.js
 Test worker fetch of blocked url. Should print a "PASS" statement.
 
 PASS
index aaeccec..776019c 100644 (file)
@@ -19,12 +19,6 @@ try {
 } catch (error) {
 }
 
-try {
-    // Ditto.
-    new SharedWorker("http://example.com/worker.js");
-} catch (error) {
-}
-
 log("PASS");
 
 </script>
index f4f502f..3910bf0 100644 (file)
@@ -481,11 +481,11 @@ function finishJSTest()
         testRunner.notifyDone();
 }
 
-function startWorker(testScriptURL, shared)
+function startWorker(testScriptURL)
 {
     self.jsTestIsAsync = true;
     debug('Starting worker: ' + testScriptURL);
-    var worker = shared ? new SharedWorker(testScriptURL, "Shared Worker") : new Worker(testScriptURL);
+    var worker = new Worker(testScriptURL);
     worker.onmessage = function(event)
     {
         var workerPrefix = "[Worker] ";
@@ -513,39 +513,11 @@ function startWorker(testScriptURL, shared)
         finishJSTest();
     }
 
-    if (shared) {
-        worker.port.onmessage = function(event) { worker.onmessage(event); };
-        worker.port.start();
-    }
     return worker;
 }
 
 if (isWorker()) {
     var workerPort = self;
-    if (self.name == "Shared Worker") {
-        self.onconnect = function(e) {
-            workerPort = e.ports[0];
-            workerPort.onmessage = function(event)
-            {
-                
-                var colon = event.data.indexOf(":");
-                if (colon == -1) {
-                    testFailed("Unrecognized message to shared worker: " + event.data);
-                    return;
-                }
-                var code = event.data.substring(0, colon);
-                var payload = event.data.substring(colon + 1);
-                try {
-                    if (code == "IMPORT")
-                        importScripts(payload);
-                    else
-                        testFailed("Unrecognized message to shared worker: " + event.data);
-                } catch (ex) {
-                    testFailed("Caught exception in shared worker onmessage: " + ex);
-                }
-            };
-        };
-    }
     description = function(msg, quiet) {
         workerPort.postMessage('DESC:' + msg);
     }
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js
deleted file mode 100644 (file)
index dfada0d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-onconnect = function (event) {
-    var port = event.ports[0];
-    try {
-        var xhr = new XMLHttpRequest;
-        xhr.open("GET", "http://127.0.0.1:8000/xmlhttprequest/resources/get.txt", true); 
-        port.postMessage("xhr allowed");
-    } catch(e) {
-        port.postMessage("xhr blocked");
-    }
-};
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed-expected.txt b/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed-expected.txt
deleted file mode 100644 (file)
index bc3b172..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-ALERT: xhr allowed
-
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html b/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html
deleted file mode 100644 (file)
index 8174f6d..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta http-equiv="Content-Security-Policy" content="connect-src http://127.0.0.1:8000"/>
-<script>
-if (window.testRunner) {
-    testRunner.waitUntilDone();
-    testRunner.dumpAsText();
-}
-</script>
-</head>
-<body>
-<script>
-try {
-    var worker = new SharedWorker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js');
-    worker.port.onmessage = function (event) {
-        alert(event.data);
-        if (window.testRunner)
-            testRunner.notifyDone();
-    };
-} catch (e) {
-    alert(e);
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-</script>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked-expected.txt b/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked-expected.txt
deleted file mode 100644 (file)
index 8a7a774..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-CONSOLE MESSAGE: Refused to connect to 'http://127.0.0.1:8000/xmlhttprequest/resources/get.txt' because it violates the following Content Security Policy directive: "connect-src 'none'".
-
-ALERT: xhr blocked
-
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html b/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html
deleted file mode 100644 (file)
index 97412f2..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta http-equiv="Content-Security-Policy" content="connect-src 'none'"/>
-<script>
-if (window.testRunner) {
-    testRunner.waitUntilDone();
-    testRunner.dumpAsText();
-}
-</script>
-</head>
-<body>
-<script>
-try {
-    var worker = new SharedWorker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js');
-    worker.port.onmessage = function (event) {
-        alert(event.data);
-        if (window.testRunner)
-            testRunner.notifyDone();
-    };
-} catch (e) {
-    alert(e);
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-</script>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/security/cross-origin-shared-worker-allowed-expected.txt b/LayoutTests/http/tests/security/cross-origin-shared-worker-allowed-expected.txt
deleted file mode 100644 (file)
index bbeb335..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-This iframe should not return any errors:
-
-
-This iframe should not return any errors:
-
-
-
---------
-Frame: '<!--framePath //<!--frame0-->-->'
---------
-Connected successfully
-
---------
-Frame: '<!--framePath //<!--frame1-->-->'
---------
-Connected successfully
diff --git a/LayoutTests/http/tests/security/cross-origin-shared-worker-allowed.html b/LayoutTests/http/tests/security/cross-origin-shared-worker-allowed.html
deleted file mode 100644 (file)
index a92ca52..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<html>
-<head>
-<script>
-var frames = 2;
-if (window.testRunner) {
-       testRunner.dumpAsText();
-       testRunner.dumpChildFramesAsText();
-       testRunner.waitUntilDone();
-}
-
-function decrement() {
-       --frames;
-       if (!frames && window.testRunner)
-               testRunner.notifyDone();
-}
-
-window.onmessage = decrement;
-</script>
-</head>
-<body>
-<p>This iframe should not return any errors:</p>
-<iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-shared-worker.html"></iframe>
-<p>This iframe should not return any errors:</p>
-<iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-shared-worker.html"></iframe>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/security/cross-origin-shared-worker-expected.txt b/LayoutTests/http/tests/security/cross-origin-shared-worker-expected.txt
deleted file mode 100644 (file)
index d67db30..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-This iframe should return a security error:
-
-
-This iframe should not return any errors:
-
-
-
---------
-Frame: '<!--framePath //<!--frame0-->-->'
---------
-SecurityError
-
---------
-Frame: '<!--framePath //<!--frame1-->-->'
---------
-Connected successfully
diff --git a/LayoutTests/http/tests/security/cross-origin-shared-worker.html b/LayoutTests/http/tests/security/cross-origin-shared-worker.html
deleted file mode 100644 (file)
index c0f0251..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<html>
-<head>
-<script>
-var frames = 2;
-if (window.testRunner) {
-       testRunner.dumpAsText();
-       testRunner.dumpChildFramesAsText();
-       testRunner.waitUntilDone();
-       internals.settings.setStorageBlockingPolicy('BlockThirdParty');
-}
-
-function decrement() {
-       --frames;
-       if (!frames && window.testRunner) {
-               internals.settings.setStorageBlockingPolicy('AllowAll');
-               testRunner.notifyDone();
-       }
-}
-
-window.onmessage = decrement;
-</script>
-</head>
-<body>
-<p>This iframe should return a security error:</p>
-<iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-shared-worker.html"></iframe>
-<p>This iframe should not return any errors:</p>
-<iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-shared-worker.html"></iframe>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html b/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html
deleted file mode 100644 (file)
index 009a129..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<html>
-<head>
-<script>
-try {
-       var worker = new SharedWorker('shared-worker.js', 'SharedWorker');
-       worker.port.onmessage = function(event) {
-               document.write(event.data);
-               window.parent.postMessage(event.data, '*');
-       }
-       worker.port.start();
-       worker.port.postMessage('Connection test');
-} catch (exception) {
-       window.parent.postMessage(exception.name, '*');
-       document.write(exception.name);
-}
-</script>
-</head>
-<body>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/security/resources/iframe-for-storage-blocking-changed-shared-worker.html b/LayoutTests/http/tests/security/resources/iframe-for-storage-blocking-changed-shared-worker.html
deleted file mode 100644 (file)
index 37ba19d..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<html>
-<head>
-<script>
-function log(message) {
-       var node = document.createElement('p');
-       node.textContent = message;
-       document.body.appendChild(node);
-}
-
-function createWorker() {
-       var worker = new SharedWorker('shared-worker.js', 'SharedWorker');
-       worker.port.onmessage = function(event) {
-               log(event.data);
-               window.parent.postMessage(event.data, '*');
-       }
-       worker.port.start();
-       worker.port.postMessage('Connection test');
-}
-
-window.onload = function() {
-       try {
-               createWorker(false);
-       } catch (exception) {
-               log(exception.name);
-               window.parent.postMessage(exception.name, '*');
-       }
-}
-
-window.onmessage = function(e) {
-       try {
-               createWorker(true);
-       } catch (exception) {
-               log(exception.name);
-               window.parent.postMessage(exception.name, '*');
-       }
-}
-</script>
-</head>
-<body>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/security/resources/shared-worker.js b/LayoutTests/http/tests/security/resources/shared-worker.js
deleted file mode 100644 (file)
index bf4eb96..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-self.addEventListener('connect', function(event) {
-       var port = event.ports[0];
-       port.addEventListener('message', function(event) {
-               port.postMessage('Connected successfully');
-       }, false);
-       port.start();
-}, false);
diff --git a/LayoutTests/http/tests/security/same-origin-shared-worker-blocked-expected.txt b/LayoutTests/http/tests/security/same-origin-shared-worker-blocked-expected.txt
deleted file mode 100644 (file)
index d66f5a1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-This iframe should return a security error:
-
-
-
---------
-Frame: '<!--framePath //<!--frame0-->-->'
---------
-SecurityError
diff --git a/LayoutTests/http/tests/security/same-origin-shared-worker-blocked.html b/LayoutTests/http/tests/security/same-origin-shared-worker-blocked.html
deleted file mode 100644 (file)
index f4a47e2..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<html>
-<head>
-<script>
-var frames = 1;
-if (window.testRunner) {
-       testRunner.dumpAsText();
-       testRunner.dumpChildFramesAsText();
-       internals.settings.setStorageBlockingPolicy('BlockAll');
-}
-
-function decrement() {
-       --frames;
-       if (!frames && window.testRunner)
-               internals.settings.setStorageBlockingPolicy('AllowAll');
-}
-</script>
-</head>
-<body>
-<p>This iframe should return a security error:</p>
-<iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-shared-worker.html" onload="decrement()"></iframe>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/security/storage-blocking-loosened-shared-worker-expected.txt b/LayoutTests/http/tests/security/storage-blocking-loosened-shared-worker-expected.txt
deleted file mode 100644 (file)
index 0a674b4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This iframe should return only one security error:
-
-
-
---------
-Frame: '<!--framePath //<!--frame0-->-->'
---------
-SecurityError
-
-Connected successfully
diff --git a/LayoutTests/http/tests/security/storage-blocking-loosened-shared-worker.html b/LayoutTests/http/tests/security/storage-blocking-loosened-shared-worker.html
deleted file mode 100644 (file)
index 0854a48..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<html>
-<head>
-<script>
-if (window.testRunner) {
-       testRunner.waitUntilDone();
-       testRunner.dumpAsText();
-       testRunner.dumpChildFramesAsText();
-}
-
-if (window.testRunner)
-       internals.settings.setStorageBlockingPolicy('BlockAll');
-
-window.onmessage = function() {
-       if (window.testRunner)
-               internals.settings.setStorageBlockingPolicy('AllowAll');
-       for (var i = 0; i < window.frames.length; ++i)
-               window.frames[i].postMessage('blocked', '*');
-
-       window.onmessage = function() {
-               if (window.testRunner) {
-                       testRunner.notifyDone();
-               }
-       }
-}
-</script>
-</head>
-<body>
-<p>This iframe should return only one security error:</p>
-<iframe src="http://127.0.0.1:8000/security/resources/iframe-for-storage-blocking-changed-shared-worker.html"></iframe>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/security/storage-blocking-strengthened-shared-worker-expected.txt b/LayoutTests/http/tests/security/storage-blocking-strengthened-shared-worker-expected.txt
deleted file mode 100644 (file)
index 565c93e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This iframe should return only one security error:
-
-
-
---------
-Frame: '<!--framePath //<!--frame0-->-->'
---------
-Connected successfully
-
-SecurityError
diff --git a/LayoutTests/http/tests/security/storage-blocking-strengthened-shared-worker.html b/LayoutTests/http/tests/security/storage-blocking-strengthened-shared-worker.html
deleted file mode 100644 (file)
index 48f9b9e..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<html>
-<head>
-<script>
-if (window.testRunner) {
-       testRunner.waitUntilDone();
-       testRunner.dumpAsText();
-       testRunner.dumpChildFramesAsText();
-}
-
-window.onmessage = function() {
-       if (window.testRunner)
-               internals.settings.setStorageBlockingPolicy('BlockAll');
-       for (var i = 0; i < window.frames.length; ++i)
-               window.frames[i].postMessage('blocked', '*');
-
-       window.onmessage = function() {
-               if (window.testRunner) {
-                       internals.settings.setStorageBlockingPolicy('AllowAll');
-                       testRunner.notifyDone();
-               }
-       }
-}
-</script>
-</head>
-<body>
-<p>This iframe should return only one security error:</p>
-<iframe src="http://127.0.0.1:8000/security/resources/iframe-for-storage-blocking-changed-shared-worker.html"></iframe>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/workers/close-in-shared-worker-expected.txt b/LayoutTests/http/tests/websocket/tests/hybi/workers/close-in-shared-worker-expected.txt
deleted file mode 100644 (file)
index 1ac33ee..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Test for Web Socket close in SharedWorker.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-PASS: worker: init
-PASS: worker: WebSocket exists
-PASS: worker: successfullyParsed:[object WebSocket]
-PASS: worker: Connected.
-PASS: worker: Closed.
-DONE
-TEST COMPLETE
-
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/workers/close-in-shared-worker.html b/LayoutTests/http/tests/websocket/tests/hybi/workers/close-in-shared-worker.html
deleted file mode 100644 (file)
index 5a38fb2..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head></head>
-<body>
-<p>Test for Web Socket close in SharedWorker.</p>
-<p></p>
-<p>On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".</p>
-<pre id=log>
-</pre>
-<script>
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-function log(message)
-{
-    document.getElementById("log").innerHTML += message + "\n";
-}
-
-function endTest()
-{
-    log("TEST COMPLETE");
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-var worker = new SharedWorker('resources/close-in-worker.js', 'websocketCloseInWorker');
-worker.port.onmessage = function (evt) {
-    log(evt.data);
-    if (evt.data == "DONE")
-        endTest();
-};
-</script>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/workers/shared-worker-simple-expected.txt b/LayoutTests/http/tests/websocket/tests/hybi/workers/shared-worker-simple-expected.txt
deleted file mode 100644 (file)
index fe7f15c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Test for Web Socket in SharedWorker.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-PASS: worker: init
-PASS: worker: WebSocket exists
-PASS: worker: successfullyParsed:[object WebSocket]
-PASS: worker: Connected.
-PASS: worker: Received: 'Hello from Simple WSH.'
-PASS: worker: Closed.
-PASS: worker: closeEvent.wasClean is true.
-DONE
-TEST COMPLETE
-
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/workers/shared-worker-simple.html b/LayoutTests/http/tests/websocket/tests/hybi/workers/shared-worker-simple.html
deleted file mode 100644 (file)
index 4edc0b6..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head></head>
-<body>
-<p>Test for Web Socket in SharedWorker.</p>
-<p></p>
-<p>On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".</p>
-<pre id=log>
-</pre>
-<script>
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-function log(message)
-{
-    document.getElementById("log").innerHTML += message + "\n";
-}
-
-function endTest()
-{
-    log("TEST COMPLETE");
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-var worker = new SharedWorker('resources/worker-simple.js', 'websocketSimple');
-worker.port.onmessage = function (evt) {
-    log(evt.data);
-    if (evt.data == "DONE")
-        endTest();
-};
-</script>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/workers/shared-worker-importScripts-expected.txt b/LayoutTests/http/tests/workers/shared-worker-importScripts-expected.txt
deleted file mode 100644 (file)
index aac6779..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-Test importScripts for SharedWorkers.
-
-Test started.
-PASS: importScripts(), exists, is a function, and doesn't throw when not given any arguments
-Loaded message from different origin
-PASS: executed script from different origin
-Loaded message from different origin
-PASS: executed script from different origin through a redirect
-Testing single argument:
-Loaded resource 1
-PASS: loaded first source
-Testing multiple arguments:
-Loaded resource 1
-Loaded resource 2
-PASS: Both sources loaded and executed.
-Testing multiple arguments (different order):
-Resource 2 loaded before resource 1
-Loaded resource 2
-Loaded resource 1
-PASS: Both sources loaded and executed.
-Testing multiple arguments, with different origin for one argument:
-Loaded resource 1
-Loaded message from different origin
-Loaded resource 2
-PASS: all resources executed.
-Loaded resource 1
-PASS: Threw Error: NETWORK_ERR: XMLHttpRequest Exception 101 when load failed
-PASS: some resources were loaded despite the network error
-Loaded resource 1
-PASS: Threw SyntaxError: Unexpected identifier 'syntax' when encountering a syntax error in imported script
-PASS: some resources were loaded despite the presence of a syntax error
-Testing multiple arguments, with first resource throwing an exception:
-Loaded resource 1
-First resource throwing an exception
-PASS: Propagated 'Thrown by first resource' from script
-PASS: First resource was executed, and second resource was not
-Testing multiple arguments, with second resource throwing an exception:
-Loaded resource 1
-Loaded resource 2
-Second resource throwing an exception
-PASS: Propagated 'Thrown by second resource' from script
-PASS: Both scripts were executed
-DONE
-
diff --git a/LayoutTests/http/tests/workers/shared-worker-importScripts.html b/LayoutTests/http/tests/workers/shared-worker-importScripts.html
deleted file mode 100644 (file)
index 9372d58..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<body>
-<p>Test importScripts for SharedWorkers.</p>
-<div id=result></div>
-<script>
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-var worker = new SharedWorker('resources/worker-importScripts.js', 'importScripts');
-
-worker.port.onmessage = function(evt) {
-    log(evt.data);
-    if (evt.data == "DONE" && window.testRunner)
-        testRunner.notifyDone();
-}
-</script>
-</body>
diff --git a/LayoutTests/http/tests/workers/shared-worker-invalid-url-expected.txt b/LayoutTests/http/tests/workers/shared-worker-invalid-url-expected.txt
deleted file mode 100644 (file)
index e51d4a1..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Test worker invalid url exceptions. Should print two "PASS" statements.
-
-PASS: Got security error.
-PASS: Got syntax error.
-
diff --git a/LayoutTests/http/tests/workers/shared-worker-invalid-url.html b/LayoutTests/http/tests/workers/shared-worker-invalid-url.html
deleted file mode 100644 (file)
index 0f390bd..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<html>
-<body>
-<p>Test worker invalid url exceptions. Should print two "PASS" statements.</p>
-<div id=result></div>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-function log(message)
-{
-    document.getElementById("result").innerHTML += message + "<br>";
-}
-
-try {
-    new SharedWorker("http://example.com/worker.js");
-    log("FAIL: No exception thrown when accessing a worker from another domain.");
-} catch (error) {
-    if (error.code == 18)
-        log("PASS: Got security error.");
-    else
-        log("FAIL: Got error code " + error.code + ". Expected error code 18.");
-}
-
-try {
-    new SharedWorker("");
-    log("FAIL: No exception throw when accessing an invalid url.");
-} catch (error) {
-    if (error.code == 12)
-        log("PASS: Got syntax error.");
-    else
-        log("FAIL: Got error code " + error.code + ". Expected error code 12.");
-}
-</script>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/workers/shared-worker-redirect-expected.txt b/LayoutTests/http/tests/workers/shared-worker-redirect-expected.txt
deleted file mode 100644 (file)
index 8549020..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Test that loading the shared worker's script does not allow a cross origin redirect (bug 26146)
-
-SUCCESS: threw exception (Error: SecurityError: DOM Exception 18) when attempting to cross origin while loading the worker script.
-SUCCESS: threw error when attempting to redirected cross origin while loading the worker script.
-DONE
-
diff --git a/LayoutTests/http/tests/workers/shared-worker-redirect.html b/LayoutTests/http/tests/workers/shared-worker-redirect.html
deleted file mode 100644 (file)
index 54ca557..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<body>
-<p>Test that loading the shared worker's script does not allow a cross origin redirect (<a href="https://bugs.webkit.org/show_bug.cgi?id=26146">bug 26146</a>)</p>
-<div id=result></div>
-<script>
-function createWorker(url)
-{
-    var worker = new SharedWorker(url, url);
-    worker.port.onmessage = function(evt) { worker.onmessage(evt); };
-    worker.postMessage = function(msg, port) { worker.port.postMessage(msg, port); };
-    return worker;
-}
-</script>
-<script src="resources/worker-redirect.js"></script>
-</body>
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/resources/shared-worker-create.js b/LayoutTests/http/tests/xmlhttprequest/workers/resources/shared-worker-create.js
deleted file mode 100644 (file)
index d46c01b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// Make a SharedWorker that has the same external interface as a DedicatedWorker, to use in shared test code.
-function createWorker(url)
-{
-    var worker = new SharedWorker(url, url);
-    worker.port.onmessage = function(event) { worker.onmessage(event); };
-    worker.postMessage = function(message, port) { worker.port.postMessage(message, port); };
-    return worker;
-}
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple-expected.txt b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple-expected.txt
deleted file mode 100644 (file)
index 054b989..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-get-fail-non-simple.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-GET should not trigger a preflight request from a shared worker unless it has non-simple headers.
-
-PASS: Cross-domain access allowed for simple get.
-PASS: Exception thrown. Cross-domain access was denied in 'send'. [NETWORK_ERR: XMLHttpRequest Exception 101].
-DONE
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple.html b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple.html
deleted file mode 100644 (file)
index 795a487..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<body>
-<p>GET should not trigger a preflight request from a shared worker unless it has non-simple headers.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create.js"></script>
-<script src="resources/access-control-basic-get-fail-non-simple-test.js"></script>
-</body>
-
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-close-expected.txt b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-close-expected.txt
deleted file mode 100644 (file)
index 7a233af..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Tests invoking close() in the middle of an XMLHttpRequest in a shared worker.
-
-PASS: Async test
-PASS: sync test
-DONE
-
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-close.html b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-close.html
deleted file mode 100644 (file)
index fd17934..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<body>
-<p>Tests invoking close() in the middle of an XMLHttpRequest in a shared worker.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create.js"></script>
-<script src="resources/close-test.js"></script>
-</body>
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt
deleted file mode 100755 (executable)
index 990b583..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.
-
-GET(""): GET(null bytes), Content-Type: null
-GET(null): GET(null bytes), Content-Type: null
-GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
-POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
-HEAD(""): HEAD(0 bytes), Content-Type: null
-HEAD(null): HEAD(0 bytes), Content-Type: null
-HEAD("123"): HEAD(0 bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
-WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(null): SEARCH(0 bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
-DONE
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async.html b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
deleted file mode 100644 (file)
index b1a642d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<body>
-<p>GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.</p>
-<div id=result></div>
-<script src="resources/shared-worker-create.js"></script>
-<script src="resources/methods-async-test.js"></script>
-</body>
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt
deleted file mode 100755 (executable)
index 990b583..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.
-
-GET(""): GET(null bytes), Content-Type: null
-GET(null): GET(null bytes), Content-Type: null
-GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
-POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
-HEAD(""): HEAD(0 bytes), Content-Type: null
-HEAD(null): HEAD(0 bytes), Content-Type: null
-HEAD("123"): HEAD(0 bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
-WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(null): SEARCH(0 bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
-DONE
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods.html b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods.html
deleted file mode 100644 (file)
index 6aa7b33..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<html>
-<body>
-<p>GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.</p>
-<script src="resources/shared-worker-create.js"></script>
-<script src="resources/methods-test.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-referer-expected.txt b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-referer-expected.txt
deleted file mode 100644 (file)
index f585db7..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-Referer should be set for XMLHttpRequest from SharedWorkers.
-
-PASS: Sync referer.
-PASS: Async referer.
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-referer.html b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-referer.html
deleted file mode 100644 (file)
index c8b3b8b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<html>
-<body>
-<p>Referer should be set for XMLHttpRequest from SharedWorkers.</p>
-<script src="resources/shared-worker-create.js"></script>
-<script src="resources/referer-test.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found-expected.txt b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found-expected.txt
deleted file mode 100644 (file)
index cee1431..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Request a file that isn't present on the server in XMLHttpRequest in a shared worker. If this test passes, there should be a single PASS below.
-
-PASS
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html b/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html
deleted file mode 100644 (file)
index 4370365..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<html>
-<body>
-<p>Request a file that isn't present on the server in XMLHttpRequest in a shared worker.  If this test passes, there should be a single PASS below.</p>
-<script src="resources/shared-worker-create.js"></script>
-<script src="resources/file-not-found.js"></script>
-</body>
-</html>
index 18057ab..e80247f 100644 (file)
@@ -40,7 +40,6 @@ shouldBe('PeerConnection.length', '2');
 shouldBe('PopStateEvent.length', '1');
 shouldBe('ProgressEvent.length', '1');
 shouldBe('ShadowRoot.length', '1');
-shouldBe('SharedWorker.length', '1');
 shouldBe('StorageEvent.length', '1');
 shouldBe('TextTrackCue.length', '3');
 shouldBe('TrackEvent.length', '1');
index ff403c3..4d32314 100644 (file)
@@ -1733,11 +1733,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('get')
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').value is SharedWorker
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').value is SpeechSynthesisEvent
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('set') is false
diff --git a/LayoutTests/js/dom/global-constructors-attributes-shared-worker-expected.txt b/LayoutTests/js/dom/global-constructors-attributes-shared-worker-expected.txt
deleted file mode 100644 (file)
index 53f8155..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-Test to ensure that global constructors have the right attributes in the shared worker context
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Starting worker: script-tests/global-constructors-attributes.js
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').value is Blob
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').value is EventSource
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').value is FileReader
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').value is FileReaderSync
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').value is ImageData
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').value is MessageChannel
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').value is MessageEvent
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').value is SharedWorkerGlobalScope
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').value is URL
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').value is WebSocket
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').value is WorkerGlobalScope
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').value is WorkerLocation
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').value is XMLHttpRequest
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').value is webkitURL
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').configurable is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/js/dom/global-constructors-attributes-shared-worker.html b/LayoutTests/js/dom/global-constructors-attributes-shared-worker.html
deleted file mode 100644 (file)
index c55534d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<html>
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<script>
-description("Test to ensure that global constructors have the right attributes in the shared worker context");
-
-worker = startWorker("script-tests/global-constructors-attributes.js", true /* shared */);
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt b/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt
deleted file mode 100644 (file)
index 5af5e17..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.
-
-GET(""): GET(null bytes), Content-Type: null
-GET(null): GET(null bytes), Content-Type: null
-GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
-POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
-HEAD(""): HEAD(null bytes), Content-Type: null
-HEAD(null): HEAD(null bytes), Content-Type: null
-HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
-WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
-DONE
diff --git a/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt b/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt
deleted file mode 100644 (file)
index 5af5e17..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.
-
-GET(""): GET(null bytes), Content-Type: null
-GET(null): GET(null bytes), Content-Type: null
-GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
-POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
-HEAD(""): HEAD(null bytes), Content-Type: null
-HEAD(null): HEAD(null bytes), Content-Type: null
-HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
-WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
-DONE
index 2ea1afd..e03201f 100644 (file)
@@ -36,7 +36,6 @@ FAIL PeerConnection.length should be 2. Threw exception ReferenceError: Can't fi
 PASS PopStateEvent.length is 1
 PASS ProgressEvent.length is 1
 FAIL ShadowRoot.length should be 1. Threw exception ReferenceError: Can't find variable: ShadowRoot
-PASS SharedWorker.length is 1
 PASS StorageEvent.length is 1
 PASS TextTrackCue.length is 3
 PASS TrackEvent.length is 1
index f56d45a..9fea479 100644 (file)
@@ -1733,11 +1733,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('get')
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').value is SharedWorker
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').value is Storage
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').hasOwnProperty('set') is false
diff --git a/LayoutTests/platform/efl/js/dom/global-constructors-attributes-shared-worker-expected.txt b/LayoutTests/platform/efl/js/dom/global-constructors-attributes-shared-worker-expected.txt
deleted file mode 100644 (file)
index 53f8155..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-Test to ensure that global constructors have the right attributes in the shared worker context
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Starting worker: script-tests/global-constructors-attributes.js
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').value is Blob
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').value is EventSource
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').value is FileReader
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').value is FileReaderSync
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').value is ImageData
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').value is MessageChannel
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').value is MessageEvent
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').value is SharedWorkerGlobalScope
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').value is URL
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').value is WebSocket
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').value is WorkerGlobalScope
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').value is WorkerLocation
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').value is XMLHttpRequest
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').value is webkitURL
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').configurable is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt b/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt
deleted file mode 100644 (file)
index 5af5e17..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.
-
-GET(""): GET(null bytes), Content-Type: null
-GET(null): GET(null bytes), Content-Type: null
-GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
-POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
-HEAD(""): HEAD(null bytes), Content-Type: null
-HEAD(null): HEAD(null bytes), Content-Type: null
-HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
-WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
-DONE
diff --git a/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt b/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt
deleted file mode 100644 (file)
index 5af5e17..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-GET and POST should not be the only HTTP methods implemented in XMLHttpRequest for SharedWorkers.
-
-GET(""): GET(null bytes), Content-Type: null
-GET(null): GET(null bytes), Content-Type: null
-GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
-POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
-PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
-DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
-HEAD(""): HEAD(null bytes), Content-Type: null
-HEAD(null): HEAD(null bytes), Content-Type: null
-HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
-WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
-SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
-DONE
index 2ea1afd..e03201f 100644 (file)
@@ -36,7 +36,6 @@ FAIL PeerConnection.length should be 2. Threw exception ReferenceError: Can't fi
 PASS PopStateEvent.length is 1
 PASS ProgressEvent.length is 1
 FAIL ShadowRoot.length should be 1. Threw exception ReferenceError: Can't find variable: ShadowRoot
-PASS SharedWorker.length is 1
 PASS StorageEvent.length is 1
 PASS TextTrackCue.length is 3
 PASS TrackEvent.length is 1
index f7ae29d..9c16abc 100644 (file)
@@ -1818,11 +1818,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('get')
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').value is SharedWorker
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').value is Storage
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').hasOwnProperty('set') is false
index 14819ea..c96b9c6 100644 (file)
@@ -283,7 +283,6 @@ PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGUseElement') is 'object'
 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGVKernElement') is 'object'
 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGViewElement') is 'object'
 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGZoomEvent') is 'object'
-PASS typeof Object.getOwnPropertyDescriptor(window, 'SharedWorker') is 'object'
 PASS typeof Object.getOwnPropertyDescriptor(window, 'Storage') is 'object'
 PASS typeof Object.getOwnPropertyDescriptor(window, 'StorageEvent') is 'object'
 PASS typeof Object.getOwnPropertyDescriptor(window, 'String') is 'object'
index 394414b..519902b 100644 (file)
@@ -34,7 +34,6 @@ FAIL PeerConnection.length should be 2. Threw exception ReferenceError: Can't fi
 PASS PopStateEvent.length is 2
 PASS ProgressEvent.length is 2
 FAIL ShadowRoot.length should be 1. Threw exception ReferenceError: Can't find variable: ShadowRoot
-PASS SharedWorker.length is 2
 PASS StorageEvent.length is 2
 PASS TextTrackCue.length is 3
 PASS TrackEvent.length is 2
index cac3189..72d1ff9 100644 (file)
@@ -299,7 +299,6 @@ PASS SVGViewSpec.toString() is '[object SVGViewSpecConstructor]'
 PASS SVGZoomAndPan.toString() is '[object SVGZoomAndPanConstructor]'
 PASS SVGZoomEvent.toString() is '[object SVGZoomEventConstructor]'
 PASS Selection.toString() is '[object SelectionConstructor]'
-PASS SharedWorker.toString() is '[object SharedWorkerConstructor]'
 PASS Storage.toString() is '[object StorageConstructor]'
 PASS StorageEvent.toString() is '[object StorageEventConstructor]'
 PASS StyleSheet.toString() is '[object StyleSheetConstructor]'
diff --git a/LayoutTests/platform/ios-sim-deprecated/fast/workers/shared-worker-storagequota-query-usage-expected.txt b/LayoutTests/platform/ios-sim-deprecated/fast/workers/shared-worker-storagequota-query-usage-expected.txt
deleted file mode 100644 (file)
index 3eab442..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-This tests querying usage and quota using Quota API.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-Test storagequota APIs in Shared Worker
diff --git a/LayoutTests/platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-allowed-expected.txt b/LayoutTests/platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-allowed-expected.txt
deleted file mode 100644 (file)
index 24b2681..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-This iframe should not return any errors:
-
-This iframe should not return any errors:
-
-
-
---------
-Frame: '<!--framePath //<!--frame0-->-->'
---------
-Connected successfully
-
---------
-Frame: '<!--framePath //<!--frame1-->-->'
---------
-Connected successfully
diff --git a/LayoutTests/platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-expected.txt b/LayoutTests/platform/ios-sim-deprecated/http/tests/security/cross-origin-shared-worker-expected.txt
deleted file mode 100644 (file)
index c04e3a7..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-This iframe should return a security error:
-
-This iframe should not return any errors:
-
-
-
---------
-Frame: '<!--framePath //<!--frame0-->-->'
---------
-SecurityError
-
---------
-Frame: '<!--framePath //<!--frame1-->-->'
---------
-Connected successfully
index ac41192..ed5c7d7 100644 (file)
@@ -1738,11 +1738,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('get')
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').value is SharedWorker
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').value is SpeechSynthesisEvent
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('set') is false
diff --git a/LayoutTests/platform/ios-sim-deprecated/storage/indexeddb/basics-shared-workers-expected.txt b/LayoutTests/platform/ios-sim-deprecated/storage/indexeddb/basics-shared-workers-expected.txt
deleted file mode 100644 (file)
index 9aa84e7..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-[Worker] Test IndexedDB's basics.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Starting worker: resources/basics.js
-FAIL Unexpected error: TypeError: undefined is not an object (evaluating 'request.onsuccess = openCallback')
-FAIL successfullyParsed should be true. Was false.
-
-TEST COMPLETE
-[Worker] indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
-[Worker] 
-[Worker] indexedDB.open('basics')
-FAIL [Worker] indexedDB.open('basics') threw exception TypeError: null is not an object (evaluating 'indexedDB.open')
-FAIL [Worker] 'result' in request should be true. Threw exception TypeError: undefined is not a valid argument for 'in' (evaluating ''result' in request')
-[Worker] Expecting exception from request.result
-PASS [Worker] Exception was thrown.
-FAIL [Worker] code should be 11 (of type number). Was undefined (of type undefined).
-FAIL [Worker] ename should be InvalidStateError. Was TypeError.
-[Worker] Exception message: undefined is not an object (evaluating 'request.result')
-FAIL [Worker] 'error' in request should be true. Threw exception TypeError: undefined is not a valid argument for 'in' (evaluating ''error' in request')
-[Worker] Expecting exception from request.error
-PASS [Worker] Exception was thrown.
-FAIL [Worker] code should be 11 (of type number). Was undefined (of type undefined).
-FAIL [Worker] ename should be InvalidStateError. Was TypeError.
-[Worker] Exception message: undefined is not an object (evaluating 'request.error')
-FAIL [Worker] 'source' in request should be true. Threw exception TypeError: undefined is not a valid argument for 'in' (evaluating ''source' in request')
-FAIL [Worker] request.source should be null. Threw exception TypeError: undefined is not an object (evaluating 'request.source')
-FAIL [Worker] 'transaction' in request should be true. Threw exception TypeError: undefined is not a valid argument for 'in' (evaluating ''transaction' in request')
-FAIL [Worker] request.transaction should be null. Threw exception TypeError: undefined is not an object (evaluating 'request.transaction')
-FAIL [Worker] 'readyState' in request should be true. Threw exception TypeError: undefined is not a valid argument for 'in' (evaluating ''readyState' in request')
-FAIL [Worker] request.readyState should be pending. Threw exception TypeError: undefined is not an object (evaluating 'request.readyState')
-FAIL [Worker] 'onsuccess' in request should be true. Threw exception TypeError: undefined is not a valid argument for 'in' (evaluating ''onsuccess' in request')
-FAIL [Worker] request.onsuccess should be null. Threw exception TypeError: undefined is not an object (evaluating 'request.onsuccess')
-FAIL [Worker] 'onerror' in request should be true. Threw exception TypeError: undefined is not a valid argument for 'in' (evaluating ''onerror' in request')
-FAIL [Worker] request.onerror should be null. Threw exception TypeError: undefined is not an object (evaluating 'request.onerror')
-FAIL [Worker] Unexpected error: TypeError: undefined is not an object (evaluating 'request.onsuccess = openCallback')
-FAIL successfullyParsed should be true. Was false.
-
-TEST COMPLETE
-
index 2ea1afd..e03201f 100644 (file)
@@ -36,7 +36,6 @@ FAIL PeerConnection.length should be 2. Threw exception ReferenceError: Can't fi
 PASS PopStateEvent.length is 1
 PASS ProgressEvent.length is 1
 FAIL ShadowRoot.length should be 1. Threw exception ReferenceError: Can't find variable: ShadowRoot
-PASS SharedWorker.length is 1
 PASS StorageEvent.length is 1
 PASS TextTrackCue.length is 3
 PASS TrackEvent.length is 1
index c546591..c2c1ec5 100644 (file)
@@ -1738,11 +1738,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('get')
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').value is SharedWorker
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').value is SpeechSynthesisEvent
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('set') is false
index 7eb09a2..1b429d9 100644 (file)
@@ -1728,11 +1728,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('get')
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').value is SharedWorker
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').value is SpeechSynthesisEvent
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('set') is false
index 2d41337..886c93e 100644 (file)
@@ -460,48 +460,7 @@ http/tests/security/cross-origin-worker-indexeddb.html [ Skip ]
 ########################################
 ### START OF (6) Features that are not supported when NetworkProcess is enabled (i.e. they only work on Mountain Lion, and not on newer OS versions).
 
-# Shared workers disabled with the Network Process
-[ Mavericks+ ] fast/workers/shared-worker-constructor.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-context-gc.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-event-listener.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-exception.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-frame-lifecycle.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-gc.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-in-iframe.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-lifecycle.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-load-error.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-location.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-messageevent-source.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-name.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-navigator.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-replace-global-constructor.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-replace-self.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-script-error.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-shared.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-simple.html [ Skip ]
-[ Mavericks+ ] fast/workers/shared-worker-storagequota-query-usage.html [ Skip ]
-[ Mavericks+ ] fast/workers/worker-crash-with-invalid-location.html [ Skip ]
-[ Mavericks+ ] http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html [ Skip ]
-[ Mavericks+ ] http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html [ Skip ]
-[ Mavericks+ ] http/tests/security/cross-origin-shared-worker-allowed.html [ Skip ]
-[ Mavericks+ ] http/tests/security/cross-origin-shared-worker.html [ Skip ]
-[ Mavericks+ ] http/tests/security/same-origin-shared-worker-blocked.html [ Skip ]
-[ Mavericks+ ] http/tests/security/storage-blocking-loosened-shared-worker.html [ Skip ]
-[ Mavericks+ ] http/tests/security/storage-blocking-strengthened-shared-worker.html [ Skip ]
-[ Mavericks+ ] http/tests/websocket/tests/hybi/workers/close-in-shared-worker.html [ Skip ]
-[ Mavericks+ ] http/tests/websocket/tests/hybi/workers/shared-worker-simple.html [ Skip ]
-[ Mavericks+ ] http/tests/workers/shared-worker-importScripts.html [ Skip ]
-[ Mavericks+ ] http/tests/workers/shared-worker-invalid-url.html [ Skip ]
-[ Mavericks+ ] http/tests/workers/shared-worker-redirect.html [ Skip ]
-[ Mavericks+ ] http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple.html [ Skip ]
-[ Mavericks+ ] http/tests/xmlhttprequest/workers/shared-worker-close.html [ Skip ]
-[ Mavericks+ ] http/tests/xmlhttprequest/workers/shared-worker-methods-async.html [ Skip ]
-[ Mavericks+ ] http/tests/xmlhttprequest/workers/shared-worker-methods.html [ Skip ]
-[ Mavericks+ ] http/tests/xmlhttprequest/workers/shared-worker-referer.html [ Skip ]
-[ Mavericks+ ] http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html [ Skip ]
 [ Mavericks+ ] js/dom/global-constructors-attributes-shared-worker.html [ Skip ]
-
-# FIXME: Land correct expected results for each OS version.
 [ Mavericks+ ] fast/dom/call-a-constructor-as-a-function.html [ Failure ]
 [ Mavericks+ ] js/dom/constructor-length.html [ Failure ]
 [ Mavericks+ ] js/dom/global-constructors-attributes.html [ Failure ]
index 2ea1afd..e03201f 100644 (file)
@@ -36,7 +36,6 @@ FAIL PeerConnection.length should be 2. Threw exception ReferenceError: Can't fi
 PASS PopStateEvent.length is 1
 PASS ProgressEvent.length is 1
 FAIL ShadowRoot.length should be 1. Threw exception ReferenceError: Can't find variable: ShadowRoot
-PASS SharedWorker.length is 1
 PASS StorageEvent.length is 1
 PASS TextTrackCue.length is 3
 PASS TrackEvent.length is 1
index 3ff1723..8157147 100644 (file)
@@ -1758,11 +1758,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('get')
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').value is SharedWorker
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').value is SpeechSynthesisEvent
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'SpeechSynthesisEvent').hasOwnProperty('set') is false
index 0906fdc..8a1cde7 100644 (file)
@@ -18,7 +18,6 @@ PASS Int16Array() threw exception TypeError: Int16ArrayConstructor is not a func
 PASS Int32Array() threw exception TypeError: Int32ArrayConstructor is not a function (evaluating 'Int32Array()').
 PASS Int8Array() threw exception TypeError: Int8ArrayConstructor is not a function (evaluating 'Int8Array()').
 PASS MessageChannel() threw exception TypeError: MessageChannelConstructor is not a function (evaluating 'MessageChannel()').
-PASS SharedWorker() threw exception TypeError: SharedWorkerConstructor is not a function (evaluating 'SharedWorker()').
 PASS Uint16Array() threw exception TypeError: Uint16ArrayConstructor is not a function (evaluating 'Uint16Array()').
 PASS Uint32Array() threw exception TypeError: Uint32ArrayConstructor is not a function (evaluating 'Uint32Array()').
 PASS Uint8Array() threw exception TypeError: Uint8ArrayConstructor is not a function (evaluating 'Uint8Array()').
index 13d96e8..3a190df 100644 (file)
@@ -1558,11 +1558,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('get')
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'Selection').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').value is SharedWorker
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'SharedWorker').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').value is Storage
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'Storage').hasOwnProperty('set') is false
diff --git a/LayoutTests/platform/win/js/dom/global-constructors-attributes-shared-worker-expected.txt b/LayoutTests/platform/win/js/dom/global-constructors-attributes-shared-worker-expected.txt
deleted file mode 100644 (file)
index 53f8155..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-Test to ensure that global constructors have the right attributes in the shared worker context
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Starting worker: script-tests/global-constructors-attributes.js
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').value is Blob
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').value is EventSource
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'EventSource').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').value is FileReader
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReader').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').value is FileReaderSync
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'FileReaderSync').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').value is ImageData
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ImageData').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').value is MessageChannel
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageChannel').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').value is MessageEvent
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').value is SharedWorkerGlobalScope
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'SharedWorkerGlobalScope').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').value is URL
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').value is WebSocket
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WebSocket').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').value is WorkerGlobalScope
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerGlobalScope').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').value is WorkerLocation
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'WorkerLocation').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').value is XMLHttpRequest
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').value is webkitURL
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('get') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('set') is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').enumerable is false
-PASS [Worker] Object.getOwnPropertyDescriptor(global, 'webkitURL').configurable is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
index 2e3d15b..f11b4b5 100644 (file)
@@ -717,11 +717,11 @@ function finishJSTest()
         testRunner.notifyDone();
 }
 
-function startWorker(testScriptURL, shared)
+function startWorker(testScriptURL)
 {
     self.jsTestIsAsync = true;
     debug('Starting worker: ' + testScriptURL);
-    var worker = shared ? new SharedWorker(testScriptURL, "Shared Worker") : new Worker(testScriptURL);
+    var worker = new Worker(testScriptURL);
     worker.onmessage = function(event)
     {
         var workerPrefix = "[Worker] ";
@@ -749,38 +749,11 @@ function startWorker(testScriptURL, shared)
         finishJSTest();
     }
 
-    if (shared) {
-        worker.port.onmessage = function(event) { worker.onmessage(event); };
-        worker.port.start();
-    }
     return worker;
 }
 
 if (isWorker()) {
     var workerPort = self;
-    if (self.name == "Shared Worker") {
-        self.onconnect = function(e) {
-            workerPort = e.ports[0];
-            workerPort.onmessage = function(event)
-            {
-                var colon = event.data.indexOf(":");
-                if (colon == -1) {
-                    testFailed("Unrecognized message to shared worker: " + event.data);
-                    return;
-                }
-                var code = event.data.substring(0, colon);
-                var payload = event.data.substring(colon + 1);
-                try {
-                    if (code == "IMPORT")
-                        importScripts(payload);
-                    else
-                        testFailed("Unrecognized message to shared worker: " + event.data);
-                } catch (ex) {
-                    testFailed("Caught exception in shared worker onmessage: " + ex);
-                }
-            };
-        };
-    }
     description = function(msg, quiet) {
         workerPort.postMessage('DESC:' + msg);
     }
index 518a039..9cc7af2 100644 (file)
@@ -702,11 +702,11 @@ function finishJSTest()
         testRunner.notifyDone();
 }
 
-function startWorker(testScriptURL, shared)
+function startWorker(testScriptURL)
 {
     self.jsTestIsAsync = true;
     debug('Starting worker: ' + testScriptURL);
-    var worker = shared ? new SharedWorker(testScriptURL, "Shared Worker") : new Worker(testScriptURL);
+    var worker = new Worker(testScriptURL);
     worker.onmessage = function(event)
     {
         var workerPrefix = "[Worker] ";
@@ -734,38 +734,11 @@ function startWorker(testScriptURL, shared)
         finishJSTest();
     };
 
-    if (shared) {
-        worker.port.onmessage = function(event) { worker.onmessage(event); };
-        worker.port.start();
-    }
     return worker;
 }
 
 if (isWorker()) {
     var workerPort = self;
-    if (self.name == "Shared Worker") {
-        self.onconnect = function(e) {
-            workerPort = e.ports[0];
-            workerPort.onmessage = function(event)
-            {
-                var colon = event.data.indexOf(":");
-                if (colon == -1) {
-                    testFailed("Unrecognized message to shared worker: " + event.data);
-                    return;
-                }
-                var code = event.data.substring(0, colon);
-                var payload = event.data.substring(colon + 1);
-                try {
-                    if (code == "IMPORT")
-                        importScripts(payload);
-                    else
-                        testFailed("Unrecognized message to shared worker: " + event.data);
-                } catch (ex) {
-                    testFailed("Caught exception in shared worker onmessage: " + ex);
-                }
-            };
-        };
-    }
     description = function(msg, quiet) {
         workerPort.postMessage('DESC:' + msg);
     };
diff --git a/LayoutTests/storage/indexeddb/basics-shared-workers-expected.txt b/LayoutTests/storage/indexeddb/basics-shared-workers-expected.txt
deleted file mode 100644 (file)
index 719b823..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-[Worker] Test IndexedDB's basics.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Starting worker: resources/basics.js
-[Worker] indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
-[Worker] 
-[Worker] indexedDB.open('basics')
-PASS [Worker] 'result' in request is true
-[Worker] Expecting exception from request.result
-PASS [Worker] Exception was thrown.
-PASS [Worker] code is DOMException.INVALID_STATE_ERR
-PASS [Worker] ename is 'InvalidStateError'
-[Worker] Exception message: Failed to read the 'result' property from 'IDBRequest': The request has not finished.
-PASS [Worker] 'error' in request is true
-[Worker] Expecting exception from request.error
-PASS [Worker] Exception was thrown.
-PASS [Worker] code is DOMException.INVALID_STATE_ERR
-PASS [Worker] ename is 'InvalidStateError'
-[Worker] Exception message: Failed to read the 'error' property from 'IDBRequest': The request has not finished.
-PASS [Worker] 'source' in request is true
-PASS [Worker] request.source is null
-PASS [Worker] 'transaction' in request is true
-PASS [Worker] request.transaction is null
-PASS [Worker] 'readyState' in request is true
-PASS [Worker] request.readyState is "pending"
-PASS [Worker] 'onsuccess' in request is true
-PASS [Worker] request.onsuccess is null
-PASS [Worker] 'onerror' in request is true
-PASS [Worker] request.onerror is null
-PASS [Worker] 'result' in event.target is true
-PASS [Worker] !!event.target.result is true
-PASS [Worker] 'error' in event.target is true
-PASS [Worker] event.target.error is null
-PASS [Worker] 'source' in event.target is true
-PASS [Worker] request.source is null
-PASS [Worker] 'transaction' in event.target is true
-PASS [Worker] event.target.transaction is null
-PASS [Worker] 'readyState' in request is true
-PASS [Worker] event.target.readyState is "done"
-PASS [Worker] 'onsuccess' in event.target is true
-PASS [Worker] 'onerror' in event.target is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/storage/indexeddb/basics-shared-workers.html b/LayoutTests/storage/indexeddb/basics-shared-workers.html
deleted file mode 100644 (file)
index b01c577..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-<script src="resources/shared.js"></script>
-</head>
-<body>
-<script>worker = startWorker('resources/basics.js', true /*shared*/);</script>
-</body>
-</html>
index a38f6bf..edfed49 100644 (file)
@@ -1,3 +1,12 @@
+2015-01-11  Sam Weinig  <sam@webkit.org>
+
+        Remove support for SharedWorkers
+        https://bugs.webkit.org/show_bug.cgi?id=140344
+
+        Reviewed by Anders Carlsson.
+
+        * Configurations/FeatureDefines.xcconfig:
+
 2015-01-12  Myles C. Maxfield  <mmaxfield@apple.com>
 
         Allow targetting the SVG->OTF font converter with ENABLE(SVG_OTF_CONVERTER)
index b23d79b..db75115 100644 (file)
@@ -163,7 +163,6 @@ ENABLE_REMOTE_INSPECTOR_macosx_101000 = ENABLE_REMOTE_INSPECTOR;
 ENABLE_REMOTE_INSPECTOR_macosx_101100 = ENABLE_REMOTE_INSPECTOR;
 ENABLE_RESOLUTION_MEDIA_QUERY = ;
 ENABLE_RUBBER_BANDING[sdk=macosx*] = ENABLE_RUBBER_BANDING;
-ENABLE_SHARED_WORKERS = ENABLE_SHARED_WORKERS;
 ENABLE_CSS_SCROLL_SNAP = ENABLE_CSS_SCROLL_SNAP;
 ENABLE_SPEECH_SYNTHESIS = ENABLE_SPEECH_SYNTHESIS;
 ENABLE_SQL_DATABASE = ENABLE_SQL_DATABASE;
@@ -228,4 +227,4 @@ ENABLE_LLINT_C_LOOP = ;
 
 ENABLE_SATURATED_LAYOUT_ARITHMETIC = ENABLE_SATURATED_LAYOUT_ARITHMETIC;
 
-FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RUBBER_BANDING) $(ENABLE_SHARED_WORKERS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_OTF_CONVERTER) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_PICTURE_SIZES) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(ENABLE_SATURATED_LAYOUT_ARITHMETIC) $(ENABLE_VIDEO_PRESENTATION_MODE);
+FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RUBBER_BANDING) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_OTF_CONVERTER) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_PICTURE_SIZES) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(ENABLE_SATURATED_LAYOUT_ARITHMETIC) $(ENABLE_VIDEO_PRESENTATION_MODE);
index b152e85..fbf6fa5 100644 (file)
@@ -1,3 +1,12 @@
+2015-01-11  Sam Weinig  <sam@webkit.org>
+
+        Remove support for SharedWorkers
+        https://bugs.webkit.org/show_bug.cgi?id=140344
+
+        Reviewed by Anders Carlsson.
+
+        * wtf/FeatureDefines.h:
+
 2015-01-12  Darin Adler  <darin@apple.com>
 
         Modernize and streamline HTMLTokenizer
index 711fe4c..a0ad9e6 100644 (file)
@@ -653,10 +653,6 @@ the public iOS SDK. We will also need to update the FeatureDefines.xcconfig file
 #define ENABLE_SATURATED_LAYOUT_ARITHMETIC 1
 #endif
 
-#if !defined(ENABLE_SHARED_WORKERS)
-#define ENABLE_SHARED_WORKERS 0
-#endif
-
 #if !defined(ENABLE_SMOOTH_SCROLLING)
 #define ENABLE_SMOOTH_SCROLLING 0
 #endif
index ae5911a..8b46266 100644 (file)
@@ -606,8 +606,6 @@ set(WebCore_NON_SVG_IDL_FILES
 
     workers/AbstractWorker.idl
     workers/DedicatedWorkerGlobalScope.idl
-    workers/SharedWorker.idl
-    workers/SharedWorkerGlobalScope.idl
     workers/Worker.idl
     workers/WorkerGlobalScope.idl
     workers/WorkerLocation.idl
@@ -1129,7 +1127,6 @@ set(WebCore_SOURCES
     bindings/js/JSSVGElementInstanceCustom.cpp
     bindings/js/JSSVGLengthCustom.cpp
     bindings/js/JSSVGPathSegCustom.cpp
-    bindings/js/JSSharedWorkerCustom.cpp
     bindings/js/JSStorageCustom.cpp
     bindings/js/JSStyleSheetCustom.cpp
     bindings/js/JSStyleSheetListCustom.cpp
@@ -2649,11 +2646,6 @@ set(WebCore_SOURCES
     workers/AbstractWorker.cpp
     workers/DedicatedWorkerGlobalScope.cpp
     workers/DedicatedWorkerThread.cpp
-    workers/DefaultSharedWorkerRepository.cpp
-    workers/SharedWorker.cpp
-    workers/SharedWorkerGlobalScope.cpp
-    workers/SharedWorkerRepository.cpp
-    workers/SharedWorkerThread.cpp
     workers/Worker.cpp
     workers/WorkerEventQueue.cpp
     workers/WorkerGlobalScope.cpp
@@ -3157,7 +3149,6 @@ set(IDL_FILES_TMP ${DERIVED_SOURCES_WEBCORE_DIR}/idl_files.tmp)
 set(SUPPLEMENTAL_DEPENDENCY_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/supplemental_dependency.tmp)
 set(WINDOW_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/DOMWindowConstructors.idl)
 set(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/WorkerGlobalScopeConstructors.idl)
-set(SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/SharedWorkerGlobalScopeConstructors.idl)
 set(DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/DedicatedWorkerGlobalScopeConstructors.idl)
 set(IDL_ATTRIBUTES_FILE ${WEBCORE_DIR}/bindings/scripts/IDLAttributes.txt)
 
@@ -3347,16 +3338,15 @@ list(APPEND WebCoreTestSupport_IDL_FILES ${DERIVED_SOURCES_WEBCORE_DIR}/Internal
 file(WRITE ${IDL_FILES_TMP} ${IDL_FILES_LIST})
 
 add_custom_command(
-    OUTPUT ${SUPPLEMENTAL_DEPENDENCY_FILE} ${WINDOW_CONSTRUCTORS_FILE} ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE} ${SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE} ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
+    OUTPUT ${SUPPLEMENTAL_DEPENDENCY_FILE} ${WINDOW_CONSTRUCTORS_FILE} ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE} ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
     DEPENDS ${WEBCORE_DIR}/bindings/scripts/preprocess-idls.pl ${SCRIPTS_PREPROCESS_IDLS} ${WebCore_IDL_FILES} ${WebCoreTestSupport_IDL_FILES}
     COMMAND ${PERL_EXECUTABLE} -I${WEBCORE_DIR}/bindings/scripts ${WEBCORE_DIR}/bindings/scripts/preprocess-idls.pl --defines "${FEATURE_DEFINES_JAVASCRIPT}" --idlFilesList ${IDL_FILES_TMP} --supplementalDependencyFile ${SUPPLEMENTAL_DEPENDENCY_FILE} --windowConstructorsFile ${WINDOW_CONSTRUCTORS_FILE} --workerGlobalScopeConstructorsFile ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
---sharedWorkerGlobalScopeConstructorsFile ${SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE} --dedicatedWorkerGlobalScopeConstructorsFile ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
+--dedicatedWorkerGlobalScopeConstructorsFile ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
     VERBATIM)
 
 set(ADDITIONAL_BINDINGS_DEPENDENCIES
     ${WINDOW_CONSTRUCTORS_FILE}
     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
-    ${SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
 )
 
index ec37879..f417294 100644 (file)
@@ -1,3 +1,64 @@
+2015-01-11  Sam Weinig  <sam@webkit.org>
+
+        Remove support for SharedWorkers
+        https://bugs.webkit.org/show_bug.cgi?id=140344
+
+        Reviewed by Anders Carlsson.
+
+        * CMakeLists.txt:
+        * Configurations/FeatureDefines.xcconfig:
+        * DerivedSources.cpp:
+        * DerivedSources.make:
+        * PlatformGTK.cmake:
+        * PlatformMac.cmake:
+        * WebCore.vcxproj/WebCore.vcxproj:
+        * WebCore.vcxproj/WebCore.vcxproj.filters:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/generic/RuntimeEnabledFeatures.cpp:
+        (WebCore::RuntimeEnabledFeatures::sharedWorkerEnabled): Deleted.
+        * bindings/generic/RuntimeEnabledFeatures.h:
+        * bindings/js/JSBindingsAllInOne.cpp:
+        * bindings/js/JSDOMWindowCustom.cpp:
+        * bindings/js/JSSharedWorkerCustom.cpp: Removed.
+        * bindings/js/JSWorkerGlobalScopeBase.cpp:
+        (WebCore::toJSWorkerGlobalScope):
+        (WebCore::toJSSharedWorkerGlobalScope): Deleted.
+        * bindings/js/JSWorkerGlobalScopeBase.h:
+        * bindings/js/WorkerScriptController.cpp:
+        (WebCore::WorkerScriptController::initScript):
+        * bindings/scripts/IDLAttributes.txt:
+        * bindings/scripts/preprocess-idls.pl:
+        * dom/Document.cpp:
+        (WebCore::Document::prepareForDestruction):
+        * dom/EventTarget.h:
+        * dom/EventTargetFactory.in:
+        * history/PageCache.cpp:
+        (WebCore::logCanCacheFrameDecision):
+        (WebCore::PageCache::canCachePageContainingThisFrame):
+        * loader/FrameLoader.cpp:
+        * page/SecurityOrigin.h:
+        (WebCore::SecurityOrigin::canAccessLocalStorage):
+        (WebCore::SecurityOrigin::canAccessSharedWorkers): Deleted.
+        * platform/FeatureCounterKeys.h:
+        * platform/PlatformStrategies.h:
+        (WebCore::PlatformStrategies::PlatformStrategies):
+        (WebCore::PlatformStrategies::sharedWorkerStrategy): Deleted.
+        * workers/DefaultSharedWorkerRepository.cpp: Removed.
+        * workers/DefaultSharedWorkerRepository.h: Removed.
+        * workers/SharedWorker.cpp: Removed.
+        * workers/SharedWorker.h: Removed.
+        * workers/SharedWorker.idl: Removed.
+        * workers/SharedWorkerGlobalScope.cpp: Removed.
+        * workers/SharedWorkerGlobalScope.h: Removed.
+        * workers/SharedWorkerGlobalScope.idl: Removed.
+        * workers/SharedWorkerRepository.cpp: Removed.
+        * workers/SharedWorkerRepository.h: Removed.
+        * workers/SharedWorkerStrategy.h: Removed.
+        * workers/SharedWorkerThread.cpp: Removed.
+        * workers/SharedWorkerThread.h: Removed.
+        * workers/WorkerGlobalScope.h:
+        (WebCore::WorkerGlobalScope::isSharedWorkerGlobalScope): Deleted.
+
 2015-01-12  Byungseon Shin  <sun.shin@lge.com>
 
         REGRESSION(r178029): [GTK][EFL] Caused no-backing-for-clip-overlap test failures
index b23d79b..db75115 100644 (file)
@@ -163,7 +163,6 @@ ENABLE_REMOTE_INSPECTOR_macosx_101000 = ENABLE_REMOTE_INSPECTOR;
 ENABLE_REMOTE_INSPECTOR_macosx_101100 = ENABLE_REMOTE_INSPECTOR;
 ENABLE_RESOLUTION_MEDIA_QUERY = ;
 ENABLE_RUBBER_BANDING[sdk=macosx*] = ENABLE_RUBBER_BANDING;
-ENABLE_SHARED_WORKERS = ENABLE_SHARED_WORKERS;
 ENABLE_CSS_SCROLL_SNAP = ENABLE_CSS_SCROLL_SNAP;
 ENABLE_SPEECH_SYNTHESIS = ENABLE_SPEECH_SYNTHESIS;
 ENABLE_SQL_DATABASE = ENABLE_SQL_DATABASE;
@@ -228,4 +227,4 @@ ENABLE_LLINT_C_LOOP = ;
 
 ENABLE_SATURATED_LAYOUT_ARITHMETIC = ENABLE_SATURATED_LAYOUT_ARITHMETIC;
 
-FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RUBBER_BANDING) $(ENABLE_SHARED_WORKERS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_OTF_CONVERTER) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_PICTURE_SIZES) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(ENABLE_SATURATED_LAYOUT_ARITHMETIC) $(ENABLE_VIDEO_PRESENTATION_MODE);
+FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RUBBER_BANDING) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_OTF_CONVERTER) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_PICTURE_SIZES) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(ENABLE_SATURATED_LAYOUT_ARITHMETIC) $(ENABLE_VIDEO_PRESENTATION_MODE);
index c11198b..29ea4ed 100644 (file)
 #include "JSScreen.cpp"
 #include "JSScriptProfile.cpp"
 #include "JSScriptProfileNode.cpp"
-#include "JSSharedWorker.cpp"
-#include "JSSharedWorkerGlobalScope.cpp"
 #include "JSSQLError.cpp"
 #include "JSSQLException.cpp"
 #include "JSSQLResultSet.cpp"
index 728ffc0..c1a8506 100644 (file)
@@ -502,8 +502,6 @@ NON_SVG_BINDING_IDLS = \
     $(WebCore)/testing/TypeConversions.idl \
     $(WebCore)/workers/AbstractWorker.idl \
     $(WebCore)/workers/DedicatedWorkerGlobalScope.idl \
-    $(WebCore)/workers/SharedWorker.idl \
-    $(WebCore)/workers/SharedWorkerGlobalScope.idl \
     $(WebCore)/workers/Worker.idl \
     $(WebCore)/workers/WorkerGlobalScope.idl \
     $(WebCore)/workers/WorkerLocation.idl \
@@ -1115,7 +1113,6 @@ SUPPLEMENTAL_DEPENDENCY_FILE = ./SupplementalDependencies.txt
 SUPPLEMENTAL_MAKEFILE_DEPS = ./SupplementalDependencies.dep
 WINDOW_CONSTRUCTORS_FILE = ./DOMWindowConstructors.idl
 WORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./WorkerGlobalScopeConstructors.idl
-SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./SharedWorkerGlobalScopeConstructors.idl
 DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./DedicatedWorkerGlobalScopeConstructors.idl
 IDL_FILES_TMP = ./idl_files.tmp
 IDL_ATTRIBUTES_FILE = $(WebCore)/bindings/scripts/IDLAttributes.txt
@@ -1127,7 +1124,7 @@ space +=
 
 $(SUPPLEMENTAL_MAKEFILE_DEPS) : $(PREPROCESS_IDLS_SCRIPTS) $(BINDING_IDLS) $(PLATFORM_FEATURE_DEFINES)
        printf "$(subst $(space),,$(patsubst %,%\n,$(BINDING_IDLS)))" > $(IDL_FILES_TMP)
-       $(call preprocess_idls_script, $(PREPROCESS_IDLS_SCRIPTS)) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --idlFilesList $(IDL_FILES_TMP) --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) --windowConstructorsFile $(WINDOW_CONSTRUCTORS_FILE) --workerGlobalScopeConstructorsFile $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) --sharedWorkerGlobalScopeConstructorsFile $(SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE) --dedicatedWorkerGlobalScopeConstructorsFile $(DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE) --supplementalMakefileDeps $@
+       $(call preprocess_idls_script, $(PREPROCESS_IDLS_SCRIPTS)) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --idlFilesList $(IDL_FILES_TMP) --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) --windowConstructorsFile $(WINDOW_CONSTRUCTORS_FILE) --workerGlobalScopeConstructorsFile $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) --dedicatedWorkerGlobalScopeConstructorsFile $(DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE) --supplementalMakefileDeps $@
        rm -f $(IDL_FILES_TMP)
 
 JS%.h : %.idl $(JS_BINDINGS_SCRIPTS) $(IDL_ATTRIBUTES_FILE) $(WINDOW_CONSTRUCTORS_FILE) $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) $(PLATFORM_FEATURE_DEFINES)
index ed95299..6d4ebc8 100644 (file)
@@ -781,7 +781,6 @@ set(ADDITIONAL_BINDINGS_DEPENDENCIES
     ${WEBCORE_DIR}/bindings/gobject/webkitdom.symbols
     ${WINDOW_CONSTRUCTORS_FILE}
     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
-    ${SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
 )
 GENERATE_BINDINGS(GObjectDOMBindings_SOURCES
index 18ba6a3..b6966c0 100644 (file)
@@ -224,7 +224,6 @@ set(FEATURE_DEFINES_OBJECTIVE_C "LANGUAGE_OBJECTIVE_C=1 ${FEATURE_DEFINES_WITH_S
 set(ADDITIONAL_BINDINGS_DEPENDENCIES
     ${WINDOW_CONSTRUCTORS_FILE}
     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
-    ${SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
 )
 GENERATE_BINDINGS(WebCore_SOURCES
index 5490640..a627cfd 100644 (file)
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
     </ClCompile>
-    <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSSharedWorker.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSSharedWorkerGlobalScope.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
-    </ClCompile>
     <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSSQLError.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\replay\UserInputBridge.cpp" />
-    <ClCompile Include="..\workers\SharedWorkerRepository.cpp" />
     <ClCompile Include="..\xml\DOMParser.cpp" />
     <ClCompile Include="..\xml\NativeXPathNSResolver.cpp" />
     <ClCompile Include="..\xml\XMLErrors.cpp" />
     <ClCompile Include="..\workers\AbstractWorker.cpp" />
     <ClCompile Include="..\workers\DedicatedWorkerGlobalScope.cpp" />
     <ClCompile Include="..\workers\DedicatedWorkerThread.cpp" />
-    <ClCompile Include="..\workers\DefaultSharedWorkerRepository.cpp" />
-    <ClCompile Include="..\workers\SharedWorker.cpp" />
-    <ClCompile Include="..\workers\SharedWorkerGlobalScope.cpp" />
-    <ClCompile Include="..\workers\SharedWorkerThread.cpp" />
     <ClCompile Include="..\workers\Worker.cpp" />
     <ClCompile Include="..\workers\WorkerGlobalScope.cpp" />
     <ClCompile Include="..\workers\WorkerEventQueue.cpp" />
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
     </ClCompile>
-    <ClCompile Include="..\bindings\js\JSSharedWorkerCustom.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
-    </ClCompile>
     <ClCompile Include="..\bindings\js\JSSQLResultSetRowListCustom.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSRequestAnimationFrameCallback.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSRGBColor.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSScreen.h" />
-    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSSharedWorker.h" />
-    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSSharedWorkerGlobalScope.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSSQLError.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSSQLResultSet.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSSQLResultSetRowList.h" />
     <ClInclude Include="..\workers\AbstractWorker.h" />
     <ClInclude Include="..\workers\DedicatedWorkerGlobalScope.h" />
     <ClInclude Include="..\workers\DedicatedWorkerThread.h" />
-    <ClInclude Include="..\workers\DefaultSharedWorkerRepository.h" />
-    <ClInclude Include="..\workers\SharedWorker.h" />
-    <ClInclude Include="..\workers\SharedWorkerGlobalScope.h" />
-    <ClInclude Include="..\workers\SharedWorkerRepository.h" />
-    <ClInclude Include="..\workers\SharedWorkerStrategy.h" />
-    <ClInclude Include="..\workers\SharedWorkerThread.h" />
     <ClInclude Include="..\workers\Worker.h" />
     <ClInclude Include="..\workers\WorkerGlobalScope.h" />
     <ClInclude Include="..\workers\WorkerGlobalScopeProxy.h" />
index 2e3f4cb..0210c97 100644 (file)
     <ClCompile Include="..\workers\DedicatedWorkerThread.cpp">
       <Filter>workers</Filter>
     </ClCompile>
-    <ClCompile Include="..\workers\DefaultSharedWorkerRepository.cpp">
-      <Filter>workers</Filter>
-    </ClCompile>
-    <ClCompile Include="..\workers\SharedWorker.cpp">
-      <Filter>workers</Filter>
-    </ClCompile>
-    <ClCompile Include="..\workers\SharedWorkerGlobalScope.cpp">
-      <Filter>workers</Filter>
-    </ClCompile>
-    <ClCompile Include="..\workers\SharedWorkerThread.cpp">
-      <Filter>workers</Filter>
-    </ClCompile>
     <ClCompile Include="..\workers\Worker.cpp">
       <Filter>workers</Filter>
     </ClCompile>
     <ClCompile Include="..\bindings\js\JSRequestAnimationFrameCallbackCustom.cpp">
       <Filter>bindings\js</Filter>
     </ClCompile>
-    <ClCompile Include="..\bindings\js\JSSharedWorkerCustom.cpp">
-      <Filter>bindings\js</Filter>
-    </ClCompile>
     <ClCompile Include="..\bindings\js\JSSQLResultSetRowListCustom.cpp">
       <Filter>bindings\js</Filter>
     </ClCompile>
     <ClCompile Include="..\Modules\quota\StorageErrorCallback.cpp">
       <Filter>Modules\quota</Filter>
     </ClCompile>
-    <ClCompile Include="..\workers\SharedWorkerRepository.cpp">
-      <Filter>workers</Filter>
-    </ClCompile>
     <ClCompile Include="..\platform\graphics\ca\win\PlatformCAFiltersWin.cpp">
       <Filter>platform\graphics\ca\win</Filter>
     </ClCompile>
     <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSScreen.cpp">
       <Filter>DerivedSources</Filter>
     </ClCompile>
-    <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSSharedWorker.cpp">
-      <Filter>DerivedSources</Filter>
-    </ClCompile>
-    <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSSharedWorkerGlobalScope.cpp">
-      <Filter>DerivedSources</Filter>
-    </ClCompile>
     <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSSQLError.cpp">
       <Filter>DerivedSources</Filter>
     </ClCompile>
     <ClInclude Include="..\workers\DedicatedWorkerThread.h">
       <Filter>workers</Filter>
     </ClInclude>
-    <ClInclude Include="..\workers\DefaultSharedWorkerRepository.h">
-      <Filter>workers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\workers\SharedWorker.h">
-      <Filter>workers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\workers\SharedWorkerGlobalScope.h">
-      <Filter>workers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\workers\SharedWorkerRepository.h">
-      <Filter>workers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\workers\SharedWorkerStrategy.h">
-      <Filter>workers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\workers\SharedWorkerThread.h">
-      <Filter>workers</Filter>
-    </ClInclude>
     <ClInclude Include="..\workers\Worker.h">
       <Filter>workers</Filter>
     </ClInclude>
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSScreen.h">
       <Filter>DerivedSources</Filter>
     </ClInclude>
-    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSSharedWorker.h">
-      <Filter>DerivedSources</Filter>
-    </ClInclude>
-    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSSharedWorkerGlobalScope.h">
-      <Filter>DerivedSources</Filter>
-    </ClInclude>
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSSQLError.h">
       <Filter>DerivedSources</Filter>
     </ClInclude>
index c382bd2..ffade7b 100644 (file)
                14993BE50B2F2B1C0050497F /* FocusController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 14993BE30B2F2B1C0050497F /* FocusController.cpp */; };
                14993BE60B2F2B1C0050497F /* FocusController.h in Headers */ = {isa = PBXBuildFile; fileRef = 14993BE40B2F2B1C0050497F /* FocusController.h */; settings = {ATTRIBUTES = (Private, ); }; };
                14C9A5EA0B3D105F005A0232 /* Settings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 14C9A5E90B3D105F005A0232 /* Settings.cpp */; };
-               14CD8D82106B529000A46D23 /* JSSharedWorkerCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 14CD8D81106B529000A46D23 /* JSSharedWorkerCustom.cpp */; };
                14CF78A409F58CBF00EB3665 /* JSCSSValue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 14CF78A309F58CBF00EB3665 /* JSCSSValue.cpp */; };
                14CF78A609F58CD800EB3665 /* JSCSSValue.h in Headers */ = {isa = PBXBuildFile; fileRef = 14CF78A509F58CD800EB3665 /* JSCSSValue.h */; };
                14CF7B3309F6ECD700EB3665 /* JSCSSRule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 14CF7B3109F6ECD700EB3665 /* JSCSSRule.cpp */; };
                4162A454101145E300DFF3ED /* JSDedicatedWorkerGlobalScopeCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4162A453101145E300DFF3ED /* JSDedicatedWorkerGlobalScopeCustom.cpp */; };
                4162A4571011464700DFF3ED /* JSDedicatedWorkerGlobalScope.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4162A4551011464700DFF3ED /* JSDedicatedWorkerGlobalScope.cpp */; };
                4162A4581011464700DFF3ED /* JSDedicatedWorkerGlobalScope.h in Headers */ = {isa = PBXBuildFile; fileRef = 4162A4561011464700DFF3ED /* JSDedicatedWorkerGlobalScope.h */; };
-               4167EBF5102962BA003D252A /* DefaultSharedWorkerRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4167EBF3102962BA003D252A /* DefaultSharedWorkerRepository.cpp */; };
-               4167EBF6102962BA003D252A /* DefaultSharedWorkerRepository.h in Headers */ = {isa = PBXBuildFile; fileRef = 4167EBF4102962BA003D252A /* DefaultSharedWorkerRepository.h */; };
                416E29A6102FA962007FC14E /* WorkerReportingProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 416E29A5102FA962007FC14E /* WorkerReportingProxy.h */; };
                417253AA1354BBBC00360F2A /* MediaControlElements.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 417253A81354BBBC00360F2A /* MediaControlElements.cpp */; };
                417253AB1354BBBC00360F2A /* MediaControlElements.h in Headers */ = {isa = PBXBuildFile; fileRef = 417253A91354BBBC00360F2A /* MediaControlElements.h */; };
                41C760B10EDE03D300C1655F /* ScriptState.h in Headers */ = {isa = PBXBuildFile; fileRef = 41C760B00EDE03D300C1655F /* ScriptState.h */; settings = {ATTRIBUTES = (Private, ); }; };
                41D015CA0F4B5C71004A662F /* ContentType.h in Headers */ = {isa = PBXBuildFile; fileRef = 41D015C80F4B5C71004A662F /* ContentType.h */; };
                41D015CB0F4B5C71004A662F /* ContentType.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 41D015C90F4B5C71004A662F /* ContentType.cpp */; };
-               41D07A7E0FF935CA0095EDCE /* JSSharedWorker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 41D07A7C0FF935CA0095EDCE /* JSSharedWorker.cpp */; };
-               41D07A7F0FF935CA0095EDCE /* JSSharedWorker.h in Headers */ = {isa = PBXBuildFile; fileRef = 41D07A7D0FF935CA0095EDCE /* JSSharedWorker.h */; };
-               41D168E710226E89009BC827 /* SharedWorkerGlobalScope.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 41D168DF10226E89009BC827 /* SharedWorkerGlobalScope.cpp */; };
-               41D168E810226E89009BC827 /* SharedWorkerGlobalScope.h in Headers */ = {isa = PBXBuildFile; fileRef = 41D168E010226E89009BC827 /* SharedWorkerGlobalScope.h */; };
-               41D168EA10226E89009BC827 /* SharedWorkerRepository.h in Headers */ = {isa = PBXBuildFile; fileRef = 41D168E210226E89009BC827 /* SharedWorkerRepository.h */; };
-               41D168ED10226E89009BC827 /* SharedWorkerThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 41D168E510226E89009BC827 /* SharedWorkerThread.cpp */; };
-               41D168EE10226E89009BC827 /* SharedWorkerThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 41D168E610226E89009BC827 /* SharedWorkerThread.h */; };
-               41D1690510238B66009BC827 /* JSSharedWorkerGlobalScope.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 41D1690310238B66009BC827 /* JSSharedWorkerGlobalScope.cpp */; };
-               41D1690610238B66009BC827 /* JSSharedWorkerGlobalScope.h in Headers */ = {isa = PBXBuildFile; fileRef = 41D1690410238B66009BC827 /* JSSharedWorkerGlobalScope.h */; };
                41E1B1D00FF5986900576B3B /* AbstractWorker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 41E1B1CA0FF5986900576B3B /* AbstractWorker.cpp */; };
                41E1B1D10FF5986900576B3B /* AbstractWorker.h in Headers */ = {isa = PBXBuildFile; fileRef = 41E1B1CB0FF5986900576B3B /* AbstractWorker.h */; };
-               41E1B1D30FF5986900576B3B /* SharedWorker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 41E1B1CD0FF5986900576B3B /* SharedWorker.cpp */; };
-               41E1B1D40FF5986900576B3B /* SharedWorker.h in Headers */ = {isa = PBXBuildFile; fileRef = 41E1B1CE0FF5986900576B3B /* SharedWorker.h */; };
                41F062140F5F192600A07EAC /* InspectorDatabaseResource.h in Headers */ = {isa = PBXBuildFile; fileRef = 41F062120F5F192600A07EAC /* InspectorDatabaseResource.h */; };
                41F062150F5F192600A07EAC /* InspectorDatabaseResource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 41F062130F5F192600A07EAC /* InspectorDatabaseResource.cpp */; };
                41F066E40F64BCF600A07EAC /* ScriptGlobalObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 41F066E20F64BCF600A07EAC /* ScriptGlobalObject.h */; settings = {ATTRIBUTES = (Private, ); }; };
                E1B4CD2510B322E200BFFD7E /* CredentialStorageMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = E1B4CD2410B322E200BFFD7E /* CredentialStorageMac.mm */; };
                E1B533471717D0A100F205F9 /* CachedSVGDocumentReference.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1B533461717D0A000F205F9 /* CachedSVGDocumentReference.cpp */; };
                E1B533491717DEE300F205F9 /* CachedRawResourceClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E1B533481717DEE300F205F9 /* CachedRawResourceClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               E1B7839C163740A70007B692 /* SharedWorkerStrategy.h in Headers */ = {isa = PBXBuildFile; fileRef = E1B7839B163740A70007B692 /* SharedWorkerStrategy.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               E1B784201639CBBE0007B692 /* SharedWorkerRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1B7841F1639CBBE0007B692 /* SharedWorkerRepository.cpp */; };
                E1BA003116FB92AC00BA7A35 /* ResourceHandleClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1BA003016FB92AC00BA7A35 /* ResourceHandleClient.cpp */; };
                E1BA66F11742BD8600C20251 /* DynamicLinkerInterposing.h in Headers */ = {isa = PBXBuildFile; fileRef = E1BA66F01742BD8600C20251 /* DynamicLinkerInterposing.h */; settings = {ATTRIBUTES = (Private, ); }; };
                E1BA671A1742BEF400C20251 /* WebCoreTestShimLibrary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1BA67191742BEF400C20251 /* WebCoreTestShimLibrary.cpp */; };
                14A98E05136386A200C9FED2 /* Blob.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Blob.idl; path = fileapi/Blob.idl; sourceTree = SOURCE_ROOT; };
                14BDF59A1365399100148393 /* FileReader.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = FileReader.idl; path = fileapi/FileReader.idl; sourceTree = SOURCE_ROOT; };
                14C9A5E90B3D105F005A0232 /* Settings.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Settings.cpp; sourceTree = "<group>"; };
-               14CD8D81106B529000A46D23 /* JSSharedWorkerCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSharedWorkerCustom.cpp; sourceTree = "<group>"; };
                14CF787109F587CA00EB3665 /* CSSValue.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = CSSValue.idl; sourceTree = "<group>"; };
                14CF78A309F58CBF00EB3665 /* JSCSSValue.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSCSSValue.cpp; sourceTree = "<group>"; };
                14CF78A509F58CD800EB3665 /* JSCSSValue.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSCSSValue.h; sourceTree = "<group>"; };
                4162A453101145E300DFF3ED /* JSDedicatedWorkerGlobalScopeCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDedicatedWorkerGlobalScopeCustom.cpp; sourceTree = "<group>"; };
                4162A4551011464700DFF3ED /* JSDedicatedWorkerGlobalScope.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDedicatedWorkerGlobalScope.cpp; sourceTree = "<group>"; };
                4162A4561011464700DFF3ED /* JSDedicatedWorkerGlobalScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDedicatedWorkerGlobalScope.h; sourceTree = "<group>"; };
-               4167EBF3102962BA003D252A /* DefaultSharedWorkerRepository.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DefaultSharedWorkerRepository.cpp; path = workers/DefaultSharedWorkerRepository.cpp; sourceTree = "<group>"; };
-               4167EBF4102962BA003D252A /* DefaultSharedWorkerRepository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DefaultSharedWorkerRepository.h; path = workers/DefaultSharedWorkerRepository.h; sourceTree = "<group>"; };
                416E29A5102FA962007FC14E /* WorkerReportingProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WorkerReportingProxy.h; path = workers/WorkerReportingProxy.h; sourceTree = "<group>"; };
                417253A81354BBBC00360F2A /* MediaControlElements.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaControlElements.cpp; sourceTree = "<group>"; };
                417253A91354BBBC00360F2A /* MediaControlElements.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaControlElements.h; sourceTree = "<group>"; };
                41C760B00EDE03D300C1655F /* ScriptState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptState.h; sourceTree = "<group>"; };
                41D015C80F4B5C71004A662F /* ContentType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContentType.h; sourceTree = "<group>"; };
                41D015C90F4B5C71004A662F /* ContentType.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ContentType.cpp; sourceTree = "<group>"; };
-               41D07A7C0FF935CA0095EDCE /* JSSharedWorker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSharedWorker.cpp; sourceTree = "<group>"; };
-               41D07A7D0FF935CA0095EDCE /* JSSharedWorker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSharedWorker.h; sourceTree = "<group>"; };
-               41D168DF10226E89009BC827 /* SharedWorkerGlobalScope.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SharedWorkerGlobalScope.cpp; path = workers/SharedWorkerGlobalScope.cpp; sourceTree = "<group>"; };
-               41D168E010226E89009BC827 /* SharedWorkerGlobalScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SharedWorkerGlobalScope.h; path = workers/SharedWorkerGlobalScope.h; sourceTree = "<group>"; };
-               41D168E110226E89009BC827 /* SharedWorkerGlobalScope.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = SharedWorkerGlobalScope.idl; path = workers/SharedWorkerGlobalScope.idl; sourceTree = "<group>"; };
-               41D168E210226E89009BC827 /* SharedWorkerRepository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SharedWorkerRepository.h; path = workers/SharedWorkerRepository.h; sourceTree = "<group>"; };
-               41D168E510226E89009BC827 /* SharedWorkerThread.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SharedWorkerThread.cpp; path = workers/SharedWorkerThread.cpp; sourceTree = "<group>"; };
-               41D168E610226E89009BC827 /* SharedWorkerThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SharedWorkerThread.h; path = workers/SharedWorkerThread.h; sourceTree = "<group>"; };
-               41D1690310238B66009BC827 /* JSSharedWorkerGlobalScope.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSharedWorkerGlobalScope.cpp; sourceTree = "<group>"; };
-               41D1690410238B66009BC827 /* JSSharedWorkerGlobalScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSharedWorkerGlobalScope.h; sourceTree = "<group>"; };
                41E1B1CA0FF5986900576B3B /* AbstractWorker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AbstractWorker.cpp; path = workers/AbstractWorker.cpp; sourceTree = "<group>"; };
                41E1B1CB0FF5986900576B3B /* AbstractWorker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AbstractWorker.h; path = workers/AbstractWorker.h; sourceTree = "<group>"; };
                41E1B1CC0FF5986900576B3B /* AbstractWorker.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = AbstractWorker.idl; path = workers/AbstractWorker.idl; sourceTree = "<group>"; };
-               41E1B1CD0FF5986900576B3B /* SharedWorker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SharedWorker.cpp; path = workers/SharedWorker.cpp; sourceTree = "<group>"; };
-               41E1B1CE0FF5986900576B3B /* SharedWorker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SharedWorker.h; path = workers/SharedWorker.h; sourceTree = "<group>"; };
-               41E1B1CF0FF5986900576B3B /* SharedWorker.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = SharedWorker.idl; path = workers/SharedWorker.idl; sourceTree = "<group>"; };
                41F062120F5F192600A07EAC /* InspectorDatabaseResource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorDatabaseResource.h; sourceTree = "<group>"; };
                41F062130F5F192600A07EAC /* InspectorDatabaseResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorDatabaseResource.cpp; sourceTree = "<group>"; };
                41F066E20F64BCF600A07EAC /* ScriptGlobalObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptGlobalObject.h; sourceTree = "<group>"; };
                E1B4CD2410B322E200BFFD7E /* CredentialStorageMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CredentialStorageMac.mm; sourceTree = "<group>"; };
                E1B533461717D0A000F205F9 /* CachedSVGDocumentReference.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CachedSVGDocumentReference.cpp; sourceTree = "<group>"; };
                E1B533481717DEE300F205F9 /* CachedRawResourceClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CachedRawResourceClient.h; sourceTree = "<group>"; };
-               E1B7839B163740A70007B692 /* SharedWorkerStrategy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SharedWorkerStrategy.h; path = workers/SharedWorkerStrategy.h; sourceTree = "<group>"; };
-               E1B7841F1639CBBE0007B692 /* SharedWorkerRepository.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SharedWorkerRepository.cpp; path = workers/SharedWorkerRepository.cpp; sourceTree = "<group>"; };
                E1BA003016FB92AC00BA7A35 /* ResourceHandleClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ResourceHandleClient.cpp; sourceTree = "<group>"; };
                E1BA66F01742BD8600C20251 /* DynamicLinkerInterposing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DynamicLinkerInterposing.h; sourceTree = "<group>"; };
                E1BA66F21742BDCC00C20251 /* WebCoreTestShim.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = WebCoreTestShim.xcconfig; sourceTree = "<group>"; };
                                4162A44F101145AE00DFF3ED /* DedicatedWorkerGlobalScope.idl */,
                                41A3D58C101C152D00316D07 /* DedicatedWorkerThread.cpp */,
                                41A3D58D101C152D00316D07 /* DedicatedWorkerThread.h */,
-                               4167EBF3102962BA003D252A /* DefaultSharedWorkerRepository.cpp */,
-                               4167EBF4102962BA003D252A /* DefaultSharedWorkerRepository.h */,
-                               41E1B1CD0FF5986900576B3B /* SharedWorker.cpp */,
-                               41E1B1CE0FF5986900576B3B /* SharedWorker.h */,
-                               41E1B1CF0FF5986900576B3B /* SharedWorker.idl */,
-                               41D168DF10226E89009BC827 /* SharedWorkerGlobalScope.cpp */,
-                               41D168E010226E89009BC827 /* SharedWorkerGlobalScope.h */,
-                               41D168E110226E89009BC827 /* SharedWorkerGlobalScope.idl */,
-                               E1B7841F1639CBBE0007B692 /* SharedWorkerRepository.cpp */,
-                               41D168E210226E89009BC827 /* SharedWorkerRepository.h */,
-                               E1B7839B163740A70007B692 /* SharedWorkerStrategy.h */,
-                               41D168E510226E89009BC827 /* SharedWorkerThread.cpp */,
-                               41D168E610226E89009BC827 /* SharedWorkerThread.h */,
                                2E4346330F546A8200B0F1BA /* Worker.cpp */,
                                2E4346340F546A8200B0F1BA /* Worker.h */,
                                2E4346350F546A8200B0F1BA /* Worker.idl */,
                                C6F420A116B7164E0052A9F2 /* JSMutationCallback.h */,
                                93B70D4F09EB0C7C009D8468 /* JSPluginElementFunctions.cpp */,
                                93B70D5009EB0C7C009D8468 /* JSPluginElementFunctions.h */,
-                               14CD8D81106B529000A46D23 /* JSSharedWorkerCustom.cpp */,
                                E1C36D320EB0A094007410BC /* JSWorkerGlobalScopeBase.cpp */,
                                E1C36D330EB0A094007410BC /* JSWorkerGlobalScopeBase.h */,
                                BCA378BA0D15F64200B793D6 /* ScheduledAction.cpp */,
                                418F88030FF957AE0080F045 /* JSAbstractWorker.h */,
                                4162A4551011464700DFF3ED /* JSDedicatedWorkerGlobalScope.cpp */,
                                4162A4561011464700DFF3ED /* JSDedicatedWorkerGlobalScope.h */,
-                               41D07A7C0FF935CA0095EDCE /* JSSharedWorker.cpp */,
-                               41D07A7D0FF935CA0095EDCE /* JSSharedWorker.h */,
-                               41D1690310238B66009BC827 /* JSSharedWorkerGlobalScope.cpp */,
-                               41D1690410238B66009BC827 /* JSSharedWorkerGlobalScope.h */,
                                E1C8BE5C0E8BD15A0064CB7D /* JSWorker.cpp */,
                                E1CAA5C50E8BD23600A73ECA /* JSWorker.h */,
                                E182568D0EF2B02D00933242 /* JSWorkerGlobalScope.cpp */,
                                4162A451101145AE00DFF3ED /* DedicatedWorkerGlobalScope.h in Headers */,
                                41A3D58F101C152D00316D07 /* DedicatedWorkerThread.h in Headers */,
                                FD06DFA6134A4DEF006F5D7D /* DefaultAudioDestinationNode.h in Headers */,
-                               4167EBF6102962BA003D252A /* DefaultSharedWorkerRepository.h in Headers */,
                                FD31602C12B0267600C1A359 /* DelayDSPKernel.h in Headers */,
                                FD31602E12B0267600C1A359 /* DelayNode.h in Headers */,
                                FD31603112B0267600C1A359 /* DelayProcessor.h in Headers */,
                                FDA15ECE12B03F61003A583A /* JSScriptProcessorNode.h in Headers */,
                                9FA37EFB1172FDA600C4CD55 /* JSScriptProfile.h in Headers */,
                                9FA37EFD1172FDA600C4CD55 /* JSScriptProfileNode.h in Headers */,
-                               41D07A7F0FF935CA0095EDCE /* JSSharedWorker.h in Headers */,
-                               41D1690610238B66009BC827 /* JSSharedWorkerGlobalScope.h in Headers */,
                                CD9DE17B17AAC75B00EA386D /* JSSourceBuffer.h in Headers */,
                                CD9DE17D17AAC75B00EA386D /* JSSourceBufferList.h in Headers */,
                                076306E117E16089005A7C4E /* JSSourceInfo.h in Headers */,
                                1A4A954E0B4EDCCB002D8C3C /* SharedBuffer.h in Headers */,
                                97B1F02F13B025D200F5103F /* SharedBufferChunkReader.h in Headers */,
                                93309EA3099EB78C0056E581 /* SharedTimer.h in Headers */,
-                               41E1B1D40FF5986900576B3B /* SharedWorker.h in Headers */,
-                               41D168E810226E89009BC827 /* SharedWorkerGlobalScope.h in Headers */,
-                               41D168EA10226E89009BC827 /* SharedWorkerRepository.h in Headers */,
-                               E1B7839C163740A70007B692 /* SharedWorkerStrategy.h in Headers */,
-                               41D168EE10226E89009BC827 /* SharedWorkerThread.h in Headers */,
                                B2C3DA650D006CD600EF6F26 /* SimpleFontData.h in Headers */,
                                E48944A3180B57D800F165D8 /* SimpleLineLayout.h in Headers */,
                                E4E9B11D1814569C003ACCDF /* SimpleLineLayoutFunctions.h in Headers */,
                                4162A450101145AE00DFF3ED /* DedicatedWorkerGlobalScope.cpp in Sources */,
                                41A3D58E101C152D00316D07 /* DedicatedWorkerThread.cpp in Sources */,
                                FD06DFA5134A4DEF006F5D7D /* DefaultAudioDestinationNode.cpp in Sources */,
-                               4167EBF5102962BA003D252A /* DefaultSharedWorkerRepository.cpp in Sources */,
                                FD31602B12B0267600C1A359 /* DelayDSPKernel.cpp in Sources */,
                                FD31602D12B0267600C1A359 /* DelayNode.cpp in Sources */,
                                FD31603012B0267600C1A359 /* DelayProcessor.cpp in Sources */,
                                FDA15ECD12B03F61003A583A /* JSScriptProcessorNode.cpp in Sources */,
                                9FA37EFA1172FDA600C4CD55 /* JSScriptProfile.cpp in Sources */,
                                9FA37EFC1172FDA600C4CD55 /* JSScriptProfileNode.cpp in Sources */,
-                               41D07A7E0FF935CA0095EDCE /* JSSharedWorker.cpp in Sources */,
-                               14CD8D82106B529000A46D23 /* JSSharedWorkerCustom.cpp in Sources */,
-                               41D1690510238B66009BC827 /* JSSharedWorkerGlobalScope.cpp in Sources */,
                                CD9DE17A17AAC75B00EA386D /* JSSourceBuffer.cpp in Sources */,
                                CD9DE17C17AAC75B00EA386D /* JSSourceBufferList.cpp in Sources */,
                                076306E017E16089005A7C4E /* JSSourceInfo.cpp in Sources */,
                                1A4A95520B4EDCFF002D8C3C /* SharedBufferMac.mm in Sources */,
                                E45390460EAFD637003695C8 /* SharedTimerIOS.mm in Sources */,
                                93309EA2099EB78C0056E581 /* SharedTimerMac.mm in Sources */,
-                               41E1B1D30FF5986900576B3B /* SharedWorker.cpp in Sources */,
-                               41D168E710226E89009BC827 /* SharedWorkerGlobalScope.cpp in Sources */,
-                               E1B784201639CBBE0007B692 /* SharedWorkerRepository.cpp in Sources */,
-                               41D168ED10226E89009BC827 /* SharedWorkerThread.cpp in Sources */,
                                B2C3DA640D006CD600EF6F26 /* SimpleFontData.cpp in Sources */,
                                163E88F7118A39D200ED9231 /* SimpleFontDataCoreText.cpp in Sources */,
                                37E65950163B10C200EB4574 /* SimpleFontDataIOS.mm in Sources */,
index 5d4c8e3..655e84a 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "DatabaseManager.h"
 #include "MediaPlayer.h"
-#include "SharedWorkerRepository.h"
 #include "WebSocket.h"
 #include <wtf/NeverDestroyed.h>
 
@@ -159,13 +158,6 @@ bool RuntimeEnabledFeatures::timeRangesEnabled() const
 }
 #endif
 
-#if ENABLE(SHARED_WORKERS)
-bool RuntimeEnabledFeatures::sharedWorkerEnabled() const
-{
-    return SharedWorkerRepository::isAvailable();
-}
-#endif
-
 #if ENABLE(WEB_SOCKETS)
 bool RuntimeEnabledFeatures::webSocketEnabled() const
 {
index e97e116..1228bc7 100644 (file)
@@ -104,10 +104,6 @@ public:
     bool timeRangesEnabled() const;
 #endif
 
-#if ENABLE(SHARED_WORKERS)
-    bool sharedWorkerEnabled() const;
-#endif
-
 #if ENABLE(WEB_SOCKETS)
     bool webSocketEnabled() const;
 #endif
index 70e82a8..f7d7b6b 100644 (file)
 #include "JSSVGElementInstanceCustom.cpp"
 #include "JSSVGLengthCustom.cpp"
 #include "JSSVGPathSegCustom.cpp"
-#include "JSSharedWorkerCustom.cpp"
 #include "JSStorageCustom.cpp"
 #include "JSStyleSheetCustom.cpp"
 #include "JSStyleSheetListCustom.cpp"
index 2a13206..25c1593 100644 (file)
 #include "Location.h"
 #include "ScheduledAction.h"
 #include "Settings.h"
-#include "SharedWorkerRepository.h"
-
-#if ENABLE(SHARED_WORKERS)
-#include "JSSharedWorker.h"
-#endif
 
 #if ENABLE(IOS_TOUCH_EVENTS)
 #include "JSTouchConstructorIOS.h"
diff --git a/Source/WebCore/bindings/js/JSSharedWorkerCustom.cpp b/Source/WebCore/bindings/js/JSSharedWorkerCustom.cpp
deleted file mode 100644 (file)
index 6761eb4..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-
-#if ENABLE(SHARED_WORKERS)
-
-#include "JSSharedWorker.h"
-
-#include "Document.h"
-#include "JSDOMGlobalObject.h"
-#include "JSDOMWindowCustom.h"
-#include "SharedWorker.h"
-#include <runtime/Error.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-void JSSharedWorker::visitAdditionalChildren(SlotVisitor& visitor)
-{
-    if (MessagePort* port = impl().port())
-        visitor.addOpaqueRoot(port);
-}
-
-EncodedJSValue JSC_HOST_CALL constructJSSharedWorker(ExecState* exec)
-{
-    DOMConstructorObject* jsConstructor = jsCast<DOMConstructorObject*>(exec->callee());
-
-    if (exec->argumentCount() < 1)
-        return throwVMError(exec, createNotEnoughArgumentsError(exec));
-
-    String scriptURL = exec->uncheckedArgument(0).toString(exec)->value(exec);
-    String name;
-    if (exec->argumentCount() > 1)
-        name = exec->uncheckedArgument(1).toString(exec)->value(exec);
-
-    if (exec->hadException())
-        return JSValue::encode(JSValue());
-
-    // FIXME: We need to use both the dynamic scope and the lexical scope (dynamic scope for resolving the worker URL)
-    DOMWindow& window = asJSDOMWindow(exec->lexicalGlobalObject())->impl();
-    ExceptionCode ec = 0;
-    ASSERT(window.document());
-    RefPtr<SharedWorker> worker = SharedWorker::create(*window.document(), scriptURL, name, ec);
-    if (ec) {
-        setDOMException(exec, ec);
-        return JSValue::encode(JSValue());
-    }
-
-    return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), worker.release())));
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(SHARED_WORKERS)
index a34d269..ec085cc 100644 (file)
 #include <runtime/JSCJSValueInlines.h>
 #include <runtime/Microtask.h>
 
-#if ENABLE(SHARED_WORKERS)
-#include "JSSharedWorkerGlobalScope.h"
-#endif
-
 using namespace JSC;
 
 namespace WebCore {
@@ -136,28 +132,10 @@ JSDedicatedWorkerGlobalScope* toJSDedicatedWorkerGlobalScope(JSValue value)
     return 0;
 }
 
-#if ENABLE(SHARED_WORKERS)
-JSSharedWorkerGlobalScope* toJSSharedWorkerGlobalScope(JSValue value)
-{
-    if (!value.isObject())
-        return 0;
-    const ClassInfo* classInfo = asObject(value)->classInfo();
-    if (classInfo == JSSharedWorkerGlobalScope::info())
-        return jsCast<JSSharedWorkerGlobalScope*>(asObject(value));
-    if (classInfo == JSProxy::info())
-        return jsDynamicCast<JSSharedWorkerGlobalScope*>(jsCast<JSProxy*>(asObject(value))->target());
-    return 0;
-}
-#endif
 
 JSWorkerGlobalScope* toJSWorkerGlobalScope(JSValue value)
 {
-    JSWorkerGlobalScope* context = toJSDedicatedWorkerGlobalScope(value);
-#if ENABLE(SHARED_WORKERS)
-    if (!context)
-        context = toJSSharedWorkerGlobalScope(value);
-#endif
-    return context;
+    return toJSDedicatedWorkerGlobalScope(value);
 }
 
 } // namespace WebCore
index 2038601..cd04a1d 100644 (file)
@@ -32,7 +32,6 @@
 namespace WebCore {
 
     class JSDedicatedWorkerGlobalScope;
-    class JSSharedWorkerGlobalScope;
     class JSWorkerGlobalScope;
     class WorkerGlobalScope;
 
@@ -77,10 +76,6 @@ namespace WebCore {
     JSDedicatedWorkerGlobalScope* toJSDedicatedWorkerGlobalScope(JSC::JSValue);
     JSWorkerGlobalScope* toJSWorkerGlobalScope(JSC::JSValue);
 
-#if ENABLE(SHARED_WORKERS)
-    JSSharedWorkerGlobalScope* toJSSharedWorkerGlobalScope(JSC::JSValue);
-#endif
-
 } // namespace WebCore
 
 #endif // JSWorkerGlobalScopeBase_h
index 9063a3a..070df45 100644 (file)
 #include <runtime/Error.h>
 #include <runtime/JSLock.h>
 
-#if ENABLE(SHARED_WORKERS)
-#include "JSSharedWorkerGlobalScope.h"
-#endif
-
 using namespace JSC;
 
 namespace WebCore {
@@ -92,17 +88,6 @@ void WorkerScriptController::initScript()
         ASSERT(m_workerGlobalScopeWrapper->structure()->globalObject() == m_workerGlobalScopeWrapper);
         workerGlobalScopePrototype->structure()->setGlobalObject(*m_vm, m_workerGlobalScopeWrapper.get());
         dedicatedContextPrototype->structure()->setGlobalObject(*m_vm, m_workerGlobalScopeWrapper.get());
-#if ENABLE(SHARED_WORKERS)
-    } else {
-        ASSERT(m_workerGlobalScope->isSharedWorkerGlobalScope());
-        Structure* sharedContextPrototypeStructure = JSSharedWorkerGlobalScopePrototype::createStructure(*m_vm, 0, workerGlobalScopePrototype.get());
-        Strong<JSSharedWorkerGlobalScopePrototype> sharedContextPrototype(*m_vm, JSSharedWorkerGlobalScopePrototype::create(*m_vm, 0, sharedContextPrototypeStructure));
-        Structure* structure = JSSharedWorkerGlobalScope::createStructure(*m_vm, 0, sharedContextPrototype.get());
-
-        m_workerGlobalScopeWrapper.set(*m_vm, JSSharedWorkerGlobalScope::create(*m_vm, structure, static_cast<SharedWorkerGlobalScope*>(m_workerGlobalScope)));
-        workerGlobalScopePrototype->structure()->setGlobalObject(*m_vm, m_workerGlobalScopeWrapper.get());
-        sharedContextPrototype->structure()->setGlobalObject(*m_vm, m_workerGlobalScopeWrapper.get());
-#endif
     }
     ASSERT(m_workerGlobalScopeWrapper->globalObject() == m_workerGlobalScopeWrapper);
     ASSERT(asObject(m_workerGlobalScopeWrapper->prototype())->globalObject() == m_workerGlobalScopeWrapper);
index aa047a5..5632d31 100644 (file)
@@ -62,7 +62,7 @@ EventTarget
 ForwardDeclareInHeader
 GenerateIsReachable=|Impl|ImplWebGLRenderingContext|ImplDocument|ImplElementRoot|ImplFrame|ImplOwnerNodeRoot
 GetterRaisesException
-GlobalContext=DOMWindow|WorkerGlobalScope|SharedWorkerGlobalScope|DedicatedWorkerGlobalScope
+GlobalContext=DOMWindow|WorkerGlobalScope|DedicatedWorkerGlobalScope
 Immutable
 ImplementationLacksVTable
 ImplementationNamespace=*
index d65df33..5fa8c1d 100644 (file)
@@ -30,7 +30,6 @@ my $idlFilesList;
 my $supplementalDependencyFile;
 my $windowConstructorsFile;
 my $workerGlobalScopeConstructorsFile;
-my $sharedWorkerGlobalScopeConstructorsFile;
 my $dedicatedWorkerGlobalScopeConstructorsFile;
 my $supplementalMakefileDeps;
 
@@ -40,7 +39,6 @@ GetOptions('defines=s' => \$defines,
            'supplementalDependencyFile=s' => \$supplementalDependencyFile,
            'windowConstructorsFile=s' => \$windowConstructorsFile,
            'workerGlobalScopeConstructorsFile=s' => \$workerGlobalScopeConstructorsFile,
-           'sharedWorkerGlobalScopeConstructorsFile=s' => \$sharedWorkerGlobalScopeConstructorsFile,
            'dedicatedWorkerGlobalScopeConstructorsFile=s' => \$dedicatedWorkerGlobalScopeConstructorsFile,
            'supplementalMakefileDeps=s' => \$supplementalMakefileDeps);
 
@@ -48,7 +46,6 @@ die('Must specify #define macros using --defines.') unless defined($defines);
 die('Must specify an output file using --supplementalDependencyFile.') unless defined($supplementalDependencyFile);
 die('Must specify an output file using --windowConstructorsFile.') unless defined($windowConstructorsFile);
 die('Must specify an output file using --workerGlobalScopeConstructorsFile.') unless defined($workerGlobalScopeConstructorsFile);
-die('Must specify an output file using --sharedWorkerGlobalScopeConstructorsFile.') unless defined($sharedWorkerGlobalScopeConstructorsFile);
 die('Must specify an output file using --dedicatedWorkerGlobalScopeConstructorsFile.') unless defined($dedicatedWorkerGlobalScopeConstructorsFile);
 die('Must specify the file listing all IDLs using --idlFilesList.') unless defined($idlFilesList);
 
@@ -63,7 +60,6 @@ my %supplementalDependencies;
 my %supplementals;
 my $windowConstructorsCode = "";
 my $workerGlobalScopeConstructorsCode = "";
-my $sharedWorkerGlobalScopeConstructorsCode = "";
 my $dedicatedWorkerGlobalScopeConstructorsCode = "";
 
 # Get rid of duplicates in idlFiles array.
@@ -107,7 +103,6 @@ foreach my $idlFile (sort keys %idlFileHash) {
             my $attributeCode = GenerateConstructorAttribute($interfaceName, $extendedAttributes);
             $windowConstructorsCode .= $attributeCode if grep(/^DOMWindow$/, @globalContexts);
             $workerGlobalScopeConstructorsCode .= $attributeCode if grep(/^WorkerGlobalScope$/, @globalContexts);
-            $sharedWorkerGlobalScopeConstructorsCode .= $attributeCode if grep(/^SharedWorkerGlobalScope$/, @globalContexts);
             $dedicatedWorkerGlobalScopeConstructorsCode .= $attributeCode if grep(/^DedicatedWorkerGlobalScope$/, @globalContexts);
         }
     }
@@ -117,7 +112,6 @@ foreach my $idlFile (sort keys %idlFileHash) {
 # Generate partial interfaces for Constructors.
 GeneratePartialInterface("DOMWindow", $windowConstructorsCode, $windowConstructorsFile);
 GeneratePartialInterface("WorkerGlobalScope", $workerGlobalScopeConstructorsCode, $workerGlobalScopeConstructorsFile);
-GeneratePartialInterface("SharedWorkerGlobalScope", $sharedWorkerGlobalScopeConstructorsCode, $sharedWorkerGlobalScopeConstructorsFile);
 GeneratePartialInterface("DedicatedWorkerGlobalScope", $dedicatedWorkerGlobalScopeConstructorsCode, $dedicatedWorkerGlobalScopeConstructorsFile);
 
 # Resolves partial interfaces and implements dependencies.
index 2553e7a..865c191 100644 (file)
 #include <wtf/text/StringBuffer.h>
 #include <yarr/RegularExpression.h>
 
-#if ENABLE(SHARED_WORKERS)
-#include "SharedWorkerRepository.h"
-#endif
-
 #if ENABLE(XSLT)
 #include "XSLTProcessor.h"
 #endif
@@ -2111,10 +2107,6 @@ void Document::prepareForDestruction()
 
     commonTeardown();
 
-#if ENABLE(SHARED_WORKERS)
-    SharedWorkerRepository::documentDetached(this);
-#endif
-
 #if ENABLE(TOUCH_EVENTS)
     if (m_touchEventTargets && m_touchEventTargets->size() && parentDocument())
         parentDocument()->didRemoveEventTargetNode(this);
index 23b7495..2a4042d 100644 (file)
@@ -67,8 +67,6 @@ namespace WebCore {
     class Notification;
     class SVGElementInstance;
     class ScriptExecutionContext;
-    class SharedWorker;
-    class SharedWorkerGlobalScope;
     class TextTrack;
     class TextTrackCue;
     class VideoTrackList;
index 5ae1eb6..48e0a81 100644 (file)
@@ -26,8 +26,6 @@ Performance conditional=WEB_TIMING
 RTCDataChannel conditional=MEDIA_STREAM
 RTCDTMFSender conditional=MEDIA_STREAM
 RTCPeerConnection conditional=MEDIA_STREAM
-SharedWorker conditional=SHARED_WORKERS
-SharedWorkerGlobalScope conditional=SHARED_WORKERS
 SourceBuffer conditional=MEDIA_SOURCE
 SourceBufferList conditional=MEDIA_SOURCE
 SpeechSynthesisUtterance conditional=SPEECH_SYNTHESIS
index 05f387f..5a4c308 100644 (file)
@@ -48,7 +48,6 @@
 #include "MemoryPressureHandler.h"
 #include "Page.h"
 #include "Settings.h"
-#include "SharedWorkerRepository.h"
 #include "SubframeLoader.h"
 #include <wtf/CurrentTime.h>
 #include <wtf/TemporaryChange.h>
@@ -84,7 +83,7 @@ enum ReasonFrameCannotBeInPageCache {
     HasPlugins,
     IsHttpsAndCacheControlled,
     HasDatabaseHandles,
-    HasSharedWorkers,
+    HasSharedWorkers, // FIXME: Remove.
     NoHistoryItem,
     QuickRedirectComing,
     IsLoadingInAPISense,
@@ -147,13 +146,6 @@ static unsigned logCanCacheFrameDecision(Frame* frame, int indentLevel)
         rejectReasons |= 1 << HasDatabaseHandles;
     }
 #endif
-#if ENABLE(SHARED_WORKERS)
-    if (SharedWorkerRepository::hasSharedWorkers(frame->document())) {
-        PCLOG("   -Frame has associated SharedWorkers");
-        FEATURE_COUNTER_INCREMENT_KEY(frame->page(), FeatureCounterPageCacheFailureHasSharedWorkersKey);
-        rejectReasons |= 1 << HasSharedWorkers;
-    }
-#endif
     if (!frame->loader().history().currentItem()) {
         PCLOG("   -No current history item");
         FEATURE_COUNTER_INCREMENT_KEY(frame->page(), FeatureCounterPageCacheFailureNoCurrentHistoryItemKey);
@@ -325,9 +317,6 @@ bool PageCache::canCachePageContainingThisFrame(Frame* frame)
 #if ENABLE(SQL_DATABASE)
         && !DatabaseManager::manager().hasOpenDatabases(document)
 #endif
-#if ENABLE(SHARED_WORKERS)
-        && !SharedWorkerRepository::hasSharedWorkers(document)
-#endif
         && frameLoader.history().currentItem()
         && !frameLoader.quickRedirectComing()
         && !documentLoader->isLoadingInAPISense()
index d8aa5b6..4be71ec 100644 (file)
 #include <wtf/text/CString.h>
 #include <wtf/text/WTFString.h>
 
-#if ENABLE(SHARED_WORKERS)
-#include "SharedWorkerRepository.h"
-#endif
-
 #if ENABLE(WEB_ARCHIVE) || ENABLE(MHTML)
 #include "Archive.h"
 #endif
index f45b79b..3ddef9f 100644 (file)
@@ -153,7 +153,6 @@ public:
     bool canAccessDatabase(const SecurityOrigin* topOrigin = 0) const { return canAccessStorage(topOrigin); };
     bool canAccessSessionStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin, AlwaysAllowFromThirdParty); }
     bool canAccessLocalStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); };
-    bool canAccessSharedWorkers(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); }
     bool canAccessPluginStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); }
     bool canAccessApplicationCache(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); }
     bool canAccessCookies() const { return !isUnique(); }
index 507d043..88839fa 100644 (file)
@@ -37,9 +37,6 @@ static const char FeatureCounterPageCacheFailureHTTPSNoStoreKey[] = "com.apple.W
 #if ENABLE(SQL_DATABASE)
 static const char FeatureCounterPageCacheFailureHasOpenDatabasesKey[] = "com.apple.WebKit.pageCache.failure.hasOpenDatabases";
 #endif
-#if ENABLE(SHARED_WORKERS)
-static const char FeatureCounterPageCacheFailureHasSharedWorkersKey[] = "com.apple.WebKit.pageCache.failure.hasSharedWorkers";
-#endif
 static const char FeatureCounterPageCacheFailureNoCurrentHistoryItemKey[] = "com.apple.WebKit.pageCache.failure.noCurrentHistoryItem";
 static const char FeatureCounterPageCacheFailureQuirkRedirectComingKey[] = "com.apple.WebKit.pageCache.failure.quirkRedirectComing";
 static const char FeatureCounterPageCacheFailureLoadingAPISenseKey[] = "com.apple.WebKit.pageCache.failure.loadingAPISense";
index 7e3c2ea..740bcfd 100644 (file)
@@ -32,7 +32,6 @@ class CookiesStrategy;
 class LoaderStrategy;
 class PasteboardStrategy;
 class PluginStrategy;
-class SharedWorkerStrategy;
 
 class PlatformStrategies {
 public:
@@ -64,20 +63,12 @@ public:
         return m_pluginStrategy;
     }
 
-    SharedWorkerStrategy* sharedWorkerStrategy()
-    {
-        if (!m_sharedWorkerStrategy)
-            m_sharedWorkerStrategy = createSharedWorkerStrategy();
-        return m_sharedWorkerStrategy;
-    }
-
 protected:
     PlatformStrategies()
         : m_cookiesStrategy(nullptr)
         , m_loaderStrategy(nullptr)
         , m_pasteboardStrategy(nullptr)
         , m_pluginStrategy(nullptr)
-        , m_sharedWorkerStrategy(nullptr)
     {
     }
 
@@ -90,13 +81,11 @@ private:
     virtual LoaderStrategy* createLoaderStrategy() = 0;
     virtual PasteboardStrategy* createPasteboardStrategy() = 0;
     virtual PluginStrategy* createPluginStrategy() = 0;
-    virtual SharedWorkerStrategy* createSharedWorkerStrategy() = 0;
 
     CookiesStrategy* m_cookiesStrategy;
     LoaderStrategy* m_loaderStrategy;
     PasteboardStrategy* m_pasteboardStrategy;
     PluginStrategy* m_pluginStrategy;
-    SharedWorkerStrategy* m_sharedWorkerStrategy;
 };
 
 PlatformStrategies* platformStrategies();
diff --git a/Source/WebCore/workers/DefaultSharedWorkerRepository.cpp b/Source/WebCore/workers/DefaultSharedWorkerRepository.cpp
deleted file mode 100644 (file)
index 2f149b9..0000000
+++ /dev/null
@@ -1,412 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-
-#if ENABLE(SHARED_WORKERS)
-
-#include "DefaultSharedWorkerRepository.h"
-
-#include "Document.h"
-#include "ExceptionCode.h"
-#include "InspectorInstrumentation.h"
-#include "MessageEvent.h"
-#include "MessagePort.h"
-#include "NotImplemented.h"
-#include "PageGroup.h"
-#include "PlatformStrategies.h"
-#include "SecurityOrigin.h"
-#include "SharedWorker.h"
-#include "SharedWorkerGlobalScope.h"
-#include "SharedWorkerStrategy.h"
-#include "SharedWorkerThread.h"
-#include "WorkerLoaderProxy.h"
-#include "WorkerReportingProxy.h"
-#include "WorkerScriptLoader.h"
-#include "WorkerScriptLoaderClient.h"
-#include <inspector/ScriptCallStack.h>
-#include <wtf/NeverDestroyed.h>
-
-namespace WebCore {
-
-class SharedWorkerProxy final : public ThreadSafeRefCounted<SharedWorkerProxy>, public WorkerLoaderProxy, public WorkerReportingProxy {
-public:
-    static Ref<SharedWorkerProxy> create(const String& name, const URL& url, PassRefPtr<SecurityOrigin> origin) { return adoptRef(*new SharedWorkerProxy(name, url, origin)); }
-
-    void setThread(PassRefPtr<SharedWorkerThread> thread) { m_thread = thread; }
-    SharedWorkerThread* thread() { return m_thread.get(); }
-    bool isClosing() const { return m_closing; }
-    URL url() const { return m_url.copy(); }
-    String name() const { return m_name.isolatedCopy(); }
-    bool matches(const String& name, PassRefPtr<SecurityOrigin> origin, const URL& urlToMatch) const;
-
-    // WorkerLoaderProxy
-    virtual void postTaskToLoader(ScriptExecutionContext::Task) override;
-    virtual bool postTaskForModeToWorkerGlobalScope(ScriptExecutionContext::Task, const String&) override;
-
-    // WorkerReportingProxy
-    virtual void postExceptionToWorkerObject(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) override;
-    virtual void postConsoleMessageToWorkerObject(MessageSource, MessageLevel, const String& message, int lineNumber, int columnNumber, const String& sourceURL) override;
-#if ENABLE(INSPECTOR)
-    virtual void postMessageToPageInspector(const String&) override;
-#endif
-    virtual void workerGlobalScopeClosed() override;
-    virtual void workerGlobalScopeDestroyed() override;
-
-    // Updates the list of the worker's documents, per section 4.5 of the WebWorkers spec.
-    void addToWorkerDocuments(ScriptExecutionContext*);
-
-    bool isInWorkerDocuments(Document* document) { return m_workerDocuments.contains(document); }
-
-    // Removes a detached document from the list of worker's documents. May set the closing flag if this is the last document in the list.
-    void documentDetached(Document*);
-
-private:
-    SharedWorkerProxy(const String& name, const URL&, PassRefPtr<SecurityOrigin>);
-    void close();
-
-    bool m_closing;
-    String m_name;
-    URL m_url;
-    // The thread is freed when the proxy is destroyed, so we need to make sure that the proxy stays around until the SharedWorkerGlobalScope exits.
-    RefPtr<SharedWorkerThread> m_thread;
-    RefPtr<SecurityOrigin> m_origin;
-    HashSet<Document*> m_workerDocuments;
-    // Ensures exclusive access to the worker documents. Must not grab any other locks (such as the DefaultSharedWorkerRepository lock) while holding this one.
-    Mutex m_workerDocumentsLock;
-};
-
-SharedWorkerProxy::SharedWorkerProxy(const String& name, const URL& url, PassRefPtr<SecurityOrigin> origin)
-    : m_closing(false)
-    , m_name(name.isolatedCopy())
-    , m_url(url.copy())
-    , m_origin(origin)
-{
-    // We should be the sole owner of the SecurityOrigin, as we will free it on another thread.
-    ASSERT(m_origin->hasOneRef());
-}
-
-bool SharedWorkerProxy::matches(const String& name, PassRefPtr<SecurityOrigin> origin, const URL& urlToMatch) const
-{
-    // If the origins don't match, or the names don't match, then this is not the proxy we are looking for.
-    if (!origin->equal(m_origin.get()))
-        return false;
-
-    // If the names are both empty, compares the URLs instead per the Web Workers spec.
-    if (name.isEmpty() && m_name.isEmpty())
-        return urlToMatch == url();
-
-    return name == m_name;
-}
-
-void SharedWorkerProxy::postTaskToLoader(ScriptExecutionContext::Task task)
-{
-    MutexLocker lock(m_workerDocumentsLock);
-
-    if (isClosing())
-        return;
-
-    // If we aren't closing, then we must have at least one document.
-    ASSERT(m_workerDocuments.size());
-
-    // Just pick an arbitrary active document from the HashSet and pass load requests to it.
-    // FIXME: Do we need to deal with the case where the user closes the document mid-load, via a shadow document or some other solution?
-    Document* document = *(m_workerDocuments.begin());
-    document->postTask(WTF::move(task));
-}
-
-bool SharedWorkerProxy::postTaskForModeToWorkerGlobalScope(ScriptExecutionContext::Task task, const String& mode)
-{
-    if (isClosing())
-        return false;
-    ASSERT(m_thread);
-    m_thread->runLoop().postTaskForMode(WTF::move(task), mode);
-    return true;
-}
-
-void SharedWorkerProxy::postExceptionToWorkerObject(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL)
-{
-    MutexLocker lock(m_workerDocumentsLock);
-    StringCapture capturedErrorMessage(errorMessage);
-    StringCapture capturedSourceURL(sourceURL);
-    for (auto& document : m_workerDocuments)
-        document->postTask([capturedErrorMessage, lineNumber, columnNumber, capturedSourceURL] (ScriptExecutionContext& context) {
-            context.reportException(capturedErrorMessage.string(), lineNumber, columnNumber, capturedSourceURL.string(), nullptr);
-        });
-}
-
-void SharedWorkerProxy::postConsoleMessageToWorkerObject(MessageSource source, MessageLevel level, const String& message, int lineNumber, int columnNumber, const String& sourceURL)
-{
-    MutexLocker lock(m_workerDocumentsLock);
-    StringCapture capturedMessage(message);
-    StringCapture capturedSourceURL(sourceURL);
-    for (auto& document : m_workerDocuments)
-        document->postTask([source, level, capturedMessage, capturedSourceURL, lineNumber, columnNumber] (ScriptExecutionContext& context) {
-            context.addConsoleMessage(source, level, capturedMessage.string(), capturedSourceURL.string(), lineNumber, columnNumber);
-        });
-}
-
-#if ENABLE(INSPECTOR)
-void SharedWorkerProxy::postMessageToPageInspector(const String&)
-{
-    notImplemented();
-}
-#endif
-
-void SharedWorkerProxy::workerGlobalScopeClosed()
-{
-    if (isClosing())
-        return;
-    close();
-}
-
-void SharedWorkerProxy::workerGlobalScopeDestroyed()
-{
-    // The proxy may be freed by this call, so do not reference it any further.
-    DefaultSharedWorkerRepository::instance().removeProxy(this);
-}
-
-void SharedWorkerProxy::addToWorkerDocuments(ScriptExecutionContext* context)
-{
-    // Nested workers are not yet supported, so passed-in context should always be a Document.
-    ASSERT(context);
-    ASSERT(!isClosing());
-    MutexLocker lock(m_workerDocumentsLock);
-    m_workerDocuments.add(downcast<Document>(context));
-}
-
-void SharedWorkerProxy::documentDetached(Document* document)
-{
-    if (isClosing())
-        return;
-    // Remove the document from our set (if it's there) and if that was the last document in the set, mark the proxy as closed.
-    MutexLocker lock(m_workerDocumentsLock);
-    m_workerDocuments.remove(document);
-    if (!m_workerDocuments.size())
-        close();
-}
-
-void SharedWorkerProxy::close()
-{
-    ASSERT(!isClosing());
-    m_closing = true;
-    // Stop the worker thread - the proxy will stay around until we get workerThreadExited() notification.
-    if (m_thread)
-        m_thread->stop();
-}
-
-class SharedWorkerConnectTask : public ScriptExecutionContext::Task {
-public:
-    SharedWorkerConnectTask(MessagePortChannel* channel)
-        : ScriptExecutionContext::Task([channel] (ScriptExecutionContext& context) {
-            RefPtr<MessagePort> port = MessagePort::create(context);
-            port->entangle(std::unique_ptr<MessagePortChannel>(channel));
-            ASSERT_WITH_SECURITY_IMPLICATION(is<WorkerGlobalScope>(context));
-            WorkerGlobalScope& workerGlobalScope = downcast<WorkerGlobalScope>(context);
-            // Since close() stops the thread event loop, this should not ever get called while closing.
-            ASSERT(!workerGlobalScope.isClosing());
-            ASSERT_WITH_SECURITY_IMPLICATION(workerGlobalScope.isSharedWorkerGlobalScope());
-            workerGlobalScope.dispatchEvent(createConnectEvent(port));
-        })
-    {
-    }
-};
-
-// Loads the script on behalf of a worker.
-class SharedWorkerScriptLoader : public RefCounted<SharedWorkerScriptLoader>, private WorkerScriptLoaderClient {
-public:
-    SharedWorkerScriptLoader(PassRefPtr<SharedWorker>, std::unique_ptr<MessagePortChannel>, PassRefPtr<SharedWorkerProxy>);
-    void load(const URL&);
-
-private:
-    // WorkerScriptLoaderClient callbacks
-    virtual void didReceiveResponse(unsigned long identifier, const ResourceResponse&);
-    virtual void notifyFinished();
-
-    RefPtr<SharedWorker> m_worker;
-    std::unique_ptr<MessagePortChannel> m_port;
-    RefPtr<SharedWorkerProxy> m_proxy;
-    RefPtr<WorkerScriptLoader> m_scriptLoader;
-};
-
-SharedWorkerScriptLoader::SharedWorkerScriptLoader(PassRefPtr<SharedWorker> worker, std::unique_ptr<MessagePortChannel> port, PassRefPtr<SharedWorkerProxy> proxy)
-    : m_worker(worker)
-    , m_port(WTF::move(port))
-    , m_proxy(proxy)
-{
-}
-
-void SharedWorkerScriptLoader::load(const URL& url)
-{
-    // Stay alive (and keep the SharedWorker and JS wrapper alive) until the load finishes.
-    this->ref();
-    m_worker->setPendingActivity(m_worker.get());
-
-    // Mark this object as active for the duration of the load.
-    m_scriptLoader = WorkerScriptLoader::create();
-    m_scriptLoader->loadAsynchronously(m_worker->scriptExecutionContext(), url, DenyCrossOriginRequests, this);
-}
-
-void SharedWorkerScriptLoader::didReceiveResponse(unsigned long identifier, const ResourceResponse&)
-{
-    InspectorInstrumentation::didReceiveScriptResponse(m_worker->scriptExecutionContext(), identifier);
-}
-
-void SharedWorkerScriptLoader::notifyFinished()
-{
-    // FIXME: This method is not guaranteed to be invoked if we are loading from WorkerGlobalScope (see comment for WorkerScriptLoaderClient::notifyFinished()).
-    // We need to address this before supporting nested workers.
-
-    // Hand off the just-loaded code to the repository to start up the worker thread.
-    if (m_scriptLoader->failed())
-        m_worker->dispatchEvent(Event::create(eventNames().errorEvent, false, true));
-    else {
-        InspectorInstrumentation::scriptImported(m_worker->scriptExecutionContext(), m_scriptLoader->identifier(), m_scriptLoader->script());
-        DefaultSharedWorkerRepository::instance().workerScriptLoaded(*m_proxy, m_worker->scriptExecutionContext()->userAgent(m_scriptLoader->url()),
-            m_scriptLoader->script(), WTF::move(m_port),
-            m_worker->scriptExecutionContext()->contentSecurityPolicy()->deprecatedHeader(),
-            m_worker->scriptExecutionContext()->contentSecurityPolicy()->deprecatedHeaderType());
-    }
-    m_worker->unsetPendingActivity(m_worker.get());
-    this->deref(); // This frees this object - must be the last action in this function.
-}
-
-DefaultSharedWorkerRepository& DefaultSharedWorkerRepository::instance()
-{
-    static std::once_flag onceFlag;
-    static LazyNeverDestroyed<DefaultSharedWorkerRepository> instance;
-    std::call_once(onceFlag, []{
-        instance.construct();
-    });
-
-    return instance;
-}
-
-bool DefaultSharedWorkerRepository::isAvailable()
-{
-    return platformStrategies()->sharedWorkerStrategy()->isAvailable();
-}
-
-void DefaultSharedWorkerRepository::workerScriptLoaded(SharedWorkerProxy& proxy, const String& userAgent, const String& workerScript, std::unique_ptr<MessagePortChannel> port, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType)
-{
-    MutexLocker lock(m_lock);
-    if (proxy.isClosing())
-        return;
-
-    // Another loader may have already started up a thread for this proxy - if so, just send a connect to the pre-existing thread.
-    if (!proxy.thread()) {
-        RefPtr<SharedWorkerThread> thread = SharedWorkerThread::create(proxy.name(), proxy.url(), userAgent, workerScript, proxy, proxy, DontPauseWorkerGlobalScopeOnStart, contentSecurityPolicy, contentSecurityPolicyType);
-        proxy.setThread(thread);
-        thread->start();
-    }
-
-    proxy.thread()->runLoop().postTask(SharedWorkerConnectTask(port.release()));
-}
-
-bool DefaultSharedWorkerRepository::hasSharedWorkers(Document* document)
-{
-    MutexLocker lock(m_lock);
-    for (unsigned i = 0; i < m_proxies.size(); i++) {
-        if (m_proxies[i]->isInWorkerDocuments(document))
-            return true;
-    }
-    return false;
-}
-
-void DefaultSharedWorkerRepository::removeProxy(SharedWorkerProxy* proxy)
-{
-    MutexLocker lock(m_lock);
-    for (unsigned i = 0; i < m_proxies.size(); i++) {
-        if (proxy == m_proxies[i].get()) {
-            m_proxies.remove(i);
-            return;
-        }
-    }
-}
-
-void DefaultSharedWorkerRepository::documentDetached(Document* document)
-{
-    MutexLocker lock(m_lock);
-    for (unsigned i = 0; i < m_proxies.size(); i++)
-        m_proxies[i]->documentDetached(document);
-}
-
-void DefaultSharedWorkerRepository::connectToWorker(PassRefPtr<SharedWorker> worker, std::unique_ptr<MessagePortChannel> port, const URL& url, const String& name, ExceptionCode& ec)
-{
-    MutexLocker lock(m_lock);
-    ASSERT(worker->scriptExecutionContext()->securityOrigin()->canAccess(&SecurityOrigin::create(url).get()));
-    // Fetch a proxy corresponding to this SharedWorker.
-    RefPtr<SharedWorkerProxy> proxy = getProxy(name, url);
-
-    // FIXME: Why is this done even if we are raising an exception below?
-    proxy->addToWorkerDocuments(worker->scriptExecutionContext());
-
-    if (proxy->url() != url) {
-        // Proxy already existed under alternate URL - return an error.
-        ec = URL_MISMATCH_ERR;
-        return;
-    }
-    // If proxy is already running, just connect to it - otherwise, kick off a loader to load the script.
-    if (proxy->thread())
-        proxy->thread()->runLoop().postTask(SharedWorkerConnectTask(port.release()));
-    else {
-        RefPtr<SharedWorkerScriptLoader> loader = adoptRef(new SharedWorkerScriptLoader(worker, WTF::move(port), proxy.release()));
-        loader->load(url);
-    }
-}
-
-// Creates a new SharedWorkerProxy or returns an existing one from the repository. Must only be called while the repository mutex is held.
-PassRefPtr<SharedWorkerProxy> DefaultSharedWorkerRepository::getProxy(const String& name, const URL& url)
-{
-    // Look for an existing worker, and create one if it doesn't exist.
-    // Items in the cache are freed on another thread, so do a threadsafe copy of the URL before creating the origin,
-    // to make sure no references to external strings linger.
-    RefPtr<SecurityOrigin> origin = SecurityOrigin::create(url.copy());
-    for (unsigned i = 0; i < m_proxies.size(); i++) {
-        if (!m_proxies[i]->isClosing() && m_proxies[i]->matches(name, origin, url))
-            return m_proxies[i];
-    }
-    // Proxy is not in the repository currently - create a new one.
-    RefPtr<SharedWorkerProxy> proxy = SharedWorkerProxy::create(name, url, origin.release());
-    m_proxies.append(proxy);
-    return proxy.release();
-}
-
-DefaultSharedWorkerRepository::DefaultSharedWorkerRepository()
-{
-}
-
-DefaultSharedWorkerRepository::~DefaultSharedWorkerRepository()
-{
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(SHARED_WORKERS)
diff --git a/Source/WebCore/workers/DefaultSharedWorkerRepository.h b/Source/WebCore/workers/DefaultSharedWorkerRepository.h
deleted file mode 100644 (file)
index 250ebe5..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef DefaultSharedWorkerRepository_h
-#define DefaultSharedWorkerRepository_h
-
-#if ENABLE(SHARED_WORKERS)
-
-#include "ContentSecurityPolicy.h"
-#include <memory>
-#include <wtf/Forward.h>
-#include <wtf/HashMap.h>
-#include <wtf/Noncopyable.h>
-#include <wtf/PassRefPtr.h>
-#include <wtf/RefPtr.h>
-#include <wtf/Threading.h>
-#include <wtf/text/StringHash.h>
-
-namespace WebCore {
-
-    class Document;
-    class URL;
-    class MessagePortChannel;
-    class ScriptExecutionContext;
-    class SharedWorker;
-    class SharedWorkerProxy;
-
-    typedef int ExceptionCode;
-
-    // Platform-specific implementation of the SharedWorkerRepository static interface.
-    class DefaultSharedWorkerRepository {
-        WTF_MAKE_NONCOPYABLE(DefaultSharedWorkerRepository); WTF_MAKE_FAST_ALLOCATED;
-
-    public:
-        // Returns true if the platform supports SharedWorkers, otherwise false.
-        static bool isAvailable();
-
-        // Invoked once the worker script has been loaded to fire up the worker thread.
-        void workerScriptLoaded(SharedWorkerProxy&, const String& userAgent, const String& workerScript, std::unique_ptr<MessagePortChannel>, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType);
-
-        // Internal implementation of SharedWorkerRepository::connect()
-        void connectToWorker(PassRefPtr<SharedWorker>, std::unique_ptr<MessagePortChannel>, const URL&, const String& name, ExceptionCode&);
-
-        // Notification that a document has been detached.
-        void documentDetached(Document*);
-
-        // Removes the passed SharedWorkerProxy from the repository.
-        void removeProxy(SharedWorkerProxy*);
-
-        bool hasSharedWorkers(Document*);
-
-        static DefaultSharedWorkerRepository& instance();
-        DefaultSharedWorkerRepository();
-
-    private:
-        ~DefaultSharedWorkerRepository();
-
-        PassRefPtr<SharedWorkerProxy> getProxy(const String& name, const URL&);
-        // Mutex used to protect internal data structures.
-        Mutex m_lock;
-
-        // List of shared workers. Expectation is that there will be a limited number of shared workers, and so tracking them in a Vector is more efficient than nested HashMaps.
-        typedef Vector<RefPtr<SharedWorkerProxy>> SharedWorkerProxyRepository;
-        SharedWorkerProxyRepository m_proxies;
-    };
-
-} // namespace WebCore
-
-#endif // ENABLE(SHARED_WORKERS)
-
-#endif // DefaultSharedWorkerRepository_h
diff --git a/Source/WebCore/workers/SharedWorker.cpp b/Source/WebCore/workers/SharedWorker.cpp
deleted file mode 100644 (file)
index babd7c6..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-
-#if ENABLE(SHARED_WORKERS)
-
-#include "SharedWorker.h"
-
-#include "ExceptionCode.h"
-#include "InspectorInstrumentation.h"
-#include "URL.h"
-#include "MessageChannel.h"
-#include "MessagePort.h"
-#include "ScriptExecutionContext.h"
-#include "SecurityOrigin.h"
-#include "SharedWorkerRepository.h"
-
-namespace WebCore {
-
-inline SharedWorker::SharedWorker(ScriptExecutionContext& context)
-    : AbstractWorker(context)
-{
-}
-
-PassRefPtr<SharedWorker> SharedWorker::create(ScriptExecutionContext& context, const String& url, const String& name, ExceptionCode& ec)
-{
-    ASSERT(isMainThread());
-
-    // We don't currently support nested workers, so workers can only be created from documents.
-    ASSERT_WITH_SECURITY_IMPLICATION(context.isDocument());
-    Document& document = static_cast<Document&>(context);
-
-    RefPtr<SharedWorker> worker = adoptRef(new SharedWorker(context));
-
-    RefPtr<MessageChannel> channel = MessageChannel::create(context);
-    worker->m_port = channel->port1();
-    std::unique_ptr<MessagePortChannel> remotePort = channel->port2()->disentangle();
-    ASSERT(remotePort);
-
-    worker->suspendIfNeeded();
-
-    URL scriptURL = worker->resolveURL(url, ec);
-    if (scriptURL.isEmpty())
-        return 0;
-
-    if (!document.securityOrigin()->canAccessSharedWorkers(document.topOrigin())) {
-        ec = SECURITY_ERR;
-        return 0;
-    }
-
-    SharedWorkerRepository::connect(worker.get(), WTF::move(remotePort), scriptURL, name, ec);
-
-    return worker.release();
-}
-
-SharedWorker::~SharedWorker()
-{
-}
-
-} // namespace WebCore
-
-#endif  // ENABLE(SHARED_WORKERS)
diff --git a/Source/WebCore/workers/SharedWorker.h b/Source/WebCore/workers/SharedWorker.h
deleted file mode 100644 (file)
index 96c540a..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef SharedWorker_h
-#define SharedWorker_h
-
-#include "AbstractWorker.h"
-
-#if ENABLE(SHARED_WORKERS)
-
-namespace WebCore {
-
-    class SharedWorker final : public AbstractWorker {
-    public:
-        static PassRefPtr<SharedWorker> create(ScriptExecutionContext&, const String& url, const String& name, ExceptionCode&);
-        virtual ~SharedWorker();
-
-        MessagePort* port() const { return m_port.get(); }
-
-        virtual EventTargetInterface eventTargetInterface() const override { return SharedWorkerEventTargetInterfaceType; }
-
-    private:
-        explicit SharedWorker(ScriptExecutionContext&);
-
-        RefPtr<MessagePort> m_port;
-    };
-
-} // namespace WebCore
-
-#endif // ENABLE(SHARED_WORKERS)
-
-#endif // SharedWorker_h
diff --git a/Source/WebCore/workers/SharedWorker.idl b/Source/WebCore/workers/SharedWorker.idl
deleted file mode 100644 (file)
index afa4831..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- * Copyright (C) 2010 Apple Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-[
-    EnabledAtRuntime,
-    Conditional=SHARED_WORKERS,
-    CustomConstructor(DOMString scriptURL, [Default=NullString] optional DOMString name),
-    JSCustomMarkFunction,
-    JSGenerateToNativeObject,
-    JSGenerateToJSObject,
-    ActiveDOMObject
-] interface SharedWorker : EventTarget {
-    readonly attribute MessagePort port;
-};
-
-SharedWorker implements AbstractWorker;
-
diff --git a/Source/WebCore/workers/SharedWorkerGlobalScope.cpp b/Source/WebCore/workers/SharedWorkerGlobalScope.cpp
deleted file mode 100644 (file)
index 53cb71c..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-
-#if ENABLE(SHARED_WORKERS)
-
-#include "SharedWorkerGlobalScope.h"
-
-#include "DOMWindow.h"
-#include "EventNames.h"
-#include "MessageEvent.h"
-#include "SecurityOrigin.h"
-#include "SharedWorkerThread.h"
-#include <inspector/ScriptCallStack.h>
-
-namespace WebCore {
-
-PassRefPtr<MessageEvent> createConnectEvent(PassRefPtr<MessagePort> prpPort)
-{
-    RefPtr<MessagePort> port = prpPort;
-    RefPtr<MessageEvent> event = MessageEvent::create(std::make_unique<MessagePortArray>(1, port), Deprecated::ScriptValue(), String(), String(), port);
-    event->initEvent(eventNames().connectEvent, false, false);
-    return event.release();
-}
-
-// static
-Ref<SharedWorkerGlobalScope> SharedWorkerGlobalScope::create(const String& name, const URL& url, const String& userAgent, SharedWorkerThread& thread, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType)
-{
-    Ref<SharedWorkerGlobalScope> context = adoptRef(*new SharedWorkerGlobalScope(name, url, userAgent, thread));
-    context->applyContentSecurityPolicyFromString(contentSecurityPolicy, contentSecurityPolicyType);
-    return context;
-}
-
-SharedWorkerGlobalScope::SharedWorkerGlobalScope(const String& name, const URL& url, const String& userAgent, SharedWorkerThread& thread)
-    : WorkerGlobalScope(url, userAgent, thread, 0)
-    , m_name(name)
-{
-}
-
-SharedWorkerGlobalScope::~SharedWorkerGlobalScope()
-{
-}
-
-EventTargetInterface SharedWorkerGlobalScope::eventTargetInterface() const
-{
-    return SharedWorkerGlobalScopeEventTargetInterfaceType;
-}
-
-SharedWorkerThread& SharedWorkerGlobalScope::thread()
-{
-    return static_cast<SharedWorkerThread&>(Base::thread());
-}
-
-void SharedWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, RefPtr<Inspector::ScriptCallStack>&& callStack)
-{
-    WorkerGlobalScope::logExceptionToConsole(errorMessage, sourceURL, lineNumber, columnNumber, callStack.copyRef());
-    addMessageToWorkerConsole(MessageSource::JS, MessageLevel::Error, errorMessage, sourceURL, lineNumber, columnNumber, callStack.copyRef());
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(SHARED_WORKERS)
diff --git a/Source/WebCore/workers/SharedWorkerGlobalScope.h b/Source/WebCore/workers/SharedWorkerGlobalScope.h
deleted file mode 100644 (file)
index 181a294..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef SharedWorkerGlobalScope_h
-#define SharedWorkerGlobalScope_h
-
-#if ENABLE(SHARED_WORKERS)
-
-#include "ContentSecurityPolicy.h"
-#include "WorkerGlobalScope.h"
-
-namespace WebCore {
-
-    class MessageEvent;
-    class SharedWorkerThread;
-
-    class SharedWorkerGlobalScope : public WorkerGlobalScope {
-    public:
-        typedef WorkerGlobalScope Base;
-        static Ref<SharedWorkerGlobalScope> create(const String& name, const URL&, const String& userAgent, SharedWorkerThread&, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType);
-        virtual ~SharedWorkerGlobalScope();
-
-        virtual bool isSharedWorkerGlobalScope() const override { return true; }
-
-        // EventTarget
-        virtual EventTargetInterface eventTargetInterface() const override;
-
-        // Setters/Getters for attributes in SharedWorkerGlobalScope.idl
-        DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
-        String name() const { return m_name; }
-
-        SharedWorkerThread& thread();
-
-    private:
-        SharedWorkerGlobalScope(const String& name, const URL&, const String& userAgent, SharedWorkerThread&);
-        virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, RefPtr<Inspector::ScriptCallStack>&&) override;
-
-        String m_name;
-    };
-
-    PassRefPtr<MessageEvent> createConnectEvent(PassRefPtr<MessagePort>);
-
-} // namespace WebCore
-
-#endif // ENABLE(SHARED_WORKERS)
-
-#endif // SharedWorkerGlobalScope_h
diff --git a/Source/WebCore/workers/SharedWorkerGlobalScope.idl b/Source/WebCore/workers/SharedWorkerGlobalScope.idl
deleted file mode 100644 (file)
index d1a1033..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-[
-    GlobalContext=SharedWorkerGlobalScope,
-    CustomProxyToJSObject,
-    Conditional=SHARED_WORKERS,
-    JSGenerateToNativeObject,
-] interface SharedWorkerGlobalScope : WorkerGlobalScope {
-
-    readonly attribute DOMString name;
-             attribute EventListener onconnect;
-
-};
-
diff --git a/Source/WebCore/workers/SharedWorkerRepository.cpp b/Source/WebCore/workers/SharedWorkerRepository.cpp
deleted file mode 100644 (file)
index a187526..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-
-#if ENABLE(SHARED_WORKERS)
-
-#include "SharedWorkerRepository.h"
-
-#include "DefaultSharedWorkerRepository.h"
-#include "MessagePortChannel.h"
-#include "SharedWorker.h"
-
-namespace WebCore {
-
-bool SharedWorkerRepository::isAvailable()
-{
-    return DefaultSharedWorkerRepository::instance().isAvailable();
-}
-
-void SharedWorkerRepository::connect(PassRefPtr<SharedWorker> worker, std::unique_ptr<MessagePortChannel> port, const URL& url, const String& name, ExceptionCode& ec)
-{
-    DefaultSharedWorkerRepository::instance().connectToWorker(worker, WTF::move(port), url, name, ec);
-}
-
-void SharedWorkerRepository::documentDetached(Document* document)
-{
-    DefaultSharedWorkerRepository::instance().documentDetached(document);
-}
-
-bool SharedWorkerRepository::hasSharedWorkers(Document* document)
-{
-    return DefaultSharedWorkerRepository::instance().hasSharedWorkers(document);
-}
-
-}
-
-#endif
diff --git a/Source/WebCore/workers/SharedWorkerRepository.h b/Source/WebCore/workers/SharedWorkerRepository.h
deleted file mode 100644 (file)
index 4e2f49f..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef SharedWorkerRepository_h
-#define SharedWorkerRepository_h
-
-#if ENABLE(SHARED_WORKERS)
-
-#include <memory>
-#include <wtf/Forward.h>
-#include <wtf/PassRefPtr.h>
-
-namespace WebCore {
-
-    class Document;
-    class URL;
-    class MessagePortChannel;
-    class SharedWorker;
-
-    typedef int ExceptionCode;
-
-    // Interface to a repository which manages references to the set of active shared workers.
-    class SharedWorkerRepository {
-    public:
-        // Returns true if the platform supports SharedWorkers, otherwise false.
-        static bool isAvailable();
-
-        // Connects the passed SharedWorker object with the specified worker thread, creating a new thread if necessary.
-        static void connect(PassRefPtr<SharedWorker>, std::unique_ptr<MessagePortChannel>, const URL&, const String& name, ExceptionCode&);
-
-        // Invoked when a document has been detached.
-        static void documentDetached(Document*);
-
-        // Returns true if the passed document is associated with any SharedWorkers.
-        static bool hasSharedWorkers(Document*);
-    private:
-        SharedWorkerRepository() { }
-    };
-
-} // namespace WebCore
-
-#endif // ENABLE(SHARED_WORKERS)
-
-#endif // SharedWorkerRepository_h
diff --git a/Source/WebCore/workers/SharedWorkerStrategy.h b/Source/WebCore/workers/SharedWorkerStrategy.h
deleted file mode 100644 (file)
index a75e1b2..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef SharedWorkerStrategy_h
-#define SharedWorkerStrategy_h
-
-namespace WebCore {
-    
-class SharedWorkerStrategy {
-public:
-    virtual bool isAvailable() const { return true; }
-
-protected:
-    virtual ~SharedWorkerStrategy()
-    {
-    }
-};
-
-}
-
-#endif // SharedWorkerStrategy_h
diff --git a/Source/WebCore/workers/SharedWorkerThread.cpp b/Source/WebCore/workers/SharedWorkerThread.cpp
deleted file mode 100644 (file)
index 91bb795..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-
-#if ENABLE(SHARED_WORKERS)
-
-#include "SecurityOrigin.h"
-#include "SharedWorkerThread.h"
-#include "SharedWorkerGlobalScope.h"
-
-namespace WebCore {
-
-Ref<SharedWorkerThread> SharedWorkerThread::create(const String& name, const URL& scriptURL, const String& userAgent, const String& sourceCode, WorkerLoaderProxy& workerLoaderProxy, WorkerReportingProxy& workerReportingProxy, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType)
-{
-    return adoptRef(*new SharedWorkerThread(name, scriptURL, userAgent, sourceCode, workerLoaderProxy, workerReportingProxy, startMode, contentSecurityPolicy, contentSecurityPolicyType));
-}
-
-SharedWorkerThread::SharedWorkerThread(const String& name, const URL& url, const String& userAgent, const String& sourceCode, WorkerLoaderProxy& workerLoaderProxy, WorkerReportingProxy& workerReportingProxy, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType)
-    : WorkerThread(url, userAgent, sourceCode, workerLoaderProxy, workerReportingProxy, startMode, contentSecurityPolicy, contentSecurityPolicyType, 0)
-    , m_name(name.isolatedCopy())
-{
-}
-
-SharedWorkerThread::~SharedWorkerThread()
-{
-}
-
-Ref<WorkerGlobalScope> SharedWorkerThread::createWorkerGlobalScope(const URL& url, const String& userAgent, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassRefPtr<SecurityOrigin>)
-{
-    return SharedWorkerGlobalScope::create(m_name, url, userAgent, *this, contentSecurityPolicy, contentSecurityPolicyType);
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(SHARED_WORKERS)
diff --git a/Source/WebCore/workers/SharedWorkerThread.h b/Source/WebCore/workers/SharedWorkerThread.h
deleted file mode 100644 (file)
index 2bf5f02..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#ifndef SharedWorkerThread_h
-#define SharedWorkerThread_h
-
-#if E