New issue
Advanced search Search tips

Issue 844394 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

navigator.deviceMemory return different value for different pages

Reported by leehom...@gmail.com, May 18 2018

Issue description

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

Steps to reproduce the problem:
1. open different pages
2. typed navigator.deviceMemory

What is the expected behavior?
return the size of memory

What went wrong?
different value return, sometime is 'undefined' , sometime is '8'

Did this work before? N/A 

Does this work in other browsers? No
 when i typed 'navigator.deviceMemory' it returned 'undefined' ,however , i try it several time,it returned '8' sometime.

Chrome version: 66.0.3359.139  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Labels: Needs-Triage-M66
Cc: susan.boorgula@chromium.org
Labels: Triaged-ET Needs-Feedback
leehom913@ Thanks for the issue.

Tested this issue on Windows 10, 7, Mac OS 10.13.3 on the reported version 66.0.3359.139 and the latest Canary 68.0.3436.0 and unable to reproduce the issue.

On entering 'navigator.deviceMemory' in console, it is returning 8 in all the pages.
Attached is the screen cast for reference.

Request you to update chrome to the latest Stable, retry the issue on a new chrome profile without any flags,extensions and update the thread with the observations.

thanks,,''
844394.mp4
2.0 MB View Download
Project Member

Comment 4 by sheriffbot@chromium.org, May 22 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

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

Comment 5 by leehom...@gmail.com, May 22 2018

sorry, please download it
Labels: M-68 FoundIn-68 Target-68 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
leehom913@ Thanks for the update

Able to reproduce the issue on Windows 10, Mac OS 10.13.3 and Ubuntu 14.04 on the latest Canary 68.0.3439.0 and Stable 66.0.3359.181 as per comment #3.

In the latest Chrome builds, On navigating to the link given in comment #3, entering 'navigator.deviceMemory' in console, it is returning undefined. On any other webpage, navigator.deviceMemory is returning 8 .

In M-60 builds, entering navigator.deviceMemory on any page is returning undefined.
Attached is the screen shot for reference.

This is a Non-Regression issue as this behavior is observed from M60 Chrome builds.
Hence marking this as Untriaged for further updates from Dev.

Thanks..
844394-M60.PNG
94.2 KB View Download

Comment 7 by fergal@chromium.org, May 29 2018

Owner: fmea...@chromium.org
This does not seem like a DOM bug. fmeawad@, history shows you touching this a little at least, any idea where to send this bug?
Cc: panicker@chromium.org
Components: -Blink>DOM Blink>PerformanceAPIs
Status: WontFix (was: Untriaged)
Thank you for reporting the issue.

This is is WAI,

navigator.deviceMemory only works in secure pages. The page in the example that is returning undefined is an http page (unsecure page).

If you consult sections 3 and 4 of the spec: https://w3c.github.io/device-memory/#sec-device-memory-js-api
you will find that in the definition it mentions that it is only available for secure context, and in the consideration section it mentions that it will only be available in https pages.

Comment 9 by leehom...@gmail.com, May 30 2018

Thank you very much for your answer~

Sign in to add a comment