[Webkit-unassigned] [Bug 27421] [V8] Factor V8ConsoleMessage out of V8Proxy

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 19 20:26:06 PDT 2009


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


David Levin <levin at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |levin at chromium.org




--- Comment #7 from David Levin <levin at chromium.org>  2009-07-19 20:26:05 PDT ---
> I think this stuff is all fine. 

But couldn't it lead to console messages getting display in a (wrong and)
confusing order. 

Message 1 and Message 2 are in the queue.
Message 3 gets created and message3.dispatchNow() is called.

Message 1 gets dispatched and results in js being executed which posts another
message (Message 4  -- I'm not sure if the js can do something which causes
another message to get posted, but it seems like any messages happening here
should get posted.)

Message 2 is about to get dispatched but first processes messages in the queue,
so Message 4 goes to the console.

End result:

Message 1
Message 4
Message 2
Message 3

Actually, it looks like this can't happen currently. Message 4 would actually
happen immediately without getting posted, and the new code is more robust to
possible badness by taking ownership of the pointer immediately and setting it
to 0.

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



More information about the webkit-unassigned mailing list