<?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>206936</bug_id>
          
          <creation_ts>2020-01-29 08:20:30 -0800</creation_ts>
          <short_desc>REGRESSION: ( r254835 ) [ Mac WK2 ] inspector/heap/getRemoteObject.html is a flaky crash</short_desc>
          <delta_ts>2020-06-04 13:28:15 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>206903</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=212776</see_also>
          <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="Truitt Savell">tsavell</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1612466</commentid>
    <comment_count>0</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2020-01-29 08:20:30 -0800</bug_when>
    <thetext>inspector/heap/getRemoteObject.html

This test was reintroduced in https://trac.webkit.org/changeset/254835/webkit

and is still crashing often and interfering with EWS

history:
https://results.webkit.org/?suite=layout-tests&amp;test=inspector%2Fheap%2FgetRemoteObject.html

Crash:
No crash log found for com.apple.WebKit.WebContent.Development:99264.

stdout:

stderr:
Error when calling &apos;injectModule&apos; for &apos;CommandLineAPI&apos;: SecurityError: Blocked a frame with origin &quot;http://localhost:8800&quot; from accessing a cross-origin frame. Protocols, domains, and ports must match. (26:79)
//# sourceURL=__InjectedScript_CommandLineAPIModuleSource.js
(function(InjectedScriptHost,inspectedGlobalObject,injectedScriptId,injectedScript,{RemoteObject,CommandLineAPI},CommandLineAPIHost){injectedScript._inspectObject=function(object){if(arguments.length===0)
return;let objectId=RemoteObject.create(object);let hints={};switch(RemoteObject.describe(object)){case&quot;Database&quot;:var databaseId=CommandLineAPIHost.databaseId(object);if(databaseId)
hints.databaseId=databaseId;break;case&quot;Storage&quot;:var storageId=CommandLineAPIHost.storageId(object);if(storageId)
hints.domStorageId=InjectedScriptHost.evaluate(&quot;(&quot;+storageId+&quot;)&quot;);break;}
CommandLineAPIHost.inspect(objectId,hints);};CommandLineAPI.getters[&quot;0&quot;]=function(){return CommandLineAPIHost.inspectedObject();};CommandLineAPI.methods[&quot;copy&quot;]=function(object){let string=null;let subtype=RemoteObject.subtype(object);if(subtype===&quot;node&quot;)
string=object.outerHTML;else if(subtype===&quot;regexp&quot;)
string=&quot;&quot;+object;else if(injectedScript.isPrimitiveValue(object))
string=&quot;&quot;+object;else if(typeof object===&quot;symbol&quot;)
string=inspectedGlobalObject.String(object);else if(typeof object===&quot;function&quot;)
string=&quot;&quot;+object;else{try{string=inspectedGlobalObject.JSON.stringify(object,null,&quot;  &quot;);}catch{string=&quot;&quot;+object;}}
CommandLineAPIHost.copyText(string);};CommandLineAPI.methods[&quot;getEventListeners&quot;]=function(target){return CommandLineAPIHost.getEventListeners(target);};function normalizeEventTypes(types){if(types===undefined)
types=[&quot;mouse&quot;,&quot;key&quot;,&quot;touch&quot;,&quot;control&quot;,&quot;abort&quot;,&quot;blur&quot;,&quot;change&quot;,&quot;devicemotion&quot;,&quot;deviceorientation&quot;,&quot;error&quot;,&quot;focus&quot;,&quot;load&quot;,&quot;reset&quot;,&quot;resize&quot;,&quot;scroll&quot;,&quot;search&quot;,&quot;select&quot;,&quot;submit&quot;,&quot;unload&quot;];else if(typeof types===&quot;string&quot;)
types=[types];let result=[];for(let i=0;i&lt;types.length;i++){if(types[i]===&quot;mouse&quot;)
result.push(&quot;click&quot;,&quot;dblclick&quot;,&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseout&quot;,&quot;mouseover&quot;,&quot;mouseup&quot;,&quot;mousewheel&quot;);else if(types[i]===&quot;key&quot;)
result.push(&quot;keydown&quot;,&quot;keypress&quot;,&quot;keyup&quot;,&quot;textInput&quot;);else if(types[i]===&quot;touch&quot;)
result.push(&quot;touchcancel&quot;,&quot;touchend&quot;,&quot;touchmove&quot;,&quot;touchstart&quot;);else if(types[i]===&quot;control&quot;)
result.push(&quot;blur&quot;,&quot;change&quot;,&quot;focus&quot;,&quot;reset&quot;,&quot;resize&quot;,&quot;scroll&quot;,&quot;select&quot;,&quot;submit&quot;,&quot;zoom&quot;);else
result.push(types[i]);}
return result;}
function logEvent(event)
{inspectedGlobalObject.console.log(event.type,event);}
CommandLineAPI.methods[&quot;monitorEvents&quot;]=function(object,types){if(!object||!object.addEventListener||!object.removeEventListener)
return;types=normalizeEventTypes(types);for(let i=0;i&lt;types.length;++i){object.removeEventListener(types[i],logEvent,false);object.addEventListener(types[i],logEvent,false);}};CommandLineAPI.methods[&quot;unmonitorEvents&quot;]=function(object,types){if(!object||!object.addEventListener||!object.removeEventListener)
return;types=normalizeEventTypes(types);for(let i=0;i&lt;types.length;++i)
object.removeEventListener(types[i],logEvent,false);};if(inspectedGlobalObject.document&amp;&amp;inspectedGlobalObject.Node){function canQuerySelectorOnNode(node){return node&amp;&amp;InjectedScriptHost.subtype(node)===&quot;node&quot;&amp;&amp;(node.nodeType===inspectedGlobalObject.Node.ELEMENT_NODE||node.nodeType===inspectedGlobalObject.Node.DOCUMENT_NODE||node.nodeType===inspectedGlobalObject.Node.DOCUMENT_FRAGMENT_NODE);}
CommandLineAPI.methods[&quot;$&quot;]=function(selector,start){if(canQuerySelectorOnNode(start))
return start.querySelector(selector);let result=inspectedGlobalObject.document.querySelector(selector);if(result)
return result;if(selector&amp;&amp;selector[0]!==&quot;#&quot;){result=inspectedGlobalObject.document.getElementById(selector);if(result){inspectedGlobalObject.console.warn(&quot;The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $(\&quot;#%s\&quot;)&quot;,selector);return null;}}
return result;};CommandLineAPI.methods[&quot;$$&quot;]=function(selector,start){if(canQuerySelectorOnNode(start))
return inspectedGlobalObject.Array.from(start.querySelectorAll(selector));return inspectedGlobalObject.Array.from(inspectedGlobalObject.document.querySelectorAll(selector));};CommandLineAPI.methods[&quot;$x&quot;]=function(xpath,context){let doc=(context&amp;&amp;context.ownerDocument)||inspectedGlobalObject.document;let result=doc.evaluate(xpath,context||doc,null,inspectedGlobalObject.XPathResult.ANY_TYPE,null);switch(result.resultType){case inspectedGlobalObject.XPathResult.NUMBER_TYPE:return result.numberValue;case inspectedGlobalObject.XPathResult.STRING_TYPE:return result.stringValue;case inspectedGlobalObject.XPathResult.BOOLEAN_TYPE:return result.booleanValue;}
let nodes=[];let node=null;while(node=result.iterateNext())
nodes.push(node);return nodes;};}
for(let name in CommandLineAPI.methods)
CommandLineAPI.methods[name].toString=function(){return&quot;function &quot;+name+&quot;() { [Command Line API] }&quot;;};})</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612469</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-29 08:20:48 -0800</bug_when>
    <thetext>&lt;rdar://problem/58991945&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612603</commentid>
    <comment_count>2</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2020-01-29 12:13:36 -0800</bug_when>
    <thetext>I&apos;ve run over 1000 iterations of this, including other tests randomly to see if it&apos;s a bad state issue, and am unable to reproduce this locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612752</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-29 16:27:37 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 206903 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>