<?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>129995</bug_id>
          
          <creation_ts>2014-03-09 16:36:44 -0700</creation_ts>
          <short_desc>Short-circuit JSGlobalObjectInspectorController when not inspecting.</short_desc>
          <delta_ts>2014-03-13 16:52:24 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Kling">kling</reporter>
          <assigned_to name="Andreas Kling">kling</assigned_to>
          <cc>ggaren</cc>
    
    <cc>joepeck</cc>
    
    <cc>kling</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>988756</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2014-03-09 16:36:44 -0700</bug_when>
    <thetext>We&apos;re hitting symbolication pretty hard below JSGlobalObjectInspectorController::reportAPIException() on DYEB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>988757</commentid>
    <comment_count>1</comment_count>
      <attachid>226261</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2014-03-09 16:37:13 -0700</bug_when>
    <thetext>Created attachment 226261
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>988761</commentid>
    <comment_count>2</comment_count>
      <attachid>226261</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2014-03-09 17:39:59 -0700</bug_when>
    <thetext>Comment on attachment 226261
Patch

Should we check m_consoleAgent-&gt;enabled() instead? That seems a little closer to the code we&apos;re guarding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>988768</commentid>
    <comment_count>3</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2014-03-09 18:42:49 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 226261 [details])
&gt; Should we check m_consoleAgent-&gt;enabled() instead? That seems a little closer to the code we&apos;re guarding.

SGTM. I&apos;ll land with that change :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>988769</commentid>
    <comment_count>4</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2014-03-09 18:51:57 -0700</bug_when>
    <thetext>Committed r165357: &lt;http://trac.webkit.org/changeset/165357&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>988936</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-03-10 10:22:46 -0700</bug_when>
    <thetext>How were you actually seeing this in DYEB? Any backtrace would do.

reportAPIException is supposed to be used for JSC API exceptions. If we are triggering this frequently, is it on purpose or is it something we are doing in WebCore / Browser level that triggers an exception that we could avoid?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>989557</commentid>
    <comment_count>6</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-03-12 01:16:28 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; How were you actually seeing this in DYEB? Any backtrace would do.

Did we find out what the exception actually was?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>990201</commentid>
    <comment_count>7</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2014-03-13 16:52:24 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; How were you actually seeing this in DYEB? Any backtrace would do.
&gt; 
&gt; Did we find out what the exception actually was?

Nope. :|

Rolled this out in &lt;https://trac.webkit.org/r165575&gt; since now I can&apos;t get an exception to show up anymore.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>226261</attachid>
            <date>2014-03-09 16:37:13 -0700</date>
            <delta_ts>2014-03-09 17:39:59 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-129995.diff</filename>
            <type>text/plain</type>
            <size>1558</size>
            <attacher name="Andreas Kling">kling</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IGNiMDNjN2UuLjk4Y2UyNzIgMTAwNjQ0Ci0tLSBh
L1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL0phdmFTY3JpcHRD
b3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4IEBACisyMDE0LTAzLTA5ICBBbmRyZWFzIEtsaW5n
ICA8YWtsaW5nQGFwcGxlLmNvbT4KKworICAgICAgICBTaG9ydC1jaXJjdWl0IEpTR2xvYmFsT2Jq
ZWN0SW5zcGVjdG9yQ29udHJvbGxlciB3aGVuIG5vdCBpbnNwZWN0aW5nLgorICAgICAgICA8aHR0
cHM6Ly93ZWJraXQub3JnL2IvMTI5OTk1PgorCisgICAgICAgIEFkZCBhbiBlYXJseSByZXR1cm4g
aW4gcmVwb3J0QVBJRXhjZXB0aW9uKCkgd2hlbiB0aGVyZSdzIG5vIGZyb250LWVuZAorICAgICAg
ICBjb25uZWN0ZWQuIFRoaXMgYXZvaWRzIGV4cGVuc2l2ZSBzeW1ib2xpY2F0aW9uIGR1cmluZyBl
eGNlcHRpb25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IGNhbGwKIAogdm9pZCBKU0dsb2JhbE9iamVjdEluc3BlY3RvckNvbnRyb2xs
ZXI6OnJlcG9ydEFQSUV4Y2VwdGlvbihFeGVjU3RhdGUqIGV4ZWMsIEpTVmFsdWUgZXhjZXB0aW9u
KQogeworICAgIGlmICghbV9pbnNwZWN0b3JGcm9udGVuZENoYW5uZWwpCisgICAgICAgIHJldHVy
bjsKKwogICAgIGlmIChpc1Rlcm1pbmF0ZWRFeGVjdXRpb25FeGNlcHRpb24oZXhjZXB0aW9uKSkK
ICAgICAgICAgcmV0dXJuOwogCg==
</data>
<flag name="review"
          id="250482"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>