<?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>37821</bug_id>
          
          <creation_ts>2010-04-19 14:04:15 -0700</creation_ts>
          <short_desc>[Qt] loads APP directory when calling &quot;window.open&quot;</short_desc>
          <delta_ts>2010-04-26 03:43:46 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</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>
          
          <blocked>35784</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Yi Shen">max.hong.shen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>hausmann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>214233</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2010-04-19 14:04:15 -0700</bug_when>
    <thetext>When creating a new window by calling &quot;window.open(&apos;http://www.cnn.com&apos;)&quot;, it loads the &quot;file://$${applicationpath}&quot; because the ChromeClientQt::createWindow() never check the request whether is empty or not, and it loads the app directory when the request is empty.

When calling window.open(&apos;http://www.cnn.com&apos;), the WebCore::createWindow() first 1) call client to create a new window 2) load cnn.com by calling changeLocation(); While in step 1), qt&apos;s chrome client always tries to load an empty request.

I think we should check the request because 1)it helps the performance 
                                            2)I found the gtk&apos;s createWindow checks the request every time. e.g. In ChromeClientGtk.cpp:129

Page* ChromeClient::createWindow(...) {
  ...
  if (!frameLoadRequest.isEmpty())
      webkit_web_view_open(....);
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214238</commentid>
    <comment_count>1</comment_count>
      <attachid>53718</attachid>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2010-04-19 14:08:18 -0700</bug_when>
    <thetext>Created attachment 53718
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214309</commentid>
    <comment_count>2</comment_count>
      <attachid>53718</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-19 16:07:40 -0700</bug_when>
    <thetext>Comment on attachment 53718
proposed patch

Good catch!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215326</commentid>
    <comment_count>3</comment_count>
      <attachid>53718</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-21 08:08:46 -0700</bug_when>
    <thetext>Comment on attachment 53718
proposed patch

Clearing flags on attachment: 53718

Committed r57982: &lt;http://trac.webkit.org/changeset/57982&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215327</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-21 08:08:51 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216975</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-26 03:43:37 -0700</bug_when>
    <thetext>Revision r57982 cherry-picked into qtwebkit-2.0 with commit 624d8662f88895a1a25212ee088d6443c0e8e736</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>53718</attachid>
            <date>2010-04-19 14:08:18 -0700</date>
            <delta_ts>2010-04-21 08:08:46 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>bug37821.patch</filename>
            <type>text/plain</type>
            <size>1272</size>
            <attacher name="Yi Shen">max.hong.shen</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9xdC9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L3F0L0NoYW5n
ZUxvZwkocmV2aXNpb24gNTc4MzUpCisrKyBXZWJLaXQvcXQvQ2hhbmdlTG9nCSh3b3JraW5nIGNv
cHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMTAtMDQtMTkgIFlpIFNoZW4gIDx5aS40LnNoZW5Abm9r
aWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IFtRdF0gQ2hlY2sgdGhlIHJlcXVlc3QgZW1wdHkgb3Igbm90IGluIENocm9tZUNsaWVudFF0Ojpj
cmVhdGVXaW5kb3coKQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9Mzc4MjEKKworICAgICAgICAqIFdlYkNvcmVTdXBwb3J0L0Nocm9tZUNsaWVudFF0LmNw
cDoKKyAgICAgICAgKFdlYkNvcmU6OkNocm9tZUNsaWVudFF0OjpjcmVhdGVXaW5kb3cpOgorCiAy
MDEwLTA0LTE5ICBEYXZlIE1vb3JlICA8ZGF2ZW1vb3JlQGNocm9taXVtLm9yZz4KIAogICAgICAg
ICBSZXZpZXdlZCBieSBEaW1pdHJpIEdsYXprb3YuCkluZGV4OiBXZWJLaXQvcXQvV2ViQ29yZVN1
cHBvcnQvQ2hyb21lQ2xpZW50UXQuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktpdC9xdC9XZWJDb3Jl
U3VwcG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