[webkit-help] Window close messages

Zoltan Herczeg zherczeg at inf.u-szeged.hu
Wed Sep 23 06:59:23 PDT 2009


Hi,

See WebCore/page/DOMWindow.cpp : DOMWindow::close() and add an extra
condition there. However, I am not sure WebKit will like if you break it
with a modal form.

Zoltan

> Hi,
>
>
>
> I have a page that try's to close the main window though Java Script by
> calling "window.close()".  In the ChromeClient I see that the method
> closeWindowSoon() gets called.  I would like to be able to popup a dialog
> and ask the user if this is allowed.  I was wondering how I would cancel
> the
> close if this is not allowed?  Is there another method I should be using
> instead of closeWindowSoon()?
>
>
>
> Thanks,
>
> Brian
>
>
>
> Brian Edmond
>
> Crank Software Inc.
>
> Office: 613-595-1999
>
> Mobile: 613-796-1320
>
> Online:  <http://www.cranksoftware.com/> www.cranksoftware.com
>
> Check out:  <http://cranksoftware.com/blog/> Crank Software's Blog
>
>
>
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>



More information about the webkit-help mailing list