<?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>27285</bug_id>
          
          <creation_ts>2009-07-14 18:24:05 -0700</creation_ts>
          <short_desc>[Qt] New window created by clicking a link is not visible</short_desc>
          <delta_ts>2009-11-16 09:52:25 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yael">yael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
    
    <cc>vestbo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>131782</commentid>
    <comment_count>0</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2009-07-14 18:24:05 -0700</bug_when>
    <thetext>When clicking a link with a specified target attribute, a new window is created. That new window is not visible though.
This is not a problem when opening a new window from JavaScript.
Loading the following content in QtLauncher can show the problem:

&lt;html&gt;
&lt;body&gt;
&lt;a target=&quot;_blank&quot; href=&quot;#&quot;&gt;click me&lt;/a&gt;&lt;br&gt;
&lt;/body&gt;&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131786</commentid>
    <comment_count>1</comment_count>
      <attachid>32757</attachid>
    <who name="Yael">yael</who>
    <bug_when>2009-07-14 18:32:43 -0700</bug_when>
    <thetext>Created attachment 32757
Force the new window to be visible

This is similar to calling ChromeClientQt::show(), when opening a new window from JavaScript.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131848</commentid>
    <comment_count>2</comment_count>
      <attachid>32757</attachid>
    <who name="Adam Treat">manyoso</who>
    <bug_when>2009-07-15 04:30:19 -0700</bug_when>
    <thetext>Comment on attachment 32757
Force the new window to be visible

I believe this is incorrect.

Arora, which is based on QtWebKit has no problem showing windows when a link is clicked.  In fact, there is a setting in Arora to control the behavior so that opening the &quot;new window&quot; is done in a tab instead.  The QWebPage|QWebFrame::createWindow(...) function is virtual and allows the client application to create the &quot;new window&quot; in the manner that it prefers.  The default implementation does nothing, thus this will have no effect on the default implementation.  It seems that if the client is responsible for constructing the &quot;new window&quot; in the manner that it deems fit, then it can be responsible for showing it too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131896</commentid>
    <comment_count>3</comment_count>
      <attachid>32786</attachid>
    <who name="Yael">yael</who>
    <bug_when>2009-07-15 08:22:13 -0700</bug_when>
    <thetext>Created attachment 32786
Make the change only for QtLauncher

As suggested in comment #2, each client is responsible for showing its own window. Thus moving the change to QtLauncher.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131902</commentid>
    <comment_count>4</comment_count>
      <attachid>32786</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2009-07-15 08:41:22 -0700</bug_when>
    <thetext>Comment on attachment 32786
Make the change only for QtLauncher

r=me, thanks :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131904</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2009-07-15 08:42:09 -0700</bug_when>
    <thetext>Landed in r45913</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164013</commentid>
    <comment_count>6</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2009-11-16 09:52:25 -0800</bug_when>
    <thetext>*** Bug 29598 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>32757</attachid>
            <date>2009-07-14 18:32:43 -0700</date>
            <delta_ts>2009-07-15 08:22:13 -0700</delta_ts>
            <desc>Force the new window to be visible</desc>
            <filename>window.patch</filename>
            <type>text/plain</type>
            <size>1249</size>
            <attacher name="Yael">yael</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9xdC9XZWJDb3JlU3VwcG9ydC9GcmFtZUxvYWRlckNsaWVudFF0LmNwcAo9
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09Ci0tLSBXZWJLaXQvcXQvV2ViQ29yZVN1cHBvcnQvRnJhbWVMb2FkZXJDbGllbnRR
dC5jcHAJKHJldmlzaW9uIDQ1ODYzKQorKysgV2ViS2l0L3F0L1dlYkNvcmVTdXBwb3J0L0ZyYW1l
TG9hZGVyQ2xpZW50UXQuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC04NzMsNiArODczLDggQEAKICAg
ICBRV2ViUGFnZSAqbmV3UGFnZSA9IG1fd2ViRnJhbWUtPnBhZ2UoKS0+Y3JlYXRlV2luZG93KFFX
ZWJQYWdlOjpXZWJCcm93c2VyV2luZG93KTsKICAgICBpZiAoIW5ld1BhZ2UpCiAgICAgICAgIHJl
dHVybiAwOworICAgIGlmIChuZXdQYWdlLT52aWV3KCkpCisgICAgICAgIG5ld1BhZ2UtPnZpZXco
KS0+dG9wTGV2ZWxXaWRnZXQoKS0+c2hvdygpOwogICAgIHJldHVybiBuZXdQYWdlLT5tYWluRnJh
bWUoKS0+ZC0+ZnJhbWU7CiB9CiAKSW5kZXg6IFdlYktpdC9xdC9DaGFuZ2VMb2cKPT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PQotLS0gV2ViS2l0L3F0L0NoYW5nZUxvZwkocmV2aXNpb24gNDU4NjMpCisrKyBXZWJLaXQvcXQv
Q2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMDktMDctMTQgIFlh
ZWwgQWhhcm9uICA8eWFlbC5haGFyb25Abm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD0yNzI4NQorCisgICAgICAgIFdoZW4gb3BlbmluZyBhIG5ldyB3aW5kb3cgYnkg
Y2xpY2tpbmcgb24gYW4gYW5jaG9yIHRhZyB3aXRoIGEgdGFyZ2V0IGF0dHJpYnV0ZSwgdGhhdCBu
ZXcgd2luZG93IGlzIG5vdCAKKyAgICAgICAgdmlzaWJsZS4gVGhlIG5ldyB3aW5kb3cgc2hvdWxk
IGJlIG1hZGUgdmlzaWJsZS4KKworICAgICAgICAqIFdlYkNvcmVTdXBwb3J0L0ZyYW1lTG9hZGVy
Q2xpZW50UXQuY3BwOgorICAgICAgICAoV2ViQ29yZTo6RnJhbWVMb2FkZXJDbGllbnRRdDo6ZGlz
cGF0Y2hDcmVhdGVQYWdlKToKKwogMjAwOS0wNy0xNCAgQWRhbSBUcmVhdCAgPGFkYW0udHJlYXRA
dG9yY2htb2JpbGUuY29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5IFphY2sgUnVzaW4uCg==
</data>
<flag name="review"
          id="17130"
          type_id="1"
          status="-"
          setter="manyoso"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>32786</attachid>
            <date>2009-07-15 08:22:13 -0700</date>
            <delta_ts>2009-07-15 08:41:22 -0700</delta_ts>
            <desc>Make the change only for QtLauncher</desc>
            <filename>window.patch</filename>
            <type>text/plain</type>
            <size>1035</size>
            <attacher name="Yael">yael</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9xdC9RdExhdW5jaGVyL21haW4uY3BwCj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktp
dC9xdC9RdExhdW5jaGVyL21haW4uY3BwCShyZXZpc2lvbiA0NTkwOCkKKysrIFdlYktpdC9xdC9R
dExhdW5jaGVyL21haW4uY3BwCSh3b3JraW5nIGNvcHkpCkBAIC0zMTAsNiArMzEwLDcgQEAKIFFX
ZWJQYWdlICpXZWJQYWdlOjpjcmVhdGVXaW5kb3coUVdlYlBhZ2U6OldlYldpbmRvd1R5cGUpCiB7
CiAgICAgTWFpbldpbmRvdyAqbXcgPSBuZXcgTWFpbldpbmRvdzsKKyAgICBtdy0+c2hvdygpOwog
ICAgIHJldHVybiBtdy0+d2ViUGFnZSgpOwogfQogCkluZGV4OiBXZWJLaXQvcXQvQ2hhbmdlTG9n
Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT0KLS0tIFdlYktpdC9xdC9DaGFuZ2VMb2cJKHJldmlzaW9uIDQ1OTEwKQorKysg
V2ViS2l0L3F0L0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDA5
LTA3LTE1ICBZYWVsIEFoYXJvbiAgPHlhZWwuYWhhcm9uQG5va2lhLmNvbT4KKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0
Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjcyODUKKworICAgICAgICBXaGVuIHRoZSB1c2VyIGNsaWNr
cyBhIGxpbmsgd2l0aCBhIHRhcmdldCBhdHRyaWJ1dGUsIHRoZSBuZXdseSBjcmVhdGVkIHdpbmRv
dyBzaG91bGQgYmUgdmlzaWJsZS4KKyAgICAgICAgTWFrZSBuZXcgd2luZG93cyBjcmVhdGVkIGlu
IFF0bGF1bmNoZXIgdmlzaWJsZS4KKworICAgICAgICAqIFF0TGF1bmNoZXIvbWFpbi5jcHA6Cisg
ICAgICAgIChXZWJQYWdlOjpjcmVhdGVXaW5kb3cpOgorCiAyMDA5LTA3LTE0ICBBZGFtIFRyZWF0
ICA8YWRhbS50cmVhdEB0b3JjaG1vYmlsZS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgWmFj
ayBSdXNpbi4K
</data>
<flag name="review"
          id="17155"
          type_id="1"
          status="+"
          setter="hausmann"
    />
          </attachment>
      

    </bug>

</bugzilla>