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

Issue 599077 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 1
Type: Bug-Regression



Sign in to add a comment

[MD] In Guest mode, inactive tab's title text is seen in black color instead of white

Reported by yfulgaon...@etouch.net, Mar 30 2016

Issue description

Chrome version : 50.0.2661.57 31761a6af4781d5cfd8ab5673f485a256dd5fe12-refs/branch-heads/2661@{#425} 32/64 bit
OS : Windows (Win 7 aero enabled)

Preconditions : 1. Enable 'Material design in the browser's top chrome' flag from chrome://flags

Steps : 
1. Launch chrome, open NTP, click on Avatar icon and go to Incognito mode.
2. Open 2-3 New Tabs and Minimize Incognito window.
3. Now switch to Guest mode, open 2-3 tabs and observe,.

Actual : The text of inactive tabs is seen black, instead it should be seen in white color as seen in Incognito mode.
Expected : The tab text should be seen in white color as seen in Incognito mode.

This is a regression issue broken in 'M-50' and below is the manual regression and narrow bisect info.
Good Build :  50.0.2631.0
Bad Build :  50.0.2633.0

Narrow Bisect : 
https://chromium.googlesource.com/chromium/src/+log/cd843581d8d3cce13d1791f4ff54938e13df388b..605adccc5336fbc83fb41fc6516c0e64eb3a0f79?pretty=fuller&n=10000

Suspecting : r371906 from narrow bisect

@estade : Could you please take a look

Note : Above issue is not seen on Mac/Linux OS. 
 
Actual_tab_text.mp4
866 KB Download
Expected_tab_text.mp4
557 KB Download
Labels: -M-51 M-50
Cc: est...@chromium.org
Labels: -M-50 M-52
Owner: pkasting@chromium.org
Summary: [MD] In Windows Guest mode, inactive tab's title text is seen in black color instead of white (was: Regression : [MD] In Guest mode, inactive tab's title text is seen in black color instead of white.)
For purely visual bugs such as this one, posting screenshots is more helpful than videos.

Not a priority in M-50 or M-51 since MD is not enabled by default on Windows. And since I don't think Linux has the concept of a "guest mode" (correct me if I am wrong on that) it looks like this is a Win-only issue. Handing over to Peter.
Labels: Needs-Feedback
I can't reproduce this on my Win trunk build, which is M-51.

Can you retest on trunk/canary?  If this doesn't reproduce there, we can close this, as we aren't worried about Windows MD bugs in M-50.
Owner: yfulgaon...@etouch.net

Comment 5 by est...@chromium.org, Mar 30 2016

yes, linux has guest mode. I'm pretty sure this bug is invalid. Everything looks good to me on tip of tree. Perhaps the reporter is noticing the fix to  bug 577376 
Cc: pkasting@chromium.org
Labels: -Needs-Feedback
Owner: est...@chromium.org
With response to comment #3 :
Rechecked above issue on ToT build 384192 and issue is still reproducible. Please refer the attached screenshot.
guest_tab_title.jpg
153 KB View Download
Labels: -M-52 ReleaseBlock-Stable M-50 OS-Chrome OS-Linux
Owner: pkasting@chromium.org
Summary: [MD] In Guest mode, inactive tab's title text is seen in black color instead of white (was: [MD] In Windows Guest mode, inactive tab's title text is seen in black color instead of white)
Hmmmmm.

The behavior in the video looked to me like the tabstrip was incorrectly caching the appearance of an incognito background tab as the guest mode background tab.  That's why on mouseover the tab's appearance changed so dramatically; that causes us to draw the tab anew instead of using the cached appearance.

Ultimately, the tabstrip determines "incognito" state as follows:

bool BrowserTabStripController::IsIncognito() {
  return browser_->profile()->IsOffTheRecord();
}

I assume that this code is incorrect: that it returns true for both incognito and guest windows, but in fact that ThemeProvider::GetColor(ThemeProperties::COLOR_BACKGROUND_TAB) will return different values for those.  That's certainly what the CL in the regression range indicates.

In any case, it seems like the likely fix is to change the implementation of BrowserTabStripController::IsIncognito() to this:

  return browser_->profile()->GetProfileType() == Profile::INCOGNITO_PROFILE;

I don't know why neither Evan nor I can reproduce this, but it's probably fastest and easiest for me to try landing this change, and then have the reporter retest the same environment/steps (in both a bad and good build, to ensure the bug hasn't mysteriously disappeared, and that this change fixes it).  If that works, then this should be merged to M-50, as it can in theory affect all views TabStrips, not just Windows, even if we're not sure precisely how to repro.
Labels: Needs-Feedback
Owner: yfulgaon...@etouch.net
OK, an attempted fix is in the queue: https://codereview.chromium.org/1845813002/

yfulgaonkar, once this fix lands (a bot should update this bug):

* Re-verify you can reproduce this consistently with a build just before the change goes in
* Test whether a build after the change goes in has fixed the problem
* In either case, assign back to me when done so I can either merge to M-50 or consider further what to do.
Project Member

Comment 9 by bugdroid1@chromium.org, Mar 31 2016

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

commit 3044c21c2c8dadd5531258238b8befe6e1ff21fb
Author: pkasting <pkasting@chromium.org>
Date: Thu Mar 31 07:28:35 2016

Suspected fix for a tab image caching bug.

If we cache the same image for guest and incognito tabs, but they use different
themes, we'll have drawing glitches.

I can't reproduce the original problem, so I'm going to try landing this and see
if the reporter sees things clear up.

BUG= 599077 
TEST=See bug
TBR=estade

Review URL: https://codereview.chromium.org/1845813002

Cr-Commit-Position: refs/heads/master@{#384210}

[modify] https://crrev.com/3044c21c2c8dadd5531258238b8befe6e1ff21fb/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
[modify] https://crrev.com/3044c21c2c8dadd5531258238b8befe6e1ff21fb/chrome/browser/ui/views/tabs/tab_controller.h
[modify] https://crrev.com/3044c21c2c8dadd5531258238b8befe6e1ff21fb/chrome/browser/ui/views/tabs/tab_strip_controller.h

Cc: -pkasting@chromium.org
Labels: -Needs-Feedback
Owner: pkasting@chromium.org
With response to comment #8 :
Rechecked above issue on ToT build 384213, it seems to be fixed and working as intended.
pkasting@ can we close this out if this is verified?
Labels: Merge-Request-50
If this is fixed, then I think we need to merge the fix to 50.
Labels: -M-50 -Merge-Request-50 -OS-Chrome M-51
Status: Fixed (was: Assigned)
Chrome OS has a different notion of "guest mode" than Win/Linux. You have to enter into it from the login screen, and you cannot open incognito windows (since the whole session is already being treated as if you were in incognito).  Issue 577376  set the correct theming for CrOS guest mode, and I just verified that it still looks correct on CrOS M-50 beta.

Since MD is not enabled by default on Windows or Linux in M-50, I do not think a merge is necessary here.

Peter, feel free to change back the labels if you disagree or if I am misunderstanding something here.

Sign in to add a comment