Description[WebSocket] Create an isolated copy of the KURL parameter in Bridge::Connect()
WorkerThreadableWebSocketChannel::Bridge::connect() creates a closure of
Peer::connect call from url. Since this closure will be used by the main
thread while this method is called from the worker thread, we need to
create an isolated copy of it.
Recent refactoring changed this method to use CallClosureTask::create +
bind from createCallbackTask. Since createCallbackTask wraps arguments
with CrossThreadCopier, not calling copy() on url was not a problem in
the old code.
On the other hand, in Bridge::initializ(), isolateCopy() call on
sourceURL is redundant since createCallbackTask is used there. This
change removes it.
BUG=351292
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168992
Patch Set 1 #
Total comments: 1
Messages
Total messages: 6 (0 generated)
|