devtools: Prevent crash when inspecting devtools:// page
Only in a debug build we can enter in the branch "content::hasWebUIScheme" (:758) if the scheme is either "chrome://" or "devtools://". Later, constructing the WebURILoader (in :772 before the patch), there is the assumption that the uri scheme is always kChromeUIScheme. This was causing me crash of devtools while I was trying to open it on a page under "devtools://devtools/...". The crash was generated by web_ui_url_loader_factory.cc:254, where `scheme_` was "chrome", while `request.url.scheme()` was "devtools" Change-Id: If02ea147d494ed64c7f7dc560095f223c11f7dfa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1687408 Commit-Queue: Nicolò Mazzucato <nicomazz@google.com> Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Reviewed-by:
Eric Seckler <eseckler@chromium.org> Cr-Commit-Position: refs/heads/master@{#676911}
Showing
Please register or sign in to comment