[DevUI DFM] Improve usability of chrome://dev-ui-loader URL redirection.
Visiting the chrome:// URL of a host that's in the DevUI DFM triggers install / load flow through chrome://dev-ui-loader, which then redirects to the original chrome:// URL on completion. Previously the flow suffers from the following: * Bug: The state "installed" should be "ready". * /path?query/fragment of the original URL is discarded. * Redirect to chrome://dev-ui-loader is possible, leading to bizarre redirect chains. This CL fixes the above by replacing "?page=<host>" with "?url=<escaped URL>". This involves escaping the URL in the (C++) URL rendering code and unescaping the URL in the (JS) URL reading code. Invalid "?url=" simply leads to chrome://chrome-urls. Bug: 927131 Change-Id: Ia7c1c7874f76ee6d80b347fc49a73dec50a5c80c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1783519 Commit-Queue: Samuel Huang <huangs@chromium.org> Reviewed-by:Tibor Goldschwendt <tiborg@chromium.org> Reviewed-by:
Andrew Grieve <agrieve@chromium.org> Reviewed-by:
Dan Beam <dbeam@chromium.org> Cr-Commit-Position: refs/heads/master@{#693206}
Showing
Please register or sign in to comment