Currently when we are running audits, the button changes its label to "Stop". So we can trigger cancelling of the ongoing audit request. At the same time, the check-boxes for the category are enabled. So if the user de-selects every category while the request is still on going, the "Stop" button becomes disabled. Hence the audit request cannot be cancelled. This can be avoided if AuditLauncherView UI components are disabled until ongoing audit finishes. Patch follows.
Created attachment 180097 [details] Patch
Created attachment 180099 [details] Patch
Comment on attachment 180099 [details] Patch Clearing flags on attachment: 180099 Committed r138122: <http://trac.webkit.org/changeset/138122>
All reviewed patches have been landed. Closing bug.