Changeset 150310 in webkit
- Timestamp:
- May 17, 2013, 5:05:10 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/WebCore/ChangeLog ¶
r150309 r150310 1 2013-05-17 Alexey Proskuryakov <ap@apple.com> 2 3 <rdar://problem/13819878> Disable SharedWorker when in multiple web process model 4 https://bugs.webkit.org/show_bug.cgi?id=116359 5 6 Reviewed by Anders Carlsson. 7 8 This feature was already RuntimeEnabled. Call through layers to get the answer from 9 a platform strategy. 10 11 * workers/DefaultSharedWorkerRepository.cpp: 12 (WebCore::DefaultSharedWorkerRepository::isAvailable): 13 * workers/DefaultSharedWorkerRepository.h: 14 * workers/SharedWorkerRepository.cpp: 15 (WebCore::SharedWorkerRepository::isAvailable): 16 * workers/SharedWorkerStrategy.h: 17 (WebCore::SharedWorkerStrategy::isAvailable): 18 1 19 2013-05-17 Anders Carlsson <andersca@apple.com> 2 20 -
TabularUnified trunk/Source/WebCore/workers/DefaultSharedWorkerRepository.cpp ¶
r149131 r150310 44 44 #include "NotImplemented.h" 45 45 #include "PageGroup.h" 46 #include "PlatformStrategies.h" 46 47 #include "ScriptCallStack.h" 47 48 #include "SecurityOrigin.h" … … 50 51 #include "SharedWorkerContext.h" 51 52 #include "SharedWorkerRepository.h" 53 #include "SharedWorkerStrategy.h" 52 54 #include "SharedWorkerThread.h" 53 55 #include "WorkerLoaderProxy.h" … … 352 354 } 353 355 356 bool DefaultSharedWorkerRepository::isAvailable() 357 { 358 return platformStrategies()->sharedWorkerStrategy()->isAvailable(); 359 } 360 354 361 void DefaultSharedWorkerRepository::workerScriptLoaded(SharedWorkerProxy& proxy, const String& userAgent, const String& workerScript, PassOwnPtr<MessagePortChannel> port, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType) 355 362 { -
TabularUnified trunk/Source/WebCore/workers/DefaultSharedWorkerRepository.h ¶
r104329 r150310 59 59 WTF_MAKE_NONCOPYABLE(DefaultSharedWorkerRepository); WTF_MAKE_FAST_ALLOCATED; 60 60 public: 61 // Returns true if the platform supports SharedWorkers, otherwise false. 62 static bool isAvailable(); 63 61 64 // Invoked once the worker script has been loaded to fire up the worker thread. 62 65 void workerScriptLoaded(SharedWorkerProxy&, const String& userAgent, const String& workerScript, PassOwnPtr<MessagePortChannel>, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType); -
TabularUnified trunk/Source/WebCore/workers/SharedWorkerRepository.cpp ¶
r145466 r150310 39 39 bool SharedWorkerRepository::isAvailable() 40 40 { 41 // SharedWorkers are enabled on the default WebKit platform. 42 return true; 41 return DefaultSharedWorkerRepository::instance().isAvailable(); 43 42 } 44 43 -
TabularUnified trunk/Source/WebCore/workers/SharedWorkerStrategy.h ¶
r150104 r150310 31 31 class SharedWorkerStrategy { 32 32 public: 33 virtual bool isAvailable() const { return true; } 34 33 35 protected: 34 36 virtual ~SharedWorkerStrategy() -
TabularUnified trunk/Source/WebKit2/ChangeLog ¶
r150307 r150310 1 2013-05-17 Alexey Proskuryakov <ap@apple.com> 2 3 <rdar://problem/13819878> Disable SharedWorker when in multiple web process model 4 https://bugs.webkit.org/show_bug.cgi?id=116359 5 6 Reviewed by Anders Carlsson. 7 8 Implement SharedWorkerStrategy::isAvailable. 9 10 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: 11 (WebKit::WebPlatformStrategies::isAvailable): 12 * WebProcess/WebCoreSupport/WebPlatformStrategies.h: 13 1 14 2013-05-17 Beth Dakin <bdakin@apple.com> 2 15 -
TabularUnified trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp ¶
r150104 r150310 305 305 #endif // ENABLE(NETSCAPE_PLUGIN_API) 306 306 307 // SharedWorkerStrategy. 308 309 bool WebPlatformStrategies::isAvailable() const 310 { 311 // Shared workers do not work across multiple processes, and using network process is tied to multiple secondary process model. 312 #if ENABLE(NETWORK_PROCESS) 313 return WebProcess::shared().usesNetworkProcess(); 314 #else 315 return true; 316 #endif 317 } 318 307 319 // StorageStrategy 308 320 -
TabularUnified trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h ¶
r150104 r150310 82 82 virtual void getPluginInfo(const WebCore::Page*, Vector<WebCore::PluginInfo>&) OVERRIDE; 83 83 84 // WebCore::SharedWorkerStrategy. 85 virtual bool isAvailable() const OVERRIDE; 86 84 87 // WebCore::StorageStrategy. 85 88 virtual PassRefPtr<WebCore::StorageNamespace> localStorageNamespace(WebCore::PageGroup*) OVERRIDE;
Note:
See TracChangeset
for help on using the changeset viewer.