Bug 61725

Summary: [GTK] Implement JavaScript dialogs in MiniBrowser
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Severity: Normal Keywords: Gtk
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Description Flags
Patch mrobinson: review+

Description Carlos Garcia Campos 2011-05-30 03:48:15 PDT
runJavaScriptAlert, runJavaScriptConfirm and runJavaScriptPrompt are currently unimplemented in MiniBrowser.
Comment 1 Carlos Garcia Campos 2011-05-30 03:53:49 PDT
Created attachment 95332 [details]
Comment 2 Martin Robinson 2011-05-30 07:22:05 PDT
Comment on attachment 95332 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=95332&action=review

> Tools/MiniBrowser/gtk/BrowserWindow.c:191
> +    char *buffer = (char *)g_malloc(length * sizeof(char));

You can omit sizeof(char) here. I'm pretty sure it's always one in C. Please put a space after the cast.

> Tools/MiniBrowser/gtk/BrowserWindow.c:460
> +    WKStringRef retval = (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) ? WKStringCreateWithUTF8CString(gtk_entry_get_text(GTK_ENTRY(entry))) : 0;

-> returnValue
Comment 3 Carlos Garcia Campos 2011-05-30 09:25:25 PDT
Committed r87690: <http://trac.webkit.org/changeset/87690>