2009-03-03 Mike Belshe <mike@belshe.com>
authordarin@chromium.org <darin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Mar 2009 07:20:07 +0000 (07:20 +0000)
committerdarin@chromium.org <darin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Mar 2009 07:20:07 +0000 (07:20 +0000)
        Reviewed by Alexey Proskuryakov.

        https://bugs.webkit.org/show_bug.cgi?id=21939
        Uninitialized ExceptionCode in DOMWindow::postMessage

        * dom/MessagePort.cpp:
        (WebCore::MessagePort::postMessage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41418 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/dom/MessagePort.cpp

index 0febd532eed3500892476134f5d2a8dd177fd95b..b517b09f13223fd8220438946d0b1846b0517f30 100644 (file)
@@ -1,3 +1,13 @@
+2009-03-03  Mike Belshe  <mike@belshe.com>
+
+        Reviewed by Alexey Proskuryakov.
+
+        https://bugs.webkit.org/show_bug.cgi?id=21939
+        Uninitialized ExceptionCode in DOMWindow::postMessage
+
+        * dom/MessagePort.cpp:
+        (WebCore::MessagePort::postMessage):
+
 2009-03-03  David Kilzer  <ddkilzer@apple.com>
 
         <rdar://problem/6581203> WebCore and WebKit should install the same set of headers during installhdrs phase as build phase
index 0607beae6a9994043ff5ccf456228a018b311006..312a1f3e7e254f8a19a10845d1f725e1ce9c0753 100644 (file)
@@ -137,6 +137,7 @@ void MessagePort::postMessage(const String& message, MessagePort* dataPort, Exce
             ec = INVALID_ACCESS_ERR;
             return;
         }
+        ec = 0;
         newMessagePort = dataPort->clone(ec);
         if (ec)
             return;