<?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>74709</bug_id>
          
          <creation_ts>2011-12-16 05:29:29 -0800</creation_ts>
          <short_desc>[GTK] Window frame should be 0x0 when the toplevel window is not visible</short_desc>
          <delta_ts>2011-12-16 06:42:02 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>74711</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gustavo</cc>
    
    <cc>pnormand</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>522700</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-16 05:29:29 -0800</bug_when>
    <thetext>When a new view is requested FrameLoader::createWindow() is called with the window features already set. Then, the window size it&apos;s adjusted for the difference between the window size and the page size. The page size is 0x0 because the new view is not yet realized, and the toplevel window containing the view is not shown yet, so the windowFrame we are reporting at this point is the default window size. So we end up adding the default window size to the size already set in the window features object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>522701</commentid>
    <comment_count>1</comment_count>
      <attachid>119604</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-16 05:32:32 -0800</bug_when>
    <thetext>Created attachment 119604
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>522702</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-12-16 05:37:38 -0800</bug_when>
    <thetext>Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>522713</commentid>
    <comment_count>3</comment_count>
      <attachid>119604</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2011-12-16 05:57:04 -0800</bug_when>
    <thetext>Comment on attachment 119604
Patch

How does this impact the WindowProperties test, if at all? Would be good to update it. I had to disable asserting x and y because WebCore was handing us a wrong value for the y coordinate, this sounds like it could have a positive impact for that problem? =)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>522721</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-16 05:59:55 -0800</bug_when>
    <thetext>It doesn&apos;t affect the tests because in the tests the view is never realized beause we don&apos;t use a window, that&apos;s why I haven&apos;t noticed it until I impemented it in MiniBrowser, see bug #74711</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>522723</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-16 06:02:14 -0800</bug_when>
    <thetext>btw, the unit test passes for me with and without the patch, so I don&apos;t know why Webcore reports a different x, y values, because coordintates are not adjusted in FrameLoader::createWindow() only the window size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>522729</commentid>
    <comment_count>6</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2011-12-16 06:09:12 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; btw, the unit test passes for me with and without the patch, so I don&apos;t know why Webcore reports a different x, y values, because coordintates are not adjusted in FrameLoader::createWindow() only the window size.

Even if you add the asserts for x, y? Yeah, I digged quite a bit to try to find where the wrong value of y was coming from, but stopped when I reached WebCore, will have to dig a bit more from there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>522731</commentid>
    <comment_count>7</comment_count>
      <attachid>119604</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2011-12-16 06:10:27 -0800</bug_when>
    <thetext>Comment on attachment 119604
Patch

OK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>522739</commentid>
    <comment_count>8</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-16 06:42:02 -0800</bug_when>
    <thetext>Committed r103067: &lt;http://trac.webkit.org/changeset/103067&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>119604</attachid>
            <date>2011-12-16 05:32:32 -0800</date>
            <delta_ts>2011-12-16 06:10:27 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>wk2-window-frame-invisible.diff</filename>
            <type>text/plain</type>
            <size>1464</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA0YTJjM2JjLi40M2Q4MTBlIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQg
QEAKKzIwMTEtMTItMTYgIENhcmxvcyBHYXJjaWEgQ2FtcG9zICA8Y2dhcmNpYUBpZ2FsaWEuY29t
PgorCisgICAgICAgIFtHVEtdIFdpbmRvdyBmcmFtZ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KQogewogICAgIEdka1JlY3RhbmdsZSBnZW9tZXRyeSA9IHsgMCwg
MCwgMCwgMCB9OwogICAgIEd0a1dpZGdldCogd2luZG93ID0gZ3RrX3dpZGdldF9nZXRfdG9wbGV2
ZWwodG9JbXBsKHBhZ2UpLT52aWV3V2lkZ2V0KCkpOwotICAgIGlmIChndGtfd2lkZ2V0X2lzX3Rv
cGxldmVsKHdpbmRvdykpIHsKKyAgICBpZiAoZ3RrX3dpZGdldF9pc190b3BsZXZlbCh3aW5kb3cp
ICYmIGd0a193aWRnZXRfZ2V0X3Zpc2libGUod2luZG93KSkgewogICAgICAgICBndGtfd2luZG93
X2dldF9wb3NpdGlvbihHVEtfV0lORE9XKHdpbmRvdyksICZnZW9tZXRyeS54LCAmZ2VvbWV0cnku
eSk7CiAgICAgICAgIGd0a193aW5kb3dfZ2V0X3NpemUoR1RLX1dJTkRPVyh3aW5kb3cpLCAmZ2Vv
bWV0cnkud2lkdGgsICZnZW9tZXRyeS5oZWlnaHQpOwogICAgIH0K
</data>
<flag name="review"
          id="119682"
          type_id="1"
          status="+"
          setter="gustavo"
    />
          </attachment>
      

    </bug>

</bugzilla>