[Webkit-unassigned] [Bug 21939] Uninitialized ExceptionCode in DOMWindow::postMessage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 29 13:06:03 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21939





------- Comment #12 from darin at apple.com  2008-10-29 13:06 PDT -------
(In reply to comment #10)
> JS bindings must initialize ec before
> calling  DOMWindow::postMessage(), so of course its behavior is undefined if
> that didn't happen. What am I missing?

Yes, JavaScript bindings will always initialize ec.

But other callers within WebCore are allowed to call the function without
initializing ec if they wish to make the call and ignore the exception code.

That's our current rule for the DOM. We could change it. A quick grep found at
least 31 call sites that make calls and pass uninitialized ExceptionCode
arguments because the caller didn't plan to look at the result. For examples of
this, look at the call to Node::remove() inside Node::normalize(). And the call
to EventTargetNode::dispatchEvent() inside EventHandler::keyEvent().


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list