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:
,
Oct 9 2017
@ 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.!
,
Oct 14 2017
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
,
Oct 14 2017
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
,
Oct 17 2017
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!
,
Oct 27 2017
rdevlin@ for storage triage. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by nyerramilli@chromium.org
, Oct 9 2017