File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -464,6 +464,10 @@ function initializeWebViewClient(): void {
464
464
return false ;
465
465
}
466
466
async _onPermissionsRequest ( permissionRequest : android . webkit . PermissionRequest ) {
467
+ const owner = this . owner ?. get ( ) ;
468
+ if ( ! owner ) {
469
+ return ;
470
+ }
467
471
try {
468
472
const requests = permissionRequest . getResources ( ) ;
469
473
const wantedPermissions = new Array ( ) ;
@@ -485,7 +489,7 @@ function initializeWebViewClient(): void {
485
489
if ( requestedPermissions . length === 0 ) {
486
490
permissionRequest . deny ( ) ;
487
491
}
488
- await this . owner . get ( ) . _onRequestPermissions ( wantedPermissions ) ;
492
+ await owner . _onRequestPermissions ( wantedPermissions ) ;
489
493
490
494
permissionRequest . grant ( requestedPermissions ) ;
491
495
} catch ( err ) {
You can’t perform that action at this time.
0 commit comments