New issue
Advanced search Search tips

Issue 789655 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 1
Type: Bug

Blocking:
issue 780164


Show other hotlists

Hotlists containing this issue:
XXX


Sign in to add a comment

MD extensions in "developer mode" should clip URLs in "Inspect view" regardless of protocol

Reported by woxxom@gmail.com, Nov 29 2017

Issue description

Google Chrome	64.0.3280.0 (Official Build) canary (64-bit)

========================================

1. install a devtools extension e.g. Storage Area Explorer
   https://chrome.google.com/webstore/detail/storage-area-explorer/ocfjjjjhkpapocigimmppepjgfdecjkb
2. open chrome://extensions page
3. enable "Developer mode" in the top-right corner
4. open devtools on this page
   (Ctrl-Shift-I or by right-clicking the page, then Inspect)

Expected: the "Inspected view" area doesn't overflow
Observed: the "Inspected view" area overflows and covers other items if present,
          the displayed URL is chrome-devtools://devtools/bundled/inspector.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@12d6a1a2daf69e7fed839a65b0d1284021056b6a/&can_dock=true&dockSide=undocked&experiments=true (iframe),

========================================

The relevant code in computeInspectableViewLabel() doesn't check for any URL protocol except for chrome-extension://
https://cs.chromium.org/chromium/src/chrome/browser/resources/md_extensions/item_util.js?l=111&rcl=3ffc2457afa5d1c2d6450c40805fc13863a67355

Last relevant CL is r455099
 
bad.png
15.3 KB View Download
Cc: -rdevlin....@chromium.org
Owner: rdevlin....@chromium.org
Status: Started (was: Unconfirmed)
Labels: Proj-MaterialDesign-WebUI Hotlist-Polish OS-Chrome OS-Linux OS-Mac OS-Windows
Project Member

Comment 3 by bugdroid1@chromium.org, Dec 5 2017

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

commit 4ff73a7945b89f4971734dc634ac2885269f5fa3
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date: Tue Dec 05 03:15:07 2017

[MD Extensions] Fix long inspect views on card rendering

Inspectable views can have any url, including some maddeningly long
ones. We need to ensure that these render appropriately on the
extension's card in the main view of the chrome://extensions page.
Make the following changes:
- Ensure that the inspect views section does not grow beyond the
  content area.
- Ensure that the "Inspect views" and "n more..." are always visible
- Adjust the overflow for the shown inspectable view to be hidden
  behind ellipses, and have the title text have the full label.

Bug:  789655 

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Icb6b769ed96c5775ea34a62eb15b89dbf625d124
Reviewed-on: https://chromium-review.googlesource.com/802095
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521601}
[modify] https://crrev.com/4ff73a7945b89f4971734dc634ac2885269f5fa3/chrome/browser/resources/md_extensions/item.html
[modify] https://crrev.com/4ff73a7945b89f4971734dc634ac2885269f5fa3/chrome/browser/resources/md_extensions/item.js

Cc: rbasuvula@chromium.org
Verified the issue on Windows-7 and Mac OS 10.12.6 using chrome latest Canary M65-65.0.3286.0 by following steps mentioned in the original comment. Observed that MD extensions in "developer mode" URLs are displaying in "Inspect view"  as expected.

Please find the screen shot for reference.

Linux - Due to build failure(#65.0.3286.0) unable to check in Linux. Will check and update the Linux behaviour and Verified labels once build is available.

Thank you!
789655.png
295 KB View Download
This should be fixed.  woxxom@, let us know if you find any other weirdness.
Status: Fixed (was: Started)
Blocking: 780164
Cc: dpa...@chromium.org
Labels: -Pri-3 Merge-Request-64 Pri-1
Project Member

Comment 8 by sheriffbot@chromium.org, Dec 14 2017

Labels: -Merge-Request-64 Hotlist-Merge-Review Merge-Review-64
This bug requires manual review: M64 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Merge-Review-64 Merge-Approved-64
Approving merge to M64. Branch:3282
Project Member

Comment 10 by bugdroid1@chromium.org, Dec 16 2017

Labels: -merge-approved-64 merge-merged-3282
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/383c24958e2e1e493b0adac3a0e77bed71a07d06

commit 383c24958e2e1e493b0adac3a0e77bed71a07d06
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date: Sat Dec 16 01:45:17 2017

[MD Extensions] Fix long inspect views on card rendering

Inspectable views can have any url, including some maddeningly long
ones. We need to ensure that these render appropriately on the
extension's card in the main view of the chrome://extensions page.
Make the following changes:
- Ensure that the inspect views section does not grow beyond the
  content area.
- Ensure that the "Inspect views" and "n more..." are always visible
- Adjust the overflow for the shown inspectable view to be hidden
  behind ellipses, and have the title text have the full label.

Bug:  789655 

TBR=rdevlin.cronin@chromium.org

(cherry picked from commit 4ff73a7945b89f4971734dc634ac2885269f5fa3)

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Icb6b769ed96c5775ea34a62eb15b89dbf625d124
Reviewed-on: https://chromium-review.googlesource.com/802095
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#521601}
Reviewed-on: https://chromium-review.googlesource.com/830490
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/branch-heads/3282@{#251}
Cr-Branched-From: 5fdc0fab22ce7efd32532ee989b223fa12f8171e-refs/heads/master@{#520840}
[modify] https://crrev.com/383c24958e2e1e493b0adac3a0e77bed71a07d06/chrome/browser/resources/md_extensions/item.html
[modify] https://crrev.com/383c24958e2e1e493b0adac3a0e77bed71a07d06/chrome/browser/resources/md_extensions/item.js

Labels: TE-Verified-M65 TE-Verified-M64 TE-Verified-64.0.3282.39 TE-Verified-65.0.3299.0
Verified the issue on Windows-7, Ubuntu 14.04 and Mac OS 10.12.6 using chrome latest Beta M64-64.0.3282.39 and as per comment #4 verified in latest canary #65.0.3299.0 by following steps mentioned in the original comment. Observed that MD extensions in "developer mode" URLs are displaying in "Inspect view"  as expected.Hence adding TE-Verified label.

Please find the screen shot for reference.

Thank You!
789655(Linux.).png
268 KB View Download
789655(Mac).png
224 KB View Download

Sign in to add a comment