[webkit-dev] Displaying a message box

Darin Adler darin at apple.com
Fri Feb 22 23:45:09 PST 2008

On Feb 21, 2008, at 4:19 PM, Ben Murdoch wrote:

> In the chrome client there is a function runJavaScriptAlert() that  
> calls the UI delegate to show an alert panel with JavaScript  
> "branding" - I was wondering if there was another function I could  
> call to display a message box without the JavaScript stuff? I  
> couldn't see anything in the chrome or delegate ...

There's not.

But I need to understand the context of your question to help you.  
What reason does WebKit have to present a dialog? What are you working  

The ChromeClient functions (internal WebCore/WebKit communication) and  
then the UI delegate functions on Mac OS X (public API, and similar  
functions for other ports) are a way for the web page to make a  
request to the application; the application then decides the policy.

For the JavaScript alerts, it's clear cut -- the application knows  
these are coming from JavaScript and can decide how to present them.  
But the same does not seem to be true of an arbitrary dialog that  
WebKit wants to present for an arbitrary region. That seems too open  
ended for the UI delegate (and hence for the ChromClient).

     -- Darin

More information about the webkit-dev mailing list