Reviewed by Maciej Stachowiak.
https://bugs.webkit.org/show_bug.cgi?id=22083
MessageEvents cannot be used across threads
* dom/Event.idl:
* dom/MessageEvent.idl:
Add a NoStaticTables attribute - MessageEvent is used in worker threads, so static tables
won't work.
* dom/MessagePort.cpp:
(WebCore::MessagePort::EventData::EventData):
(WebCore::MessagePort::EventData::~EventData):
(WebCore::MessagePort::clone):
(WebCore::MessagePort::postMessage):
(WebCore::MessagePort::startConversation):
(WebCore::MessagePort::dispatchMessages):
* dom/MessagePort.h:
Don't create a MessageEvent until dispatch time - messages can be posted across threads,
but MessageEvents are tied to the thread that they were created in.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 5b6ec15..28eca14 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,5 +1,28 @@
2008-11-05 Alexey Proskuryakov <ap@webkit.org>
+ Reviewed by Maciej Stachowiak.
+
+ https://bugs.webkit.org/show_bug.cgi?id=22083
+ MessageEvents cannot be used across threads
+
+ * dom/Event.idl:
+ * dom/MessageEvent.idl:
+ Add a NoStaticTables attribute - MessageEvent is used in worker threads, so static tables
+ won't work.
+
+ * dom/MessagePort.cpp:
+ (WebCore::MessagePort::EventData::EventData):
+ (WebCore::MessagePort::EventData::~EventData):
+ (WebCore::MessagePort::clone):
+ (WebCore::MessagePort::postMessage):
+ (WebCore::MessagePort::startConversation):
+ (WebCore::MessagePort::dispatchMessages):
+ * dom/MessagePort.h:
+ Don't create a MessageEvent until dispatch time - messages can be posted across threads,
+ but MessageEvents are tied to the thread that they were created in.
+
+2008-11-05 Alexey Proskuryakov <ap@webkit.org>
+
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=22066