<?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>125432</bug_id>
          
          <creation_ts>2013-12-08 16:10:47 -0800</creation_ts>
          <short_desc>External links in Epiphany web applications do not work correctly</short_desc>
          <delta_ts>2015-04-16 07:46:38 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Debarshi Ray">rishi.is</reporter>
          <assigned_to name="Alberto Garcia">berto</assigned_to>
          <cc>berto</cc>
    
    <cc>cgarcia</cc>
    
    <cc>csaavedra</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>957729</commentid>
    <comment_count>0</comment_count>
    <who name="Debarshi Ray">rishi.is</who>
    <bug_when>2013-12-08 16:10:47 -0800</bug_when>
    <thetext>I use Epiphany web applications for Facebook and Google+. If I click an external link within the web application window, it is supposed to open in a normal browser window or tab and not inside the web application. This worked well in webkitgtk3-2.2.2, but does not work with webkitgtk3-2.2.3. External URLs now open up inside the web application.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957813</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2013-12-09 02:28:21 -0800</bug_when>
    <thetext>Nothing has changed in webkit related to that, I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957834</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-12-09 03:35:09 -0800</bug_when>
    <thetext>Maybe something changed in Epiphany recently. Claudio, does this ring a bell?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957837</commentid>
    <comment_count>3</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2013-12-09 03:39:03 -0800</bug_when>
    <thetext>Nope…</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957841</commentid>
    <comment_count>4</comment_count>
    <who name="Debarshi Ray">rishi.is</who>
    <bug_when>2013-12-09 03:43:40 -0800</bug_when>
    <thetext>I did not change the version of Epiphany (3.10.2) that I had. Upgrading to webkitgtk-2.2.3 from 2.2.2 was enough to expose this bug. It went away after I downgraded to 2.2.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957900</commentid>
    <comment_count>5</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-12-09 08:16:47 -0800</bug_when>
    <thetext>I can actually reproduce this with a Debian jessie setup, after upgrading
webkit to 2.2.3.

I&apos;ll take a look at this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957923</commentid>
    <comment_count>6</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-12-09 09:00:53 -0800</bug_when>
    <thetext>So when I click on a Facebook link, Epiphany tries to figure out if
it&apos;s an internal or an external link (decide_policy_cb).

The actual URL is one of these http://www.facebook.com/l.php?u=http...

What happens is that webkit_uri_request_get_uri() should return the
final uri (&quot;http://ow.ly/rAvPU&quot; in my test), but it seems to be
returning the Facebook wrapper uri instead.

I haven&apos;t seen any change in webkit that might be causing this,
though. I&apos;ll keep investigating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957932</commentid>
    <comment_count>7</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-12-09 09:37:08 -0800</bug_when>
    <thetext>So it seems the User-Agent change from bug 124229.

Here&apos;s the previous code for the link:

&lt;a href=&quot;http://ow.ly/rAvxq&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; onmouseover=&quot;LinkshimAsyncLink.swap(this, &amp;quot;http:\/\/ow.ly\/rAvxq&amp;quot;);&quot; onclick=&quot;LinkshimAsyncLink.referrer_log(this, &amp;quot;http:\/\/ow.ly\/rAvxq&amp;quot;, &amp;quot;\/si\/ajax\/l\/render_linkshim_log\/?u=http\u00253A\u00252F\u00252Fow.ly\u00252FrAvxq&amp;amp;h=eAQEROmEaAQE_llmCJCdgplQ1RgZ9hzVxce3pr95cdbaHbw&amp;amp;render_verification=0&amp;amp;enc=AZO4WOlYUxn1C_rJtoCuDQ1TjKG4GL5Gj7P1MgWGspoocaM2ew0pNGnE4AFxqk-wxl2kNWxj5JFpI1OkhV0yvoV-&amp;quot;);&quot;&gt;link&lt;/a&gt;

and this is the new one:

&lt;a href=&quot;http://ow.ly/rAWxA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; onmouseover=&quot;LinkshimAsyncLink.swap(this, &amp;quot;http:\/\/ow.ly\/rAWxA&amp;quot;);&quot; onclick=&quot;LinkshimAsyncLink.swap(this, &amp;quot;http:\/\/www.facebook.com\/l.php?u=http\u00253A\u00252F\u00252Fow.ly\u00252FrAWxA&amp;amp;h=cAQEyoiS8AQHXItKPMYjaXxhXDcEcMKbbbK1HeqxRl3SE1A&amp;amp;enc=AZMAJEAy1lwe6LEVHYkhsly65ajGxk9thU2acSNZzInmNzFex7h4xLHtL9A-gsbvup6U_aocCtXotIbCNhGxZUTb&amp;amp;s=1&amp;quot;);&quot;&gt;link&lt;/a&gt;

For more thinks broken after the UA change, see bug 125444</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957937</commentid>
    <comment_count>8</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-12-09 09:41:34 -0800</bug_when>
    <thetext>The problem here is that this doesn&apos;t really &quot;break&quot; anything. The new
link code works just as fine as the old one, but Epiphany cannot
detect now if the link is external.

We probably need to change the method used to detect if the link is
external or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>958391</commentid>
    <comment_count>9</comment_count>
    <who name="Debarshi Ray">rishi.is</who>
    <bug_when>2013-12-10 09:20:44 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; The problem here is that this doesn&apos;t really &quot;break&quot; anything. The new
&gt; link code works just as fine as the old one, but Epiphany cannot
&gt; detect now if the link is external.
&gt; 
&gt; We probably need to change the method used to detect if the link is
&gt; external or not.

Yes. The fix for bug 125444 does not fix this one. So we might have to fix Epiphany for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>958394</commentid>
    <comment_count>10</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-12-10 09:30:02 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; &gt; The problem here is that this doesn&apos;t really &quot;break&quot; anything. The
&gt; &gt; new link code works just as fine as the old one, but Epiphany
&gt; &gt; cannot detect now if the link is external.
&gt; Yes. The fix for bug 125444 does not fix this one. So we might have
&gt; to fix Epiphany for this.

Yes, I think this is just one more case of https://bugzilla.gnome.org/show_bug.cgi?id=658395

But I don&apos;t see a bug as such in webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1085917</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-04-16 07:46:38 -0700</bug_when>
    <thetext>Hm, our options for Bugzilla statuses are not very good... anyway, this was fixed in GNOME Bugzilla.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>