RESOLVED FIXED 236017
Move SharedWorkerThread & SharedWorkerProxy to workers/shared/context/
https://bugs.webkit.org/show_bug.cgi?id=236017
Summary Move SharedWorkerThread & SharedWorkerProxy to workers/shared/context/
Chris Dumez
Reported 2022-02-02 08:09:12 PST
Move SharedWorkerThread & SharedWorkerProxy to workers/shared/context/, for consistency with service workers. Also rename SharedWorkerProxy to SharedWorkerThreadProxy.
Attachments
Patch (50.82 KB, patch)
2022-02-02 08:35 PST, Chris Dumez
no flags
Patch (50.87 KB, patch)
2022-02-02 09:13 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2022-02-02 08:35:18 PST
youenn fablet
Comment 2 2022-02-02 08:58:44 PST
Comment on attachment 450646 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450646&action=review > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.cpp:112 > + m_scriptExecutionContext->postTask([this] (ScriptExecutionContext&) { s/ScriptExecutionContext/auto/. Are we sure this is valid? Maybe add a comment stating why. > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.h:40 > +class SharedWorkerThreadProxy : public ThreadSafeRefCounted<SharedWorkerThreadProxy>, public WorkerGlobalScopeProxy, public WorkerObjectProxy, public WorkerLoaderProxy, public WorkerDebuggerProxy { final? > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.h:65 > + void setResourceCachingDisabledByWebInspector(bool) final; Can they be made private? > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.h:68 > + SharedWorkerThreadProxy(SharedWorker&); explicit.
Chris Dumez
Comment 3 2022-02-02 09:00:57 PST
(In reply to youenn fablet from comment #2) > Comment on attachment 450646 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=450646&action=review > > > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.cpp:112 > > + m_scriptExecutionContext->postTask([this] (ScriptExecutionContext&) { > > s/ScriptExecutionContext/auto/. > Are we sure this is valid? > Maybe add a comment stating why. > > > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.h:40 > > +class SharedWorkerThreadProxy : public ThreadSafeRefCounted<SharedWorkerThreadProxy>, public WorkerGlobalScopeProxy, public WorkerObjectProxy, public WorkerLoaderProxy, public WorkerDebuggerProxy { > > final? > > > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.h:65 > > + void setResourceCachingDisabledByWebInspector(bool) final; > > Can they be made private? > > > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.h:68 > > + SharedWorkerThreadProxy(SharedWorker&); > > explicit. These classes change *significantly* in the next patch at Bug 235958 but OK.
Chris Dumez
Comment 4 2022-02-02 09:13:35 PST
Chris Dumez
Comment 5 2022-02-02 11:57:00 PST
Comment on attachment 450657 [details] Patch Clearing flags on attachment: 450657 Committed r288975 (246704@trunk): <https://commits.webkit.org/246704@trunk>
Chris Dumez
Comment 6 2022-02-02 11:57:04 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2022-02-02 11:58:18 PST
Note You need to log in before you can comment on or make changes to this bug.