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

Issue 813451 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Some WebUIs should be disabled in guest mode

Project Member Reported by calamity@chromium.org, Feb 19 2018

Issue description

chrome://history and chrome://bookmarks (and possibly others) have their shortcuts disabled in Guest mode, but typing the URLs still goes to the page.

The WebUIs should be completely unavailable in Guest mode on desktop, as  in ChromeOS.
 

Comment 1 by aee@chromium.org, Mar 28 2018

Cc: aee@chromium.org

Comment 2 by aee@chromium.org, Apr 9 2018

Status: Started (was: Available)

Comment 3 by dpa...@chromium.org, Apr 13 2018

Summarizing discussion at https://chromium-review.googlesource.com/c/chromium/src/+/1005724.

The current plan is to create a common page to be shown when a WebUI page is not available in Guest mode. C++ UI classes will serve the alternate page when in Guest mode.

@aee: We should involve UX to provide us with a mock for the page. As a start, I suggest using the most plain page possible (just a message with a background color).

Comment 4 by dpa...@chromium.org, Apr 13 2018

Also, perhaps we can consider branching off to the alternate page as early as possible, within the web_ui_controller_factory itself, see https://cs.chromium.org/chromium/src/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc?l=421.

Comment 5 by aee@chromium.org, Apr 13 2018

Cc: -aee@chromium.org namratakannan@chromium.org
Owner: aee@chromium.org
@namratakannan: for extensions, we currently load the extensions page with many of the elements hidden. We're thinking about creating a common WebUI page not available for guests page that can be used for history and bookmarks. What are your thoughts on that? If this approach seems reasonable, can you provide mock for a page like that?

I'll start implementing something like guest_webui_page.png to be rendered in place of bookmarks when in guest mode.

guest_extensions.png
38.6 KB View Download
guest_webstore.png
371 KB View Download
guest_bookmarks.png
34.0 KB View Download
guest_history.png
34.1 KB View Download
guest_webui_page.png
22.8 KB View Download

Comment 6 by dpa...@chromium.org, Apr 13 2018

guest_webui_page.png seems fine to me. Just a thought: Maybe the page could look less like a page (no blue bar), and look more like an error message, for example similar to chrome://dino.
Screen Shot 2018-04-13 at 11.16.10.png
117 KB View Download

Comment 7 by aee@chromium.org, Apr 17 2018

Screens from latest CL.

@namratakannan: Should this look more like an error page, or is this okay?
history_guestmode.png
18.5 KB View Download
bookmarks_guestmode.png
20.8 KB View Download
Project Member

Comment 8 by bugdroid1@chromium.org, Apr 18 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8948e4345bb7b09d205745074137daf4922af05f

commit 8948e4345bb7b09d205745074137daf4922af05f
Author: Esmael El-Moslimany <aee@chromium.org>
Date: Wed Apr 18 23:52:15 2018

Settings UI: create page-not-available for history and bookmarks in guest-mode

Bug:  813451 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I45095ecfdf54ccbbd1a9b8fac5304f829faf2b55
Reviewed-on: https://chromium-review.googlesource.com/1014404
Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551883}
[modify] https://crrev.com/8948e4345bb7b09d205745074137daf4922af05f/chrome/app/settings_strings.grdp
[modify] https://crrev.com/8948e4345bb7b09d205745074137daf4922af05f/chrome/browser/browser_resources.grd
[add] https://crrev.com/8948e4345bb7b09d205745074137daf4922af05f/chrome/browser/resources/page_not_available_for_guest/app.html
[modify] https://crrev.com/8948e4345bb7b09d205745074137daf4922af05f/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/8948e4345bb7b09d205745074137daf4922af05f/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
[add] https://crrev.com/8948e4345bb7b09d205745074137daf4922af05f/chrome/browser/ui/webui/page_not_available_for_guest/page_not_available_for_guest_ui.cc
[add] https://crrev.com/8948e4345bb7b09d205745074137daf4922af05f/chrome/browser/ui/webui/page_not_available_for_guest/page_not_available_for_guest_ui.h

Comment 9 by aee@chromium.org, Apr 19 2018

Status: Fixed (was: Started)
Labels: TE-Verified-68.0.3401.0 TE-Verified-M68
Able to reproduce this issue on Windows 10, Mac OS 10.12.6 and Ubuntu 14.04 on the build without fix 68.0.3400.0 and the issue is fixed on the latest Canary 68.0.3401.0.

In guest mode, on navigating to chrome://history and chrome://bookmarks, can see the message "Bookmarks/History is not available to Guest users.
Attached is the screen shot for reference.

Hence adding TE verified labels as the fix is working as intended.

Thanks..
813451.PNG
42.4 KB View Download
- The bookmark manager shows "Bookmarks is not available in Guest mode." I think that "Bookmarking is not available in Guest mode." might be better (you can't bookmark, not that you can't access your bookmarks).
- Flags can still be changed in Guest mode (see 798660 for more on that).
- The extensions page is styled completely differently from bookmarks and history. It offers to take you to the Chrome Web Store (even though you won't be able to install anything from there), and also has a weird "No search results found" string, even though no search was done.
- The history page shows "History is not available to Guest users."

Sign in to add a comment