Allow deleting a channel during method invocation


A real-life use case is the session restore page in KDE Falkon or, more
generally, any kind of closeTab() method exposed to JS in a QWebEnginePage.

The approach taken in this patch will only work if the transport can also deal
with deletion during a messageReceived signal emission. Alternatively, method
invocation could be delayed via the event loop, but this would come with an
obvious performance penalty.

Change-Id: I2940f61e07c77365f6e3e7cd29463d4cb5b525a6
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
commit6701ff310933ec33f9199b53d78299764f646387
parentb90fbebbb5e257f771e96980109fb543647b1844
authorJüri Valdmann <juri.valdmann@qt.io>
committerJüri Valdmann <juri.valdmann@qt.io>
commit timeMon, 8 Jan 2018 13:53:50 +0000