New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 666274 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 3
Type: Bug



Sign in to add a comment

MD Bookmarks: Disable 'open in new incognito window' for bookmarks to chrome:// pages

Project Member Reported by mmanchala@chromium.org, Nov 17 2016

Issue description

Version: 55.0.2883.54/8872.54.0 Beta-channel Mighty,Daisy,Cyan and  Candy
OS: Chrome

What steps will reproduce the problem?
(1)Sign into User -> Go to chrome://settings page and Bookmark it
(2)Now go to Bookmark manager (Hit ctrl+shift+O)
 and right click on settings Bookmark and observe 'Open in Incognito window' option in context menu (Please refer Video)

Expected:'Open in Incognito window' option should be disabled in context menu
Actual: Instead 'Open in Incognito window' option is seen  enabled in context menu of bookmarked Settings page

This is Non-Regression Issue seen from M-34

Note: Issue is also seen on Linux and Windows OS

 
Actual_EnabledLink.jpg
55.4 KB View Download
Expexted_DisabledLink.jpg
52.9 KB View Download
Actual_Link.webm
755 KB View Download
Owner: tsergeant@chromium.org
Status: Assigned (was: Untriaged)
Marking as Pri-3, but maybe we can just disable open-in-incognito for all chrome:// links?

@tsergeant, can you help triage?
Labels: -Pri-2 Proj-MaterialDesign-WebUI Pri-3
Summary: MD Bookmarks: Disable 'open in new incognito window' for bookmarks to chrome:// pages (was: Non-Regression : Unnecessary 'Open in Incognito window' option is seen in context menu of bookmarked Settings page)
This isn't going to change in the old bookmark manager, so repurposing as an MD Bookmarks bug.
I investigated this a little bit yesterday. This works correctly in Native bookmark menus (like the bookmarks bar). The code that powers it is here:

https://cs.chromium.org/chromium/src/chrome/browser/ui/browser_navigator.cc?type=cs&l=625

This has an explicit blacklist of chrome:// and chrome-search:// URLs which aren't openable in Incognito.

We don't want to reproduce that whole blacklist, the best option is probably to unconditionally block all chrome:// and chrome-search:// URLs from Incognito in the JS front-end.

We could potentially also make a new bookmarkManagerPrivate API call to call into that native function with the specific blacklist, but that would add a lot of complexity for little benefit.
Cc: tsergeant@chromium.org
Owner: calamity@chromium.org

Sign in to add a comment