Settings: be smarter about "Use current pages" |
|||||||
Issue descriptionRepro steps: 1) Go to the MD Settings via chrome://settings (NOT chrome://md-settings) 2) In the "On startup" section click "Open specific set of pages" 3) Click "Use current pages" Expected: chrome://settings is added to the startup pages. Actual: The radio button changes to "Open new tab page" Not sure if this is a regression, or if it was always not working. Note that visiting chrome://md-settings instead and repeating the repro steps works as expected.
,
May 16 2017
I only see a problem with chrome://settings. All other chrome://* pages seems to work just fine as startup pages (see screenshot).
,
May 16 2017
Whoops, you're right. It still looks like chrome://settings is cleared from the list in old options when clicking Use current pages.
,
May 16 2017
I suppose the code is only excluding chrome://settings from the startup URLs list. If I have two tabs open, chrome://md-settings and google.com, clicking "Use current pages" adds google.com only as a startup page. The fact that md-settings is successfully added as a startup page is probably a bug (which I had using for many months for convenience). I agree that perhaps disabling the "Use current pages" button when no page will be added would be better, but probably a P3.
,
May 16 2017
It should prohibit this list: https://cs.chromium.org/chromium/src/chrome/browser/extensions/extension_tab_util.cc?type=cs&l=578
,
May 16 2017
Here's the filtering for use current pages https://cs.chromium.org/chromium/src/chrome/browser/custom_home_pages_table_model.cc?type=cs&q=SetToCurrentlyOpenPages&l=33
,
May 16 2017
I am rephrasing this bug to better reflect the issue, now that we established that ignoring chrome://settings is WAI.
,
May 16 2017
chrome://settings page will always be open when you click this button ;) ... from chrome://settings. i imagine why the special case for this URL was added to ignore it. we should probably just ignore the tab it was triggered from, not blanket-ly by URL.
,
May 18 2017
,
Jun 6 2017
,
Jun 8 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/6f94b0755c37c196d8459119dfb933d9d5e744dc commit 6f94b0755c37c196d8459119dfb933d9d5e744dc Author: dbeam <dbeam@chromium.org> Date: Thu Jun 08 00:20:18 2017 MD Settings/On Startup: ignore current tab when using current pages This changes the approach away from a URL blacklist. R=dschuyler@chromium.org BUG=722623 Review-Url: https://codereview.chromium.org/2924943002 Cr-Commit-Position: refs/heads/master@{#477823} [modify] https://crrev.com/6f94b0755c37c196d8459119dfb933d9d5e744dc/chrome/browser/custom_home_pages_table_model.cc [modify] https://crrev.com/6f94b0755c37c196d8459119dfb933d9d5e744dc/chrome/browser/custom_home_pages_table_model.h [modify] https://crrev.com/6f94b0755c37c196d8459119dfb933d9d5e744dc/chrome/browser/ui/webui/options/startup_pages_handler.cc [modify] https://crrev.com/6f94b0755c37c196d8459119dfb933d9d5e744dc/chrome/browser/ui/webui/settings/settings_startup_pages_handler.cc
,
Jun 8 2017
,
Jun 8 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by dschuyler@chromium.org
, May 15 2017