<?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>61858</bug_id>
          
          <creation_ts>2011-06-01 06:42:42 -0700</creation_ts>
          <short_desc>[GTK] run-launcher should run MiniBrowser in WebKit2</short_desc>
          <delta_ts>2011-06-01 09:08:41 -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>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>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>413335</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-06-01 06:42:42 -0700</bug_when>
    <thetext>Since r87760 we are passing -2 command line option to run-launcher script for wk2, but we are still executing GtkLauncher and it fails because -2 option is passed to GtkLauncher too. We should check whether -2 option has been passed, so that it&apos;s removed, and run MiniBrowser instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413339</commentid>
    <comment_count>1</comment_count>
      <attachid>95594</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-06-01 06:44:46 -0700</bug_when>
    <thetext>Created attachment 95594
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413394</commentid>
    <comment_count>2</comment_count>
      <attachid>95594</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-06-01 08:33:56 -0700</bug_when>
    <thetext>Comment on attachment 95594
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=95594&amp;action=review

&gt; Tools/Scripts/run-launcher:72
&gt; +            # isWK2() removes -2 option from @ARGV.
&gt; +            @args = @ARGV;

Why is it necessary to preserve &quot;-2&quot; here? I ask because Qt does not do this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413396</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-06-01 08:37:40 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 95594 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=95594&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/run-launcher:72
&gt; &gt; +            # isWK2() removes -2 option from @ARGV.
&gt; &gt; +            @args = @ARGV;
&gt; 
&gt; Why is it necessary to preserve &quot;-2&quot; here? I ask because Qt does not do this.

I guess the Qt program ignores options that it doesn&apos;t handle, MiniBrowser returns with an error because -2 option is invalid. I added this, because I wasn&apos;t sure, so I wanted to make sure I didn&apos;t break other ports.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413402</commentid>
    <comment_count>4</comment_count>
      <attachid>95594</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-06-01 08:43:38 -0700</bug_when>
    <thetext>Comment on attachment 95594
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=95594&amp;action=review

&gt;&gt;&gt; Tools/Scripts/run-launcher:72
&gt;&gt;&gt; +            @args = @ARGV;
&gt;&gt; 
&gt;&gt; Why is it necessary to preserve &quot;-2&quot; here? I ask because Qt does not do this.
&gt; 
&gt; I guess the Qt program ignores options that it doesn&apos;t handle, MiniBrowser returns with an error because -2 option is invalid. I added this, because I wasn&apos;t sure, so I wanted to make sure I didn&apos;t break other ports.

Ah, I see. I misunderstood the comment. You might consider expanding it to something like: &quot;isWK2() removes the -2 option from @ARGV, but not @args. We do not want to pass -2 to MiniBrowser.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413405</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-06-01 08:47:50 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 95594 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=95594&amp;action=review
&gt; 
&gt; &gt;&gt;&gt; Tools/Scripts/run-launcher:72
&gt; &gt;&gt;&gt; +            @args = @ARGV;
&gt; &gt;&gt; 
&gt; &gt;&gt; Why is it necessary to preserve &quot;-2&quot; here? I ask because Qt does not do this.
&gt; &gt; 
&gt; &gt; I guess the Qt program ignores options that it doesn&apos;t handle, MiniBrowser returns with an error because -2 option is invalid. I added this, because I wasn&apos;t sure, so I wanted to make sure I didn&apos;t break other ports.
&gt; 
&gt; Ah, I see. I misunderstood the comment. You might consider expanding it to something like: &quot;isWK2() removes the -2 option from @ARGV, but not @args. We do not want to pass -2 to MiniBrowser.&quot;

Sure, thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413422</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-06-01 09:08:41 -0700</bug_when>
    <thetext>Committed r87808: &lt;http://trac.webkit.org/changeset/87808&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>95594</attachid>
            <date>2011-06-01 06:44:46 -0700</date>
            <delta_ts>2011-06-01 08:43:38 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>wk2-run-launcher</filename>
            <type>text/plain</type>
            <size>1211</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLW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o
aXNHdGsoKSkgewotICAgICAgICAkbGF1bmNoZXJQYXRoID0gY2F0ZGlyKCRsYXVuY2hlclBhdGgs
ICJQcm9ncmFtcyIsICJHdGtMYXVuY2hlciIpOworICAgICAgICBpZiAoaXNXSzIoKSkgeworICAg
ICAgICAgICAgJGxhdW5jaGVyUGF0aCA9IGNhdGRpcigkbGF1bmNoZXJQYXRoLCAiUHJvZ3JhbXMi
LCAiTWluaUJyb3dzZXIiKTsKKworICAgICAgICAgICAgIyBpc1dLMigpIHJlbW92ZXMgLTIgb3B0
aW9uIGZyb20gQEFSR1YuCisgICAgICAgICAgICBAYXJncyA9IEBBUkdWOworICAgICAgICB9IGVs
c2UgeworICAgICAgICAgICAgJGxhdW5jaGVyUGF0aCA9IGNhdGRpcigkbGF1bmNoZXJQYXRoLCAi
UHJvZ3JhbXMiLCAiR3RrTGF1bmNoZXIiKTsKKyAgICAgICAgfQogICAgIH0KICAgICAKICAgICBp
ZiAoaXNFZmwoKSkgewo=
</data>
<flag name="review"
          id="89116"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>