<?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>139307</bug_id>
          
          <creation_ts>2014-12-05 12:13:44 -0800</creation_ts>
          <short_desc>Web Inspector: Hide Compositing Borders Button if backend returns an error that it is unsupported</short_desc>
          <delta_ts>2014-12-10 15:30:54 -0800</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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1052796</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-12-05 12:13:44 -0800</bug_when>
    <thetext>* SUMMARY
Hide Compositing Borders Button if backend returns an error that it is unsupported.

With augmentative agents, some protocol methods exist in the BackendCommands but may be unsupported by the backend.

For now, somethings can just respond as &quot;unsupported&quot; and we can update the UI appropriately. Things like CompositingBorders where we always send a request.

We may need to look into an alternative solution since we don&apos;t want an &quot;isSupported&quot; for every operation. This is just easy since we always make the request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1052797</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-12-05 12:14:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/19159939&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1052825</commentid>
    <comment_count>2</comment_count>
      <attachid>242655</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-12-05 13:25:14 -0800</bug_when>
    <thetext>Created attachment 242655
[PATCH] Proposed Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1053953</commentid>
    <comment_count>3</comment_count>
      <attachid>242655</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2014-12-09 14:44:02 -0800</bug_when>
    <thetext>Comment on attachment 242655
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=242655&amp;action=review

&gt; Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:450
&gt; +            if (error === &quot;unsupported&quot;)
&gt; +                button.enabled = false;

Is this really a one-shot? I would have expected this to say:

    button.enabled = error !== &quot;unsupported&quot;;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1053965</commentid>
    <comment_count>4</comment_count>
      <attachid>242655</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-12-09 15:12:22 -0800</bug_when>
    <thetext>Comment on attachment 242655
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=242655&amp;action=review

&gt;&gt; Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:450
&gt;&gt; +                button.enabled = false;
&gt; 
&gt; Is this really a one-shot? I would have expected this to say:
&gt; 
&gt;     button.enabled = error !== &quot;unsupported&quot;;

You&apos;re right, it isn&apos;t exactly a one-shot. It would happen each time the DOMTreeContentView is shown. I&apos;ll take your suggestion, this is not performance sensitive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1054324</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-12-10 15:30:54 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/177108</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>242655</attachid>
            <date>2014-12-05 13:25:14 -0800</date>
            <delta_ts>2014-12-09 15:12:22 -0800</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>unsuported-1.patch</filename>
            <type>text/plain</type>
            <size>1481</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2Vi
SW5zcGVjdG9yVUkvQ2hhbmdlTG9nCmluZGV4IDIyYTQ4OTMuLmE4Y2ExMzQgMTAwNjQ0Ci0tLSBh
L1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkluc3BlY3Rv
clVJL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDE0LTEyLTA1ICBKb3NlcGggUGVjb3Jh
cm8gIDxwZWNvcmFyb0BhcHBsZS5jb20+CisKKyAgICAgICAgV2ViIEluc3BlY3RvcjogSGlkZSBD
b21wb3NpdGluZyBCb3JkZXJzIEJ1dHRvbiBpZiBiYWNrZW5kIHJldHVybnMgYW4gZXJyb3IgdGhh
dCBpdCBpcyB1bnN1cHBvcnRlZAorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9MTM5MzA3CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISku
CisKKyAgICAgICAgKiBVc2VySW50ZXJmYWNlL1ZpZXdzL0RPTVRyZWVDb250ZW50Vmlldy5qczoK
KyAgICAgICAgKFdlYkluc3BlY3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gZXJyb3IgPyBmYWxzZSA6IGNvbXBvc2l0aW5nQm9yZGVyc1Zp
c2libGU7CisgICAgICAgICAgICBpZiAoZXJyb3IgPT09ICJ1bnN1cHBvcnRlZCIpCisgICAgICAg
ICAgICAgICAgYnV0dG9uLmVuYWJsZWQgPSBmYWxzZTsKICAgICAgICAgfSk7CiAgICAgfSwKIAo=
</data>
<flag name="review"
          id="267525"
          type_id="1"
          status="+"
          setter="darin"
    />
    <flag name="commit-queue"
          id="267526"
          type_id="3"
          status="-"
          setter="joepeck"
    />
          </attachment>
      

    </bug>

</bugzilla>