Fixed: WebView still visible in chrome://inspect after page is destroyed

Resolves #2053
This commit is contained in:
Rossen Hristov
2016-05-03 17:02:49 +03:00
parent 57d5bd143a
commit 2cc1259bfd

View File

@ -105,6 +105,13 @@ export class WebView extends common.WebView {
this._android.setWebViewClient(this._webViewClient);
}
public _onDetached(force?: boolean) {
if (this.android) {
this.android.destroy();
}
super._onDetached(force);
}
public _loadUrl(url: string) {
if (!this._android) {
return;