<?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>135732</bug_id>
          
          <creation_ts>2014-08-07 15:48:58 -0700</creation_ts>
          <short_desc>Web Inspector: run-webkit-tests --debug loads inspector resources from the Release bundle</short_desc>
          <delta_ts>2015-07-18 12:50:33 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Brian Burg">burg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>mattbaker</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1027674</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-08-07 15:48:58 -0700</bug_when>
    <thetext>This may be the cause of many debug test failures, if it&apos;s not just my machine acting up.

To reproduce (both WK1 and WK2):

1. Run LayoutTests/inspector/test-harness-trivially-works.html in Release.
2. Add some frivolous logging to the test.
3. Rebuild only the release build.
4. The logging appears when running tests for both debug and release builds.


The relevant code for the WK2 path is in WebInspectorProxy.mm:

String WebInspectorProxy::inspectorTestPageURL() const
{
    // Call the soft link framework function to dlopen it, then [NSBundle bundleWithIdentifier:] will work.
    WebInspectorUILibrary();

    NSString *path = [[NSBundle bundleWithIdentifier:@&quot;com.apple.WebInspectorUI&quot;] pathForResource:@&quot;Test&quot; ofType:@&quot;html&quot;];

    // We might not have a Test.html in Production builds.
    if (!path)
        return String();

    return [[NSURL fileURLWithPath:path] absoluteString];
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027675</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-08-07 15:49:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/17952129&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027676</commentid>
    <comment_count>2</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-08-07 15:54:20 -0700</bug_when>
    <thetext>It&apos;s also possible that run-webkit-tests is showing stale results in the results screen, somehow. Which would make it seem that it is loading files from the wrong build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>