WebKit2.WebInspector::attach

connect('attach', function (webInspector, ): Boolean);
  

Emitted when the inspector is requested to be attached to the window where the inspected web view is. If this signal is not handled the inspector view will be automatically attached to the inspected view, so you only need to handle this signal if you want to attach the inspector view yourself (for example, to add the inspector view to a browser tab).

To prevent the inspector vew from being attached you can connect to this signal and simply return true.

webInspector

instance of WebKit2.WebInspector that is emitting the signal

Returns

true to stop other handlers from being invoked for the event. false to propagate the event further.