[webkit-dev] _blank hrefs and new windows

Sriram Neelakandan sriram.neelakandan at gmail.com
Fri Apr 11 02:42:34 PDT 2008


Well Gtk Implementation is also incomplete .. Please see this bug ..
http://bugs.webkit.org/show_bug.cgi?id=16562
But even the patch attached here does not work

On Fri, Apr 11, 2008 at 1:59 PM, Artem Ananiev <Artem.Ananiev at sun.com>
wrote:

> I have just tried GtkLauncher and it doesn't handle _blank target also.
> Thus, it looks like a problem in a shared WebKit code, not specific to out
> Java port...
>
> Thanks,
>
> Artem
>
>
> Artem Ananiev wrote:
>
> > Hi,
> >
> > I have experienced the following problem with WebKit (Java port). The
> > page code is simple:
> >
> >  <a href="a.html" target="_blank">Open window</a>
> >  <a href="javascript:window.open('a.html', '_blank')">Open window</a>
> >
> > When I right-click on the first link and select 'Open in a new window'
> > from context menu, a new window is created and shown - that's fine. However,
> > left-click on the first link loads the page 'a.html' in the same window -
> > this looks strange to me as the target is _blank.
> >
> > The second link behaves as expected: it opens a new window with
> > left-click and does nothing with right click.
> >
> > I suppose target="_blank" is handled completely differently than opening
> > a new window with a context menu. Is it related to popup blocking and
> > different policies in FrameLoaderClient class? Another strange thing is that
> > I couldn't find any references to ChromeClient::createWindow() method - it
> > is responsible for creating a new window, at least triggered from context
> > menu - other than from ContextMenuController...
> >
> > Thanks,
> >
> > Artem
> > _______________________________________________
> > webkit-dev mailing list
> > webkit-dev at lists.webkit.org
> > http://lists.webkit.org/mailman/listinfo/webkit-dev
> >
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev
>



-- 
Sriram Neelakandan
Author - Embedded Linux System Design And Development (
http://tinyurl.com/2doosu)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20080411/1323c1d1/attachment.html


More information about the webkit-dev mailing list