Issue metadata
Sign in to add a comment
|
Chrome app freezes for 5 seconds when handling the dialog event in a webview
Reported by
sarah.e...@testsys.com,
May 16 2018
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; CrOS x86_64 10575.32.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.41 Safari/537.36 Platform: 10575.32.0 (Official Build) beta-channel peppy Steps to reproduce the problem: 1. In a Chrome app with a webview, handle the dialog event of the webview by displaying a div with Ok and Cancel buttons. Save a reference to the DialogController from the dialog event. 2. Call DialogController.ok() or DialogController.cancel() when the user clicks the Ok or Cancel button. 3. The page in the webview will receive the return value from the confirm call. What is the expected behavior? The onclick event for the Ok and Cancel buttons should fire immediately when those buttons are clicked. What went wrong? The onclick event for those buttons does not fire until after a delay of about 5 seconds. Did this work before? Yes Probably 65 - the issue was first reported on 4/30/2018 Does this work in other browsers? N/A Chrome version: 67.0.3396.41 Channel: beta OS Version: 10575.32.0 Flash Version: 29.0.0.171 The attached zip file includes sample code to demonstrate this behavior as well as an html file that can be loaded in the webview. This issue seems to be related to this note in the webview documentation of the dialog event: "Handling this event will block the guest process until each event listener returns or the dialog object becomes unreachable (if preventDefault() was called.)" How then do we wait for the user to select Ok or Cancel before returning? |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by dtapu...@chromium.org
, Jun 5 2018