<?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>134246</bug_id>
          
          <creation_ts>2014-06-24 03:09:41 -0700</creation_ts>
          <short_desc>REGRESSION(r170235): Remove incorrect ifdef guard</short_desc>
          <delta_ts>2014-06-24 10:48:14 -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>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>
          
          <blocked>133844</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Éva Balázsfalvi">evab.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bunhere</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>enrica</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>ossy</cc>
    
    <cc>sergio</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1017906</commentid>
    <comment_count>0</comment_count>
    <who name="Éva Balázsfalvi">evab.u-szeged</who>
    <bug_when>2014-06-24 03:09:41 -0700</bug_when>
    <thetext>Removr unnecessary #if guard which remained in the code while removing PAGE_VISIBILITY_API compile guard.

&gt; Source/WebKit/mac/WebView/WebView.mm:4328
&gt; #if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING)
&gt;      if (_private-&gt;page)
&gt;          return kit(_private-&gt;page-&gt;visibilityState());
&gt;  #endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017907</commentid>
    <comment_count>1</comment_count>
      <attachid>233692</attachid>
    <who name="Éva Balázsfalvi">evab.u-szeged</who>
    <bug_when>2014-06-24 03:12:46 -0700</bug_when>
    <thetext>Created attachment 233692
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017909</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-06-24 03:23:44 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created an attachment (id=233692) [details]
&gt; Patch

https://bugs.webkit.org/show_bug.cgi?id=133844#c4
&gt; -#if ENABLE(PAGE_VISIBILITY_API) || ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING)
&gt; +#if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING)

I agree, this guard is really unnecessary, &quot;true || FOO&quot; is always true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017910</commentid>
    <comment_count>3</comment_count>
      <attachid>233692</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-06-24 03:24:15 -0700</bug_when>
    <thetext>Comment on attachment 233692
Patch

LGTM, r=me. Thanks for the quick fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017912</commentid>
    <comment_count>4</comment_count>
      <attachid>233692</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-06-24 04:03:07 -0700</bug_when>
    <thetext>Comment on attachment 233692
Patch

Clearing flags on attachment: 233692

Committed r170358: &lt;http://trac.webkit.org/changeset/170358&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017913</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-06-24 04:03:13 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017994</commentid>
    <comment_count>6</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2014-06-24 10:21:27 -0700</bug_when>
    <thetext>This breaks the build for all the platforms that do not enable HIDDEN_PAGE_DOM_TIMER_THROTTLING.
You removed the #ifdef but you left it around the kit function on line 521.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017998</commentid>
    <comment_count>7</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-06-24 10:35:57 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; This breaks the build for all the platforms that do not enable HIDDEN_PAGE_DOM_TIMER_THROTTLING.
&gt; You removed the #ifdef but you left it around the kit function on line 521.

In this case the original guarding was incorrect. This call was guarded with
&quot;#if ENABLE(PAGE_VISIBILITY_API) || ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING)&quot;.
But now there isn&apos;t PAGE_VISIBILITY_API guard, so we need this kit call
unconditionally. Should we remove guards around kit function core?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1018006</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-06-24 10:48:14 -0700</bug_when>
    <thetext>Thanks for the fix landed in https://trac.webkit.org/changeset/170372 .</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>233692</attachid>
            <date>2014-06-24 03:12:46 -0700</date>
            <delta_ts>2014-06-24 04:03:07 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-134246-20140624121224.patch</filename>
            <type>text/plain</type>
            <size>1232</size>
            <attacher name="Éva Balázsfalvi">evab.u-szeged</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTcwMzU2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L21h
Yy9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0L21hYy9DaG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