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

Issue 694399 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Regression: Unwanted grey highlight is seen for Storage entries line after clicking on 'Clear All' icon

Reported by jshan...@etouch.net, Feb 21 2017

Issue description

Chrome Version: 58.0.3018.2 (Official Build) 9684a56837d6ddb675c417f4adf046583c8db38a-refs/branch-heads/3018@{#2}(32/64 Bit)
OS:  Windows(7,8,8.1,10), Mac(10.11.6, 10.12.1, 10.12), Linux (14.04 LTS)

Steps:
1. Launch Chrome, open devtools on NTP and go to Application section
2. Under 'Storage', click on 'Local Storage' and then on any link ex. chrome-search://most-visited
3. Now double click on entries line under 'Key' then click on 'Clear All' icon and observe

Actual: Unwanted grey highlight is seen for entries line after clicking on 'Clear All' icon

Expected: No such grey highlight should be seen for entries line after clicking on 'Clear All' icon

This is a regression issue broken in ‘M-58’, below is the Manual Regression range and will soon update other info.

Good build : 58.0.2993.0
Bad build : 58.0.2994.0

 
 
 
Actual_video.mp4
535 KB View Download
Expected_video.mp4
304 KB View Download

Comment 1 by jshan...@etouch.net, Feb 21 2017

Summary: Regression: Unwanted grey highlight is seen for Storage entries line after clicking on 'Clear All' icon (was: StRegression: Unwanted grey highlight is seen for Storage entries line after clicking on 'Clear All' icon)
Cc: kdzwinel@gmail.com
Labels: hasbisect-per-revision ReleaseBlock-Stable
Owner: phulce@chromium.org
Status: Assigned (was: Unconfirmed)
Using the per-revision bisect providing the bisect results,

You are probably looking for a change made after 446472 (known good), but no later than 446473 (first known bad).

CHANGE-LOG URL:
-----------------
https://chromium.googlesource.com/chromium/src/+log/9874e16e6ccd443a33d4207619e87c6fc6ad1dcd..42d8de0ce3d18a85197a8394be1d21f0aecb6d01

From the CL above, assigning the issue to the concern owner
Review-Url: https://codereview.chromium.org/2567873002

phulce@/kdzwinel@ - Unable to find the authors name in the owner list, so assigning to the reviewer. Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner.

Thanks!

Comment 3 by phulce@chromium.org, Feb 21 2017

Curious that the cookies table doesn't suffer from the same problem yet that was the target of the CL in question. I'll look into it.

Comment 4 by kdzwinel@gmail.com, Feb 21 2017

I gave it a quick look. Gray background is how non-focused selected elements look like. You will get that on any table row by selecting it and clicking outside the table. What happens in this video is: user selects special creationNode row, clicks "remove all" (taking away the focus from the table and giving selected element a gray background), table gets cleared but the special creationNode row is kept together with its selected state. This is reproducible on every editable table (including cookies), but happens only for the "add new" row. Not yet sure what in my CL causes this, but I can take a look if @phulce haven't started working on it yet.

Comment 5 by phulce@chromium.org, Feb 21 2017

Cc: eostroukhov@chromium.org
@kdzwinel thanks that'd be great if you could check if the cause came from there! I think the reporter is referring to the inconsistency between storage pane and cookies pane.

In the "actual" video, the focus is removed but the selection is kept when clicking on Clear All.
In the "expected" video and in the cookies pane, the focus and selection are both removed when clicking on Clear All.

Looping in @eostroukhov since he has also been working on storage panels recently. Have you noticed this when making your storage changes?

Comment 6 by kdzwinel@gmail.com, Feb 22 2017

Ah, you are correct, it's not reproducible on the cookies table. I was clicking 'delete selected' instead of 'clear all' when I tested it.

I went through my CL again and I did made some changes in dataGrid.css and dataGrid.js that are shared between Storage and Cookie tables. However, I don't see how those changes could have caused the issue in question.

The problem seems to be that `DOMStorageItemsView._domStorageItemsCleared` is not being called after storage was cleared (probably because it was already empty?). Calling it would deselect the creationNode.

BTW I played with Storage and Cookies some more and found two more inconsistencies in the related area:  https://crbug.com/694741  &  https://crbug.com/694759  .

Comment 7 by phulce@chromium.org, Feb 22 2017

Ok thanks for investigating kdzwinel! I can pick up the fixes for those.

Comment 8 by ajha@chromium.org, Feb 28 2017

Friendly ping to get an update on this.

Comment 9 by phulce@chromium.org, Feb 28 2017

Hey sorry, there's a CL I have that was approved but significant changes happened to the underlying code post-LGTM, and then I/reviewer were on serial PTO. Trying to push it through today.

To follow along: https://codereview.chromium.org/2714913002/
Project Member

Comment 10 by bugdroid1@chromium.org, Mar 1 2017

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

commit 63095504581ef0e664faf74614e5ca98f9cb9047
Author: phulce <phulce@chromium.org>
Date: Wed Mar 01 19:49:13 2017

DevTools: Fixes to Storage panel inconsistencies

* Fixes Backspace delete in CookiesTable
* Fixes selection preservation when 'Delete Selected' is used in CookiesTable
* Fixes selection removal when 'Clear All' is used in Storage panes

BUG= 694399 , 694741 

Review-Url: https://codereview.chromium.org/2714913002
Cr-Commit-Position: refs/heads/master@{#454002}

[modify] https://crrev.com/63095504581ef0e664faf74614e5ca98f9cb9047/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js
[modify] https://crrev.com/63095504581ef0e664faf74614e5ca98f9cb9047/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
[modify] https://crrev.com/63095504581ef0e664faf74614e5ca98f9cb9047/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js

Status: Fixed (was: Assigned)
Labels: TE-Verified-58.0.3029.6 TE-Verified-M58
Tested the issue on Latest Dev# 58.0.3029.6 on Windows, Mac and Linux and found the issue to be Fixed.
Grey highlight is not seen after Clear icon is clicked. Hence adding TE-Verified Labels.
Attaching Screencast for reference.
Thank You.
694399.ogv
1.3 MB View Download

Sign in to add a comment