Add window type to CrashReportPrivate JS crash reports.
JS crash reports may occur from a regular tab, app window or SWA window. This is not currently logged. Logging this will help us track down a potential race condition where a SWA url may not be recognised which may be the root cause of b/162791595. A note about tests: It is a little weird getting tests to work for window type as we can't grant a |WebContent| permissions to use |CrashReportPrivate| on the fly. This cl works around that by opening the target window window type, then navigating a url that has access to |CrashReportPrivate|. Bug: b/162791595, b/169635499 Change-Id: I358a380b6742bd44f56a5a46f51182b9df26c693 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489123 Commit-Queue: David Lei <dlei@google.com> Reviewed-by:Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by:
Ian Barkley-Yeung <iby@chromium.org> Reviewed-by:
dstockwell <dstockwell@google.com> Auto-Submit: David Lei <dlei@google.com> Cr-Commit-Position: refs/heads/master@{#824314}
Showing
Please register or sign in to comment