<?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>190922</bug_id>
          
          <creation_ts>2018-10-25 15:46:15 -0700</creation_ts>
          <short_desc>JSContext Inspector: Broken frontend, DOMAgent is used but does not exist</short_desc>
          <delta_ts>2018-10-25 16:55:21 -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>WebKit 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>commit-queue</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>joepeck</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1472208</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2018-10-25 15:46:15 -0700</bug_when>
    <thetext>JSContext Inspector: Broken frontend, DOMAgent is used but does not exist

Steps to Reproduce:
1. Attempt to inspect a JSContext (jsc --remote-debug)
  =&gt; Inspector does not show, early error

[Error] ReferenceError: Can&apos;t find variable: DOMAgent
	requestDocument (Main.js:23726)
	ensureDocument (Main.js:23728)
	DOMManager (Main.js:23716:340)
	loaded (Main.js:25221:295)
	initialize (Main.js:25693:92)
	Global Code (Main.html:43)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472211</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-10-25 15:46:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/45569827&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472214</commentid>
    <comment_count>2</comment_count>
      <attachid>353120</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2018-10-25 15:52:55 -0700</bug_when>
    <thetext>Created attachment 353120
[PATCH] Proposed Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472215</commentid>
    <comment_count>3</comment_count>
      <attachid>353120</attachid>
    <who name="Devin Rousso">hi</who>
    <bug_when>2018-10-25 15:55:46 -0700</bug_when>
    <thetext>Comment on attachment 353120
[PATCH] Proposed Fix

r=me

While I do think this is a valid solution, I think it would better to wrap the `ensureDocument` call in a similar if (or even introduce a `WI.DOMManager.supported()` like some other managers).  I&apos;d prefer to check for support at the construction point rather than right before the call.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472246</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2018-10-25 16:30:28 -0700</bug_when>
    <thetext>(In reply to Devin Rousso from comment #3)
&gt; Comment on attachment 353120 [details]
&gt; [PATCH] Proposed Fix
&gt; 
&gt; r=me
&gt; 
&gt; While I do think this is a valid solution, I think it would better to wrap
&gt; the `ensureDocument` call in a similar if (or even introduce a
&gt; `WI.DOMManager.supported()` like some other managers).  I&apos;d prefer to check
&gt; for support at the construction point rather than right before the call.

Yes. In the near future, agent&apos;s won&apos;t be available in Manager construction and things like this will only happen when targets are supported. So this is a simple solution for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472256</commentid>
    <comment_count>5</comment_count>
      <attachid>353120</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-10-25 16:55:20 -0700</bug_when>
    <thetext>Comment on attachment 353120
[PATCH] Proposed Fix

Clearing flags on attachment: 353120

Committed r237435: &lt;https://trac.webkit.org/changeset/237435&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472257</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-10-25 16:55:21 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>353120</attachid>
            <date>2018-10-25 15:52:55 -0700</date>
            <delta_ts>2018-10-25 16:55:20 -0700</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>jscontext-1.patch</filename>
            <type>text/plain</type>
            <size>1419</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2Vi
SW5zcGVjdG9yVUkvQ2hhbmdlTG9nCmluZGV4IDg4MTNkZjU0MzYzLi5mNTU5MDNlODJjMiAxMDA2
NDQKLS0tIGEvU291cmNlL1dlYkluc3BlY3RvclVJL0NoYW5nZUxvZworKysgYi9Tb3VyY2UvV2Vi
SW5zcGVjdG9yVUkvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTgtMTAtMjUgIEpvc2Vw
aCBQZWNvcmFybyAgPHBlY29yYXJvQGFwcGxlLmNvbT4KKworICAgICAgICBKU0NvbnRleHQgSW5z
cGVjdG9yOiBCcm9rZW4gZnJvbnRlbmQsIERPTUFnZW50IGlzIHVzZWQgYnV0IGRvZXMgbm90IGV4
aXN0CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xOTA5
Mj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