<?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>80990</bug_id>
          
          <creation_ts>2012-03-13 08:31:05 -0700</creation_ts>
          <short_desc>ENABLE_INSPECTOR flag is unavailable in .idl files</short_desc>
          <delta_ts>2014-12-17 16:37: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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Max Vujovic">mvujovic</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>burg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>577344</commentid>
    <comment_count>0</comment_count>
    <who name="Max Vujovic">mvujovic</who>
    <bug_when>2012-03-13 08:31:05 -0700</bug_when>
    <thetext>In Internals.idl (under WebCore), when I add a block like this:

#if defined(ENABLE_INSPECTOR) &amp;&amp; ENABLE_INSPECTOR
    ...
#endif

The block is never entered, even with a build that includes the inspector (e.g. running &quot;Tools/Scripts/build-webkit&quot;). The block should be entered.

Interestingly, in a .cpp or .h file, a block like the following works properly:

#if ENABLE(INSPECTOR)
    ...
#endif

So far, it seems the workaround has been to use &quot;#if ENABLE(INSPECTOR)&quot; blocks within the bodies of inspector-related functions, such as:

void InternalSettings::setInspectorResourcesDataSizeLimits(int maximumResourcesContentSize, int maximumSingleResourceContentSize, ExceptionCode&amp; ec)
{
#if ENABLE(INSPECTOR)
    if (!page() || !page()-&gt;inspectorController()) {
        ec = INVALID_ACCESS_ERR;
        return;
    }
    page()-&gt;inspectorController()-&gt;setResourcesDataSizeLimitsFromInternals(maximumResourcesContentSize, maximumSingleResourceContentSize);
#else
    UNUSED_PARAM(maximumResourcesContentSize);
    UNUSED_PARAM(maximumSingleResourceContentSize);
    UNUSED_PARAM(ec);
#endif
}

This works, but ideally, we&apos;d like the &quot;setInspectorResourcesDataSizeLimits&quot; method to be undefined when the inspector isn&apos;t present by wrapping it with an #if/#endif block in the .idl file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1056592</commentid>
    <comment_count>1</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-12-17 16:37:54 -0800</bug_when>
    <thetext>Use Conditional=INSPECTOR.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>