<?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>212831</bug_id>
          
          <creation_ts>2020-06-05 09:52:12 -0700</creation_ts>
          <short_desc>WebCore: Guard variable declarations on ENABLE(VIDEO_PRESENTATION_MODE)</short_desc>
          <delta_ts>2020-06-05 14:22:00 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=212718</see_also>
          <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="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>changseok</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>jer.noble</cc>
    
    <cc>peng.liu6</cc>
    
    <cc>philipj</cc>
    
    <cc>sergio</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1659633</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-06-05 09:52:12 -0700</bug_when>
    <thetext>m_isEnteringOrExitingPictureInPicture and m_isWaitingForPictureInPictureWindowFrame are only used if VIDEO_PRESENTATION_MODE is enabled, no reason to declare these variable on platforms with VIDEO_PRESENTATION_MODE disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659634</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-05 09:52:35 -0700</bug_when>
    <thetext>&lt;rdar://problem/64033028&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659659</commentid>
    <comment_count>2</comment_count>
      <attachid>401166</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-06-05 10:00:00 -0700</bug_when>
    <thetext>Created attachment 401166
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659678</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2020-06-05 10:29:01 -0700</bug_when>
    <thetext>IMO you can land things like this as &quot;build fixes&quot; without review if you want.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659686</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-06-05 10:38:06 -0700</bug_when>
    <thetext>(In reply to Tim Horton from comment #3)
&gt; IMO you can land things like this as &quot;build fixes&quot; without review if you
&gt; want.

There aren&apos;t many this trivial, I&apos;m trying separate these into small enough changes that roll-outs for breaking other builds won&apos;t be too painful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659693</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-06-05 10:56:02 -0700</bug_when>
    <thetext>Committed r262633: &lt;https://trac.webkit.org/changeset/262633&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 401166.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659694</commentid>
    <comment_count>6</comment_count>
      <attachid>401166</attachid>
    <who name="Peng Liu">peng.liu6</who>
    <bug_when>2020-06-05 11:00:18 -0700</bug_when>
    <thetext>Comment on attachment 401166
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=401166&amp;action=review

&gt; Source/WebCore/html/HTMLVideoElement.h:136
&gt;      bool m_isChangingPresentationMode { false };

And this variable as well :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659784</commentid>
    <comment_count>7</comment_count>
      <attachid>401166</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-06-05 14:07:38 -0700</bug_when>
    <thetext>Comment on attachment 401166
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=401166&amp;action=review

&gt;&gt; Source/WebCore/html/HTMLVideoElement.h:136
&gt;&gt;      bool m_isChangingPresentationMode { false };
&gt; 
&gt; And this variable as well :-)

Actually, m_isChangingPresentationMode is used in webkitDisplayingFullscreen, which isn&apos;t guarded by ENABLE(VIDEO_PRESENTATION_MODE).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659787</commentid>
    <comment_count>8</comment_count>
      <attachid>401166</attachid>
    <who name="Peng Liu">peng.liu6</who>
    <bug_when>2020-06-05 14:22:00 -0700</bug_when>
    <thetext>Comment on attachment 401166
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=401166&amp;action=review

&gt;&gt;&gt; Source/WebCore/html/HTMLVideoElement.h:136
&gt;&gt;&gt;      bool m_isChangingPresentationMode { false };
&gt;&gt; 
&gt;&gt; And this variable as well :-)
&gt; 
&gt; Actually, m_isChangingPresentationMode is used in webkitDisplayingFullscreen, which isn&apos;t guarded by ENABLE(VIDEO_PRESENTATION_MODE).

Oh right!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>401166</attachid>
            <date>2020-06-05 10:00:00 -0700</date>
            <delta_ts>2020-06-05 10:56:03 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-212831-20200605095959.patch</filename>
            <type>text/plain</type>
            <size>1373</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDI2MjYyNSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDIwLTA2LTA1ICBKb25hdGhh
biBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNvbT4KKworICAgICAgICBXZWJDb3JlOiBHdWFyZCB2
YXJpYWJsZSBkZWNsYXJhdGlvbnMgb24gRU5BQkxFKFZJREVPX1BSRVNFTlRBVElPTl9NT0RFKQor
ICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjEyODMxCisg
ICAgICAgIDxyZGFyOi8vcHJvYmxlbS82NDAzMzAyOD4KKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBObyBuZXcgdGVzdHMsIG5vIGJlaGF2aW9yIGNoYW5n
ZWQuCisKKyAgICAgICAgKiBodG1sL0hUTUxWaWRlb0VsZW1lbnQuaDoKKwogMjAyMC0wNi0wNSAg
WW91ZW5uIEZhYmxldCAgPHlvdWVubkBhcHBsZS5jb20+CiAKICAgICAgICAgW0NvY29hXSBVc2Ug
QVZBc3NldFdyaXRlckRlbGVnYXRlIHRvIGltcGxlbWVudCBNZWRpYVJlY29yZGVyCkluZGV4OiBT
b3VyY2UvV2ViQ29yZS9odG1sL0hUTUxWaWRlb0VsZW1lbnQuaAo9PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3Vy
Y2UvV2ViQ29yZS9odG1sL0hUTUxWaWRlb0VsZW1lbnQuaAkocmV2aXNpb24gMjYyNTk0KQorKysg
U291cmNlL1dlYkNvcmUvaHRtbC9IVE1MVmlkZW9FbGVtZW50LmgJKHdvcmtpbmcgY29weSkKQEAg
LTEzMywxMCArMTMzLDEzIEBAIHByaXZhdGU6CiAKICAgICB1bnNpZ25lZCBtX2xhc3RSZXBvcnRl
ZFZpZGVvV2lkdGggeyAwIH07CiAgICAgdW5zaWduZWQgbV9sYXN0UmVwb3J0ZWRWaWRlb0hlaWdo
dCB7IDAgfTsKLQogICAgIGJvb2wgbV9pc0NoYW5naW5nUHJlc2VudGF0aW9uTW9kZSB7IGZhbHNl
IH07CisKKyNpZiBFTkFCTEUoVklERU9fUFJFU0VOVEFUSU9OX01PREUpCiAgICAgYm9vbCBtX2lz
RW50ZXJpbmdPckV4aXRpbmdQaWN0dXJlSW5QaWN0dXJlIHsgZmFsc2UgfTsKICAgICBib29sIG1f
aXNXYWl0aW5nRm9yUGljdHVyZUluUGljdHVyZVdpbmRvd0ZyYW1lIHsgZmFsc2UgfTsKKyNlbmRp
ZgorCiAjaWYgRU5BQkxFKFBJQ1RVUkVfSU5fUElDVFVSRV9BUEkpCiAgICAgUGljdHVyZUluUGlj
dHVyZU9ic2VydmVyKiBtX3BpY3R1cmVJblBpY3R1cmVPYnNlcnZlciB7IG51bGxwdHIgfTsKICNl
bmRpZgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>