<?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>135493</bug_id>
          
          <creation_ts>2014-07-31 21:45:54 -0700</creation_ts>
          <short_desc>[Mac] Fullscreen mode for some applications shows only a black screen</short_desc>
          <delta_ts>2014-08-01 10:39:13 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jer.noble</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1026185</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-07-31 21:45:54 -0700</bug_when>
    <thetext>Some WebKit2 client applications that attempt to enter Fullscreen mode end up with a black screen instead of seeing the fullscreen element. You can exit fullscreen mode and return to the full page, but this renders full screen mode unusable for these kinds of clients.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026186</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-07-31 21:51:16 -0700</bug_when>
    <thetext>This turned out to be due to a mismatch between the type of window hosting the fullscreen view. In some applications, the NSWindow in the non-fullscreen mode is marked as InProcess only. The fullscreen NSWindow expects to be hosted in the display server (OutOfProcess).

When this kind of mismatch is encountered, the WK2 layer in the UI process is supposed to relay a message back to the WebProcess application indicating that the window hosting mode has changed. Unfortunately, this step was not happening properly resulting in the failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026187</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-07-31 21:52:31 -0700</bug_when>
    <thetext>&lt;rdar://problem/17628212&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026250</commentid>
    <comment_count>3</comment_count>
      <attachid>235891</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-08-01 09:49:07 -0700</bug_when>
    <thetext>Created attachment 235891
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026254</commentid>
    <comment_count>4</comment_count>
      <attachid>235891</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2014-08-01 10:10:14 -0700</bug_when>
    <thetext>Comment on attachment 235891
Patch

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

r=me, with nit.

&gt; Source/WebKit2/UIProcess/API/mac/WKView.mm:2511
&gt; +        // TODO: This can be removed when https://bugs.webkit.org/show_bug.cgi?id=135509 is resolved.
&gt; +        _data-&gt;_page-&gt;layerHostingModeDidChange();
&gt; +

Nit: this should be a &quot;// FIXME(135509):&quot; comment instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026258</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-08-01 10:19:59 -0700</bug_when>
    <thetext>This patch works around Bug 135509.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026259</commentid>
    <comment_count>6</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2014-08-01 10:27:04 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; This patch works around Bug 135509.

Yeah, so &quot;FIXME(135509): This call becomes unnecessary once 135509 is fixed; remove.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026260</commentid>
    <comment_count>7</comment_count>
      <attachid>235891</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-08-01 10:27:19 -0700</bug_when>
    <thetext>Comment on attachment 235891
Patch

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

&gt;&gt; Source/WebKit2/UIProcess/API/mac/WKView.mm:2511
&gt;&gt; +
&gt; 
&gt; Nit: this should be a &quot;// FIXME(135509):&quot; comment instead.

OK!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026266</commentid>
    <comment_count>8</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-08-01 10:39:13 -0700</bug_when>
    <thetext>Committed r171920: &lt;http://trac.webkit.org/changeset/171920&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>235891</attachid>
            <date>2014-08-01 09:49:07 -0700</date>
            <delta_ts>2014-08-01 10:27:19 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-135493-20140801094854.patch</filename>
            <type>text/plain</type>
            <size>2510</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE3MTkxNykKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDMwIEBACisyM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PT09PT09
PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2ViS2l0Mi9VSVByb2Nlc3MvQVBJL21hYy9XS1ZpZXcu
bW0JKHJldmlzaW9uIDE3MTkxNykKKysrIFNvdXJjZS9XZWJLaXQyL1VJUHJvY2Vzcy9BUEkvbWFj
L1dLVmlldy5tbQkod29ya2luZyBjb3B5KQpAQCAtMjUwNiw2ICsyNTA2LDkgQEAgLSAodm9pZCl2
aWV3RGlkTW92ZVRvV2luZG93CiAKICAgICAgICAgW3NlbGYgX3VwZGF0ZVdpbmRvd0FuZFZpZXdG
cmFtZXNdOwogCisgICAgICAgIC8vIFRPRE86IFRoaXMgY2FuIGJlIHJlbW92ZWQgd2hlbiBodHRw
czovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTM1NTA5IGlzIHJlc29sdmVkLgor
ICAgICAgICBfZGF0YS0+X3BhZ2UtPmxheWVySG9zdGluZ01vZGVEaWRDaGFuZ2UoKTsKKwogICAg
ICAgICBpZiAoIV9kYXRhLT5fZmxhZ3NDaGFuZ2VkRXZlbnRNb25pdG9yKSB7CiAgICAgICAgICAg
ICBfZGF0YS0+X2ZsYWdzQ2hhbmdlZEV2ZW50TW9uaXRvciA9IFtOU0V2ZW50IGFkZExvY2FsTW9u
aXRvckZvckV2ZW50c01hdGNoaW5nTWFzazpOU0ZsYWdzQ2hhbmdlZE1hc2sgaGFuZGxlcjpeKE5T
RXZlbnQgKmZsYWdzQ2hhbmdlZEV2ZW50KSB7CiAgICAgICAgICAgICAgICAgW3NlbGYgX3Bvc3RG
YWtlTW91c2VNb3ZlZEV2ZW50Rm9yRmxhZ3NDaGFuZ2VkRXZlbnQ6ZmxhZ3NDaGFuZ2VkRXZlbnRd
Owo=
</data>
<flag name="review"
          id="260474"
          type_id="1"
          status="+"
          setter="jer.noble"
    />
          </attachment>
      

    </bug>

</bugzilla>