Issue metadata
Sign in to add a comment
|
Start chrome from command line with any chrome url
Reported by
atike...@gmail.com,
Nov 11 2016
|
||||||||||||||||||||||
Issue descriptionChrome Version : 54.0.2840.71 OS Version: 10.0 What steps will reproduce the problem? 1. Start chrome from command line with a chrome:// url What is the expected result? Chrome should start with the provided url. What happens instead of that? Chrome starts with empty address bar. UserAgentString: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
,
Nov 15 2016
Unable to reproduce the issue on windows 7, Linux Ubuntu 14.04 and Mac 10.11.6 using chrome version 54.0.2840.99 with the below steps 1. Start chrome from command line Chrome://version or chrome://flags 2.chrome opened with URL chrome://chrome-signin/?access_point=0&reason=0 Please find the attached screen cast and confirm anything missed here. Request you once please try the issue by upgrading chrome to latest stable and update the thread if the issue still persists. Thanks,
,
Nov 15 2016
,
Nov 15 2016
The attached screencast shows the sign in tab which is most probably a default page if the user is not signed in. It should show the chrome://memory-internals in the recorded example. Attached a screencast as a guest user, which shows the blank url.
,
Nov 16 2016
#2, #3, #4: the reason chrome:// urls aren't supported is explained by the issue 9862 , which I've linked in #1. As you can see in the source code: https://cs.chromium.org/chromium/src/chrome/browser/ui/startup/startup_browser_creator.cc std::vector<GURL> StartupBrowserCreator::GetURLsFromCommandLine( ............................. const GURL settings_url = GURL(chrome::kChromeUISettingsURL); bool url_points_to_an_approved_settings_page = false; #if defined(OS_CHROMEOS) // In ChromeOS, allow any settings page to be specified on the command line. url_points_to_an_approved_settings_page = url.GetOrigin() == settings_url.GetOrigin(); #else // Exposed for external cleaners to offer a settings reset to the // user. The allowed URLs must match exactly. const GURL reset_settings_url = settings_url.Resolve(chrome::kResetProfileSettingsSubPage); url_points_to_an_approved_settings_page = url == reset_settings_url; #if defined(OS_WIN) // On Windows, also allow a hash for the Chrome Cleanup Tool. const GURL reset_settings_url_with_cct_hash = reset_settings_url.Resolve( std::string("#") + settings::ResetSettingsHandler::kCctResetSettingsHash); url_points_to_an_approved_settings_page = url_points_to_an_approved_settings_page || url == reset_settings_url_with_cct_hash; #endif // defined(OS_WIN) #endif // defined(OS_CHROMEOS) ............................. if (policy->IsWebSafeScheme(url.scheme()) || url.SchemeIs(url::kFileScheme) || url_points_to_an_approved_settings_page || (url.spec().compare(url::kAboutBlankURL) == 0)) { urls.push_back(url); } } return urls; } It means the following: * In ChromeOS, any chrome://settings page may be specified on the command line * On other platforms only chrome://settings/resetProfileSettings is allowed. * Web-safe schemes are allowed http://, https://, ftp://, data:, feed, blob: * real file paths like c:\something.html * about:blank. In other words, all chrome:// urls are ignored on the command line with the exception mentioned above.
,
Nov 17 2016
,
Nov 24 2016
Thank you for providing more feedback. Adding requester "kavvaru@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 13 2017
Cleaning up "Needs-Review" label as we are not using this label for triage anymore. Ref bug for this cleanup 684919
,
Aug 4 2017
Agreed with comment 5; this seems intentional. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by woxxom@gmail.com
, Nov 11 2016