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 > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-help > _______________________________________________ webkit-help mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
