Bug 177377

Summary: Multiple calls to showModalDialog within the same event handler are associated with the same _WKUserInitiatedAction
Product: WebKit Reporter: Ansh Shukla <ansh_shukla>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ansh_shukla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Chained showModalDialogs that earn a new user gesture in the popup window. none

Ansh Shukla
Reported 2017-09-22 12:43:15 PDT
Created attachment 321581 [details] Chained showModalDialogs that earn a new user gesture in the popup window. Multiple calls to showModalDialog within the same event handler are associated with the same _WKUserInitiatedAction If a page calls showModalDialog in response to an onclick handler, its JavaScript execution is paused. We see an enterprise UI pattern where the onclick handler for a button will spawn a sequence of dialogs, each collecting some user gestures. If the spawned dialog was interacted with before closing, then subsequent calls to showModalDialog should get a new _WKUserInitiatedAction. The attachment has a reduced example of this behavior.
Attachments
Chained showModalDialogs that earn a new user gesture in the popup window. (1.37 KB, application/zip)
2017-09-22 12:43 PDT, Ansh Shukla
no flags
Radar WebKit Bug Importer
Comment 1 2017-09-22 12:43:49 PDT
Note You need to log in before you can comment on or make changes to this bug.