<?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>148025</bug_id>
          
          <creation_ts>2015-08-14 08:46:46 -0700</creation_ts>
          <short_desc>Web Inspector: add support for running inspector-test.js tests on Windows</short_desc>
          <delta_ts>2026-01-12 09:09:45 -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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          <blocked>137157</blocked>
    
    <blocked>147093</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1117633</commentid>
    <comment_count>0</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-08-14 08:46:46 -0700</bug_when>
    <thetext>We currently do not load Test.html when running tests, leading tests to time out on Windows because the test page does not receive the &quot;Test Inspector Loaded&quot; signal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117634</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-08-14 08:46:59 -0700</bug_when>
    <thetext>&lt;rdar://problem/22287523&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117637</commentid>
    <comment_count>2</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-08-14 08:58:49 -0700</bug_when>
    <thetext>As a starting point, the existing Windows code specifies the page to load inside WebInspectorClient::openInspectorFrontend:

RetainPtr&lt;CFURLRef&gt; htmlURLRef = adoptCF(CFBundleCopyResourceURL(webKitBundle(), CFSTR(&quot;Main&quot;), CFSTR(&quot;html&quot;), CFSTR(&quot;WebInspectorUI&quot;)));

The mac WK1 code does something like this, which could be copied to Windows.

    NSString *pagePath = isUnderTest ? [self inspectorTestPagePath] : [self inspectorPagePath];</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117735</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-08-14 13:15:38 -0700</bug_when>
    <thetext>To clarify, this bug deals with adding support for tests that use `inspector-test.js`. Another bug tracks `protocol-test.js`, since they use different mechanisms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1151201</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-12-23 15:52:16 -0800</bug_when>
    <thetext>It doesn&apos;t look like the &quot;isUnderTest&quot; flag is getting passed to WebKit on Windows. I&apos;ll have to see where that comes from.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1151415</commentid>
    <comment_count>5</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-12-27 08:44:24 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; It doesn&apos;t look like the &quot;isUnderTest&quot; flag is getting passed to WebKit on
&gt; Windows. I&apos;ll have to see where that comes from.

I&apos;m not sure why this isn&apos;t getting propagated.

InspectorController has a m_isUnderTest flag, which is set via Internals::setInspectorIsUnderTest. When a frontend opens, it asks the inspected page&apos;s  inspector controller whether it&apos;s under test. I couldn&apos;t find any obvious problems here by reading the code again, so you probably want to pause in a debugger inside the setter and getter to see what&apos;s going on.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>