<?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>61569</bug_id>
          
          <creation_ts>2011-05-26 15:10:46 -0700</creation_ts>
          <short_desc>Fullscreen content is sometimes obscured by taskbar (which even covers up the &quot;exit fullscreen&quot; button)</short_desc>
          <delta_ts>2011-05-26 15:44:37 -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>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Jeff Miller">jeffm</reporter>
          <assigned_to name="Jeff Miller">jeffm</assigned_to>
          <cc>aroben</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>410900</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:10:46 -0700</bug_when>
    <thetext>From Adam Roben:

To reproduce:

1. Go to http://flexibits.com/fantastical
2. Click on &quot;Watch the screencast&quot;
3. Click the fullscreen button in the video controls to enter fullscreen

Sometimes, the taskbar will appear in front of the fullscreen window. This obscures the video controls, including the &quot;exit fullscreen&quot; button.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410901</commentid>
    <comment_count>1</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:11:39 -0700</bug_when>
    <thetext>This appears to only happen the first time you take a video fullscreen.  If I exit full screen and enter it again, the taskbar is hidden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410902</commentid>
    <comment_count>2</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:12:03 -0700</bug_when>
    <thetext>Going to fullscreen involves:

1) Creating two initially hidden fullscreen windows, specifically MediaPlayerPrivateFullscreenWindow, one for the black &quot;background&quot; and one that contains the content.
2) Calling AnimateWindow() on the background window to animate showing it.
3) Forcing the WebView to repaint (which is synchronous in WK1, async in WK2).
4) When FullScreenController is notified that the WebView has repainted, it uses AnimateWindow() on the real fullscreen window to animate showing it.

When the taskbar is hidden correctly, it appears to hide during step 2, which makes sense since showing the background window is the first time we show a fullscreen window.  This would also seem to rule out any differences between WK1 and WK2, since the first call to AnimateWindow() happens before any web process messaging.

I verified that after the calls to AnimateWindow() in step 2 and 4, the fullscreen window we just animated showing is the active window, which in theory should force Windows to hide the taskbar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410903</commentid>
    <comment_count>3</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:12:15 -0700</bug_when>
    <thetext>I tried replacing the calls to AnimateWindow() with SetWindowPos(), but this bug still occurs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410904</commentid>
    <comment_count>4</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:12:30 -0700</bug_when>
    <thetext>Jer and I found a kind of ugly workaround for this that involves making the fullscreen window a topmost window before animating it. The task bar is still visible when the background window animates in, but it disappears when the real fullscreen window animates in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410905</commentid>
    <comment_count>5</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:12:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/9454315&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410921</commentid>
    <comment_count>6</comment_count>
      <attachid>95056</attachid>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:31:40 -0700</bug_when>
    <thetext>Created attachment 95056
Patch to make fullscreen window a topmost window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410923</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-05-26 15:34:01 -0700</bug_when>
    <thetext>Attachment 95056 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/WebCore/ChangeLog&apos;, u&apos;Source/WebCor...&quot; exit_code: 1

Source/WebCore/platform/graphics/win/FullScreenController.cpp:89:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410927</commentid>
    <comment_count>8</comment_count>
      <attachid>95056</attachid>
    <who name="Steve Falkenburg">sfalken</who>
    <bug_when>2011-05-26 15:36:11 -0700</bug_when>
    <thetext>Comment on attachment 95056
Patch to make fullscreen window a topmost window.

You should change wParam == 0 to !wParam</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410932</commentid>
    <comment_count>9</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:41:06 -0700</bug_when>
    <thetext>I&apos;ll fix this before landing the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410938</commentid>
    <comment_count>10</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-05-26 15:44:37 -0700</bug_when>
    <thetext>Committed &lt;http://trac.webkit.org/changeset/87442&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>95056</attachid>
            <date>2011-05-26 15:31:40 -0700</date>
            <delta_ts>2011-05-26 15:36:11 -0700</delta_ts>
            <desc>Patch to make fullscreen window a topmost window.</desc>
            <filename>MakeFullscreenWindowTopmost.patch</filename>
            <type>text/plain</type>
            <size>2853</size>
            <attacher name="Jeff Miller">jeffm</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDg3NDM4KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTggQEAKKzIwMTEtMDUtMjYgIEplZmYgTWls
bGVyICA8amVmZm1AYXBwbGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09Q
UyEpLgorCisgICAgICAgIEZ1bGxzY3JlZW4gY29udGVudCBpcyBzb21ldGltZXMgb2JzY3VyZWQg
YnkgdGFza2JhciAod2hpY2ggZXZlbiBjb3ZlcnMgdXAgdGhlICJleGl0IGZ1bGxzY3JlZW4iIGJ1
dHRvbikKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTYx
NTY5CisgICAgICAgIDxyZGFyOi8vcHJvYmxlbS85NDU0MzE1PgorCisgICAgICAgIE5vcm1hbGx5
LCB3aGVuIHRoZSBiYWNrZ3JvdW5kIGZ1bGxzY3JlZW4gd2luZG93IGlzIGFuaW1hdGVkIGluLCB0
aGUgV2luZG93cyB0YXNrYmFyIHdpbGwgYmUgaGlkZGVuLCBidXQgdGhpcyBkb2Vzbid0IGFsd2F5
cyB3b3JrIGZvciBzb21lIHJlYXNvbi4KKyAgICAgICAgV29ya2Fyb3VuZCB0aGlzIGlzc3VlIGJ5
IHNld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WFsbHksIHdoZW4gdGhlIGJhY2tncm91bmQgZnVsbHNj
cmVlbiB3aW5kb3cgaXMgYW5pbWF0ZWQgaW4sIHRoZSBXaW5kb3dzIHRhc2tiYXIgd2lsbCBiZSBo
aWRkZW4sIGJ1dCB0aGlzIGRvZXNuJ3QgYWx3YXlzIHdvcmsgZm9yIHNvbWUgcmVhc29uLgorICAg
IC8vIFNldHRpbmcgdGhlIHJlYWwgZnVsbHNjcmVlbiB3aW5kb3cgdG8gYmUgYSB0b3Btb3N0IHdp
bmRvdyB3aWxsIGZvcmNlIHRoZSB0YXNrYmFyIHRvIGJlIGhpZGRlbiB3aGVuIHdlIGNhbGwgQW5p
bWF0ZVdpbmRvdygpIGJlbG93IGlmIGl0IHdhc24ndCBiZWZvcmUuCisgICAgOjpTZXRXaW5kb3dQ
b3MobV9wcml2YXRlLT5tX2Z1bGxTY3JlZW5XaW5kb3ctPmh3bmQoKSwgSFdORF9UT1BNT1NULCAw
LCAwLCAwLCAwLCBTV1BfTk9NT1ZFIHwgU1dQX05PU0laRSB8IFNXUF9OT0FDVElWQVRFKTsKICAg
ICA6OkFuaW1hdGVXaW5kb3cobV9wcml2YXRlLT5tX2Z1bGxTY3JlZW5XaW5kb3ctPmh3bmQoKSwg
a0Z1bGxTY3JlZW5BbmltYXRpb25EdXJhdGlvbiwgQVdfQkxFTkQgfCBBV19BQ1RJVkFURSk7CiB9
CiAK
</data>
<flag name="review"
          id="88473"
          type_id="1"
          status="+"
          setter="sfalken"
    />
          </attachment>
      

    </bug>

</bugzilla>