[Extensions] Handle invalid paths in webview accessible resources
An extension may specify an invalid path in webview accessible resources (such as a non-relative path or an URLPattern). This would lead to the URLPattern parsing failing. However, WebviewInfo currently uses a constructor that always expects this parsing to succeed. Fix this by handling invalid inputs. Unlike other parsing failures, we add a warning (rather than throwing a hard error) in this case. This is because existing apps with non-trivial user counts use this. Bug: 856948 Change-Id: Ia2087dcf079250d12a1bd6211d6424a03a8a24bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2450952Reviewed-by:Karan Bhatia <karandeepb@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#815791}
Showing
Please register or sign in to comment