RESOLVED FIXED 236038
Move connect event dispatch logic to SharedWorkerGlobalScope
https://bugs.webkit.org/show_bug.cgi?id=236038
Summary Move connect event dispatch logic to SharedWorkerGlobalScope
Chris Dumez
Reported 2022-02-02 13:58:53 PST
Move connect event dispatch logic to SharedWorkerGlobalScope and add logging.
Attachments
Patch (21.73 KB, patch)
2022-02-02 14:01 PST, Chris Dumez
no flags
Patch (21.64 KB, patch)
2022-02-02 15:33 PST, Chris Dumez
ews-feeder: commit-queue-
Chris Dumez
Comment 1 2022-02-02 14:01:50 PST
Darin Adler
Comment 2 2022-02-02 15:06:33 PST
Comment on attachment 450696 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450696&action=review > Source/WebCore/workers/shared/SharedWorkerGlobalScope.cpp:68 > + auto serializedScriptValue = SerializedScriptValue::create(""); emptyString()? Shorter variable name? Maybe serializedValue or even just value? > Source/WebCore/workers/shared/SharedWorkerGlobalScope.h:28 > +#include "MessageWithMessagePorts.h" Do we really need this header? No way to forward declare TransferredMessagePort instead?
Chris Dumez
Comment 3 2022-02-02 15:11:03 PST
(In reply to Darin Adler from comment #2) > Comment on attachment 450696 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=450696&action=review > > > Source/WebCore/workers/shared/SharedWorkerGlobalScope.cpp:68 > > + auto serializedScriptValue = SerializedScriptValue::create(""); > > emptyString()? > > Shorter variable name? Maybe serializedValue or even just value? > > > Source/WebCore/workers/shared/SharedWorkerGlobalScope.h:28 > > +#include "MessageWithMessagePorts.h" > > Do we really need this header? No way to forward declare > TransferredMessagePort instead? Once Bug 236028 lands, I'll be able to include TransferredMessagePort.h instead which will be an improvement. I don't think I can conveniently forward-declare though since this is basically a typedef to a std::pair<MessagePortIdentifier, MessagePortIdentifier>. I will wait for Bug 236028 before landing this one, so I can fix the include.
Chris Dumez
Comment 4 2022-02-02 15:33:46 PST
Chris Dumez
Comment 5 2022-02-02 18:19:20 PST
Radar WebKit Bug Importer
Comment 6 2022-02-02 18:20:20 PST
Note You need to log in before you can comment on or make changes to this bug.