New issue
Advanced search Search tips

Issue 681464 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 403257
Owner:
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

`navigator.platform` should return the emulated value in DevTools's emulated devices mode

Reported by ctengc...@gmail.com, Jan 16 2017

Issue description

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

Steps to reproduce the problem:
1.  Enable DevTools, and emulate as Nexus 6P, then navigate to http://pan.baidu.com/s/1jILT8t4
2. 
3. 

What is the expected behavior?
Page should be loaded as if client detected as a mobile device

What went wrong?
Baidu's JS scripts use `navigator.platform` (which returns "win32" value) to detect it is in Windows 10 desktop, and make a client rediect.

At lease developers should be able to foolish the real-world server by change `navigator.platform`'s return value in DevTools mode

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 55.0.2883.87  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 24.0 r0
 
Labels: Needs-Triage-M55
Components: Platform>DevTools

Comment 3 by caseq@chromium.org, Jan 17 2017

Components: -Platform>DevTools Platform>DevTools>Mobile
Owner: dgozman@chromium.org
Status: Assigned (was: Unconfirmed)
Mergedinto: 403257
Status: Duplicate (was: Assigned)

Sign in to add a comment