<?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>19077</bug_id>
          
          <creation_ts>2008-05-15 07:01:12 -0700</creation_ts>
          <short_desc>[Qt] Clicking on a link with target=_blank doesn&apos;t do anything</short_desc>
          <delta_ts>2009-11-30 10:00: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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</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>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marco Barisione">marco.barisione</reporter>
          <assigned_to name="Marco Barisione">marco.barisione</assigned_to>
          <cc>hausmann</cc>
    
    <cc>jedrzej.nowacki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80498</commentid>
    <comment_count>0</comment_count>
    <who name="Marco Barisione">marco.barisione</who>
    <bug_when>2008-05-15 07:01:12 -0700</bug_when>
    <thetext>window.open() from js opens a new window but clicking on &lt;a target=&quot;_blank&quot; href=&quot;#&quot;&gt;..&lt;/a&gt; doesn&apos;t do anything.

I will attach a patch ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80501</commentid>
    <comment_count>1</comment_count>
      <attachid>21163</attachid>
    <who name="Marco Barisione">marco.barisione</who>
    <bug_when>2008-05-15 07:48:35 -0700</bug_when>
    <thetext>Created attachment 21163
Show the window containing the newly created QWebPage

Can newPage-&gt;view() be null in this case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80895</commentid>
    <comment_count>2</comment_count>
      <attachid>21163</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2008-05-19 07:14:10 -0700</bug_when>
    <thetext>Comment on attachment 21163
Show the window containing the newly created QWebPage

I don&apos;t think this is the right place to call show(). dispatchCreatePage() is called from FrameLoader::continueAfterNewWindowPolicy, which shortly afterwards calls FrameLoaderClient::dispatchShow(). That function is currently not implemented and I believe that&apos;s where a show() call should go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80965</commentid>
    <comment_count>3</comment_count>
    <who name="Marco Barisione">marco.barisione</who>
    <bug_when>2008-05-20 02:58:54 -0700</bug_when>
    <thetext>Oh, right. I didn&apos;t know of dispatchShow. I will update the patch as soon as possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81183</commentid>
    <comment_count>4</comment_count>
    <who name="Marco Barisione">marco.barisione</who>
    <bug_when>2008-05-22 03:57:04 -0700</bug_when>
    <thetext>If the browser wants to open the new page in a tab instead of using a separate window then showing the toplevel windows is not the best idea.
How about adding a virtual method QWebPage::showWindow() with a default implentation that shows the toplevel window?
I proposed something similar also for the GTK port, see bug #19143.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81275</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2008-05-23 01:27:58 -0700</bug_when>
    <thetext>I agree about not calling show() on the QWidget directly. Unfortunately we cannot add virtual functions to QWebPage as it breaks binary compatibility. Fortunately a more consistent API would be to add a signal, similar to menuBarVisibilityChangeRequested or statusBarVisibilityChangeRequested. By default QWebView could connect the signal to its own private slot to call QWidget::show()/hide() accordingly. This way the implementation of ChromeClientQt::show() and FrameLoaderClientQt::dispatchShow() can both be changed to emit the new signal.

(In the windows port they also both map to the same call)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167286</commentid>
    <comment_count>6</comment_count>
    <who name="Jędrzej Nowacki">jedrzej.nowacki</who>
    <bug_when>2009-11-30 10:00:30 -0800</bug_when>
    <thetext>Hi,
 I tried the issue with this test case on the trunk:

&lt;html&gt;
&lt;body&gt;
&lt;a target=&quot;_blank&quot; href=&quot;#&quot;&gt;blank&lt;/a&gt;
&lt;a onClick=&quot;window.open()&quot;&gt;blankJS&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;

in both cases a new window was created. It seems that the problem is resolved.

I&apos;m not assigned to the bug, so if I missed something feel free to reopen it.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>21163</attachid>
            <date>2008-05-15 07:48:35 -0700</date>
            <delta_ts>2008-05-19 07:14:10 -0700</delta_ts>
            <desc>Show the window containing the newly created QWebPage</desc>
            <filename>qt-show-page.patch</filename>
            <type>text/plain</type>
            <size>1603</size>
            <attacher name="Marco Barisione">marco.barisione</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9xdC9XZWJDb3JlU3VwcG9ydC9GcmFtZUxvYWRlckNsaWVudFF0LmNwcAo9
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09Ci0tLSBXZWJLaXQvcXQvV2ViQ29yZVN1cHBvcnQvRnJhbWVMb2FkZXJDbGllbnRR
dC5jcHAJKHJldmlzaW9uZSAzMzQ4NCkKKysrIFdlYktpdC9xdC9XZWJDb3JlU3VwcG9ydC9GcmFt
ZUxvYWRlckNsaWVudFF0LmNwcAkoY29waWEgbG9jYWxlKQpAQCAtODU4LDYgKzg1OCwxMyBAQAog
ICAgIFFXZWJQYWdlICpuZXdQYWdlID0gbV93ZWJGcmFtZS0+cGFnZSgpLT5jcmVhdGVXaW5kb3co
UVdlYlBhZ2U6OldlYkJyb3dzZXJXaW5kb3cpOwogICAgIGlmICghbmV3UGFnZSkKICAgICAgICAg
c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WdlOjpjcmVhdGVXaW5kb3coKSBpcyByaWdodCBiZWNhdXNlIHdpbmRv
d3MKKyAgICAgICAgb3BlbmVkIHZpYSBKYXZhU2NyaXB0IHdpdGggd2luZG93Lm9wZW4oKSBtdXN0
IGJlIHNob3duIG9ubHkgd2hlbgorICAgICAgICBDaHJvbWVDbGllbnQ6OnNob3coKSBpcyBjYWxs
ZWQuCisKKyAgICAgICAgKiBXZWJDb3JlU3VwcG9ydC9GcmFtZUxvYWRlckNsaWVudFF0LmNwcDoK
KyAgICAgICAgKFdlYkNvcmU6OkZyYW1lTG9hZGVyQ2xpZW50UXQ6OmRpc3BhdGNoQ3JlYXRlUGFn
ZSk6IFNob3cgdGhlIG5ld2x5CisgICAgICAgIGNyZWF0ZWQgd2luZG93LgorCiAyMDA4LTA1LTEz
ICBBbmR5IFNoYXcgIDxhbmR5QHRyb2xsdGVjaC5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkg
U2ltb24uCg==
</data>
<flag name="review"
          id="9247"
          type_id="1"
          status="-"
          setter="hausmann"
    />
          </attachment>
      

    </bug>

</bugzilla>