2009-11-11 Drew Wilson <atwilson@chromium.org>
[WebKit-https.git] / WebKit / chromium / src / SharedWorkerRepository.cpp
index f67a7dd6d8a112fd4e3e35551a4d59f3c43ded58..5e5bc46d904fa491f63dbd1ef424312470cafb05 100644 (file)
@@ -171,6 +171,9 @@ void SharedWorkerRepository::connect(PassRefPtr<SharedWorker> worker, PassOwnPtr
         return;
     }
 
+    WebKit::webKitClient()->sharedWorkerRepository()->addSharedWorker(
+        webWorker.get(), getId(document));
+
     // The loader object manages its own lifecycle (and the lifecycles of the two worker objects).
     // It will free itself once loading is completed.
     SharedWorkerScriptLoader* loader = new SharedWorkerScriptLoader(worker, url, name, port.release(), webWorker.release());