[Webkit-unassigned] [Bug 12406] New: addMessageToConsole should work without a Page

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 25 10:30:17 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12406

           Summary: addMessageToConsole should work without a Page
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ap at webkit.org


In many cases, error messages may not get logged, because there is no frame or
page to call addMessageToConsole() on, e.g.:

void SVGDocumentExtensions::reportWarning(const String& message)
{
    if (Page* page = m_doc->frame()->page())
        page->chrome()->addMessageToConsole("Warning: " + message,
m_doc->tokenizer() ? m_doc->tokenizer()->lineNumber() : 1, String());
}

It would be good to find a way not to lose these messages.


-- 
Configure bugmail: http://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