Use g_clear_object wherever applicable
webview: Ensure that mouse and keyboard events reach the inspector

The WebKit inspector needs to be put in its own window group because
the dialog that spawns it calls gtk_dialog_run afterwards.

Fixes: https://bugzilla.gnome.org/731614