<?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>74523</bug_id>
          
          <creation_ts>2011-12-14 11:01:39 -0800</creation_ts>
          <short_desc>[GTK] Page size should be 0,0 when view widget is not realized</short_desc>
          <delta_ts>2011-12-14 11:38:30 -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>
          
          
          <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>521086</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-14 11:01:39 -0800</bug_when>
    <thetext>For consistency with WebCore that uses 0,0 as empty size. GTK+ initializes the widget allocation as -1, -1, 1, 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521092</commentid>
    <comment_count>1</comment_count>
      <attachid>119254</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-14 11:04:37 -0800</bug_when>
    <thetext>Created attachment 119254
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521098</commentid>
    <comment_count>2</comment_count>
      <attachid>119254</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-12-14 11:08:17 -0800</bug_when>
    <thetext>Comment on attachment 119254
Patch

How did you notice this? Did it cause a bug somewhere?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521106</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-12-14 11:12:42 -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>521121</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-14 11:24:22 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 119254 [details])
&gt; How did you notice this? Did it cause a bug somewhere?

Writing the unit test for the window properties patch. 

I do someting like window.open(&apos;&apos;, &apos;&apos;, &apos;left=10,top=20,width=800,height=600&apos;);

and I get 10, 20, 799, 599 from WindowFeatures, because in FrameLoader::createWindow() the window size is adjusted for the difference between the window size and the page size:

if (features.widthSet)
        windowRect.setWidth(features.width + (windowRect.width() - pageSize.width()));
if (features.heightSet)
        windowRect.setHeight(features.height + (windowRect.height() - pageSize.height()));

initially the window rect is 0, 0 and page size is 1, 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521139</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-12-14 11:38:30 -0800</bug_when>
    <thetext>Committed r102804: &lt;http://trac.webkit.org/changeset/102804&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>119254</attachid>
            <date>2011-12-14 11:04:37 -0800</date>
            <delta_ts>2011-12-14 11:30:00 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>wk2-page-size.diff</filename>
            <type>text/plain</type>
            <size>1440</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCBmZWE2ZTkzLi4wNjliMzU0IDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcg
QEAKKzIwMTEtMTItMTQgIENhcmxvcyBHYXJjaWEgQ2FtcG9zICA8Y2dhcmNpYUBpZ2FsaWEuY29t
PgorCisgICAgICAgIFtHVEtdIFBhZ2Ugc2l6ZSBzaG91bGQgYmUgMCwwIHdoZW4gdmlldyB3aWRn
ZXQgaXMgbm90IHJlYWxpemVkCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD03NDUyMworCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgor
CisgICAgICAgIFdlIGN1cnJlbnRseSByZXR1cm4gMSwxIGJlY2F1c2UgR1RLKyBpbml0aWFsaXpl
cyB3aWRnZXQgYWxsb2NhdGlvbgorICAgICAgICBhcyAtMSwtMSwxLDEuCisKKyAgICAgICAgKiBV
SVByb2Nlc3MvQVBJL2d0ay9QYWdlQ2xpZW50SW1wbC5jcHA6CisgICAgICAgIChXZWJLaXQ6OlBh
Z2VDbGllbnRJbXBsOjp2aWV3U2l6ZSk6IENoZWNrIHdoZXRoZXIgd2lkZ2V0IGlzCisgICAgICAg
IHJlYWxpemVkIGFuZCByZXR1cm4gSW50U2l6ZSgpIGluIHRoYXQgY2FzZS4KKwogMjAxMS0xMi0x
MyAgQ2FybG9zIEdhcmNpYSBDYW1wb3MgIDxjZ2FyY2lhQGlnYWxpYS5jb20+CiAKICAgICAgICAg
W0dUS10gQWRkIHN1cHBvcnQgZm9yIGphdmFzY3JpcHQgZGlhbG9ncyBpbiBXZWJLaXQyIEdUSysg
QVBJCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9VSVByb2Nlc3MvQVBJL2d0ay9QYWdlQ2xp
ZW50SW1wbC5jcHAgYi9Tb3VyY2UvV2ViS2l0Mi9VSVByb2Nlc3MvQVBJL2d0ay9QYWdlQ2xpZW50
SW1wbC5jcHAKaW5kZXggMGU0MzI1OS4uYzNhZDNmNyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktp
dDIvVUlQcm9jZXNzL0FQSS9ndGsvUGFnZUNsaWVudEltcGwuY3BwCisrKyBiL1NvdXJjZS9XZWJL
aXQyL1VJUHJvY2Vzcy9BUEkvZ3RrL1BhZ2VDbGllbnRJbXBsLmNwcApAQCAtODcsNiArODcsOCBA
QCB2b2lkIFBhZ2VDbGllbnRJbXBsOjpzY3JvbGxWaWV3KGNvbnN0IFdlYkNvcmU6OkludFJlY3Qm
IHNjcm9sbFJlY3QsIGNvbnN0IFdlYkNvcgogCiBXZWJDb3JlOjpJbnRTaXplIFBhZ2VDbGllbnRJ
bXBsOjp2aWV3U2l6ZSgpCiB7CisgICAgaWYgKCFndGtfd2lkZ2V0X2dldF9yZWFsaXplZChtX3Zp
ZXdXaWRnZXQpKQorICAgICAgICByZXR1cm4gSW50U2l6ZSgpOwogICAgIEd0a0FsbG9jYXRpb24g
YWxsb2NhdGlvbjsKICAgICBndGtfd2lkZ2V0X2dldF9hbGxvY2F0aW9uKG1fdmlld1dpZGdldCwg
JmFsbG9jYXRpb24pOwogICAgIHJldHVybiBJbnRTaXplKGFsbG9jYXRpb24ud2lkdGgsIGFsbG9j
YXRpb24uaGVpZ2h0KTsK
</data>
<flag name="review"
          id="119209"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>