[Webkit-unassigned] [Bug 29336] New: WebInspector.log() function not protected if console not yet created
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 17 09:53:41 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29336
Summary: WebInspector.log() function not protected if console
not yet created
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Web Inspector
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pmuellr at yahoo.com
CC: timothy at hatcher.name, aroben at apple.com,
kmccullough at apple.com
The code for WebInspector.log, in inspector.js, looks like this:
{
var msg = new WebInspector.ConsoleMessage(...);
this.console.addMessage();
}
Unfortunately, this code can be invoked before this.console is set, and so an
exception will occur.
Suggest we figure out a way to queue the message if the console is not set, and
then do the this.console() on them when it's safe to do so.
Probably means checking for queued messages within this method itself, as well
as doing a setInterval() to check.
--
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