<?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>184081</bug_id>
          
          <creation_ts>2018-03-28 06:34:44 -0700</creation_ts>
          <short_desc>Fails to build webkitgtk+ after git-svn-id: http://svn.webkit.org/repository/webkit/trunk@229877 268f45cc-cd09-0410-ab3c-d52691b4dbfc</short_desc>
          <delta_ts>2018-03-28 10:01:23 -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>WebKitGTK</component>
          <version>WebKit Local 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>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Milan Crha">mcrha</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1409830</commentid>
    <comment_count>0</comment_count>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2018-03-28 06:34:44 -0700</bug_when>
    <thetext>After commit 700788272e59413f03b1ba7ea4e896f16fe78a1b, which references itself as:

    Unreviewed, silence unused variable warning
    
    Patch by Michael Catanzaro &lt;mcatanzaro@igalia.com&gt; on 2018-03-22
    
    * UIProcess/WebPageProxy.cpp:
    (WebKit::WebPageProxy::decidePolicyForNavigationAction):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@229877 268f45cc-cd09-0410-ab3c-d52691b4dbfc

fails to build here. The only code change there was:

            return receivedPolicyDecision(PolicyAction::Ignore, *frame, listenerID, &amp;m_navigationState-&gt;navigation(newNavigationID), { });
  +#else
  +    UNUSED(newNavigationID);
    #endif

where the &apos;UNUSED&apos; is actually meant to be &apos;UNUSED_PARAM&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409849</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-03-28 08:15:51 -0700</bug_when>
    <thetext>Yes.

And yet, what I don&apos;t understand is: why does it build for me? Why does it build for all the bots? ENABLE(CONTENT_FILTERING) is always disabled for GTK. I&apos;ll try to investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409860</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-03-28 09:10:52 -0700</bug_when>
    <thetext>Well this is weird. When I change it to:

#if ENABLE(CONTENT_FILTERING)
    if (frame-&gt;didHandleContentFilterUnblockNavigation(request))
        return receivedPolicyDecision(PolicyAction::Ignore, *frame, listenerID, &amp;m_navigationState-&gt;navigation(newNavigationID), { });
#else
aoeunhtsaoeuhtns;
    UNUSED(newNavigationID);
#endif

then it fails to build, so the file is definitely compiled without ENABLE(CONTENT_FILTERING). I don&apos;t know why it doesn&apos;t work for you, and I don&apos;t know where UNUSED() is defined. Anyway, I clearly meant UNUSED_PARAM(), so I&apos;ll just change it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409884</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-03-28 09:53:01 -0700</bug_when>
    <thetext>Committed r230032: &lt;https://trac.webkit.org/changeset/230032&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409887</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-03-28 09:55:21 -0700</bug_when>
    <thetext>It&apos;s defined here:

bmalloc/bmalloc/BAssert.h:#define UNUSED(x) ((void)x)

Were you building with -DUSE_SYSTEM_MALLOC=ON? :)

Anyway, clearly a mistake, but it *did* fix the unused parameter warning!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409894</commentid>
    <comment_count>5</comment_count>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2018-03-28 10:01:23 -0700</bug_when>
    <thetext>True, -DUSE_SYSTEM_MALLOC=ON is one of my arguments to CMake.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>