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

Issue 772661 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

system.storage.getInfo returns device name with null bytes

Reported by teodorma...@gmail.com, Oct 7 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
1. Use an extension that has "system.storage" permission
2. In the context of the extension (via DevTools) run chrome.system.storage.getInfo(devices => devices.forEach(device => console.log({name: device.name})))

What is the expected behavior?

What went wrong?
Storing one of the non-empty device names to a variable and running deviceName.length returns 260, running deviceName.charCodeAt(259) returns 0. Attempting to copy the full string from console output to Notepad results in nothing being pasted.

WebStore page: 

Did this work before? N/A 

Chrome version: 61.0.3163.100  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
deviceName.png
14.3 KB View Download
Labels: Needs-Triage-M61
Cc: ranjitkan@chromium.org
Labels: Needs-Feedback
@ teodormafia: Thanks for filing the issue, request you to please help us with a sample extension. This will help us to triage the issue better.

Thanks.!
This one reproduces the problem for me.

To install:
1. Unzip the archive into folder "extension".
2. Drag&Drop the folder to chrome://extensions page with Developer Mode turned on.
3. You should now have the "Test Extension" installed
4. Click on the "background page" link, to the right of "Inspect views".
5. In the opened DevTools select Console and click on Array() to expand it
extension.zip
610 bytes Download
Project Member

Comment 4 by sheriffbot@chromium.org, Oct 14 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "ranjitkan@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by hdodda@chromium.org, Oct 17 2017

Cc: hdodda@chromium.org
Labels: M-63
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on windows 7 & 10 using chrome M61 #61.0.3163.100 and M64 #64.0.3242.0 .

This issue is seen from M50 and is a non-regression issue.

Marking it as untraiged for further inputs on this.

Note : Issue is seen only on windows.

Thanks!
Owner: rdevlin....@chromium.org
Status: Assigned (was: Untriaged)
rdevlin@ for storage triage.

Sign in to add a comment