<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>12406</bug_id>
          
          <creation_ts>2007-01-25 10:30:16 -0800</creation_ts>
          <short_desc>addMessageToConsole should work without a Page</short_desc>
          <delta_ts>2022-07-13 18:17:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>aroben</cc>
    
    <cc>bfulgham</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32626</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-01-25 10:30:16 -0800</bug_when>
    <thetext>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&amp; message)
{
    if (Page* page = m_doc-&gt;frame()-&gt;page())
        page-&gt;chrome()-&gt;addMessageToConsole(&quot;Warning: &quot; + message, m_doc-&gt;tokenizer() ? m_doc-&gt;tokenizer()-&gt;lineNumber() : 1, String());
}

It would be good to find a way not to lose these messages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882939</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-13 00:33:46 -0700</bug_when>
    <thetext>This line is changed now:

https://github.com/WebKit/WebKit/blob/0393f2f7c7a1e97a7a4c63441b50703cc11d493f/Source/WebCore/svg/SVGDocumentExtensions.cpp#L134

ap@webkit.org - is it something still need to be fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883519</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-13 18:17:08 -0700</bug_when>
    <thetext>I&apos;m not sure. But if it hasn&apos;t been done in 15 years, keeping this bug open won&apos;t get it done.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>