Open Bug 1515851 Opened 7 years ago Updated 3 years ago

both screen.width and screen.height incorrect when multiple monitors

Categories

(Core :: Graphics, defect, P3)

64 Branch
x86_64
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vvianyy, Unassigned)

Details

(Whiteboard: [gfx-noted])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15 Steps to reproduce: Only happens when I have two monitors and when Firefox is in the Mac monitor. This is my navigator : Navigator { permissions: Permissions, mimeTypes: MimeTypeArray, plugins: PluginArray, doNotTrack: "unspecified", maxTouchPoints: 0, mediaCapabilities: MediaCapabilities, oscpu: "Intel Mac OS X 10.14", vendor: "", vendorSub: "", productSub: "20100101" } The steps to reproduce: open console, type: screen and press enter key, wait for the result. Actual results: Screen { availWidth: 960, availHeight: 529, width: 960, height: 540, colorDepth: 24, pixelDepth: 24, top: 0, left: 1280, availTop: 12, availLeft: 1280 } Expected results: Screen { height: 800, width: 1280, ..... } in which ... representing for other unrelated result
Hi, I'm having the same set up 2 monitors and my MAC monitor on the right but I was unable to reproduce this issue in Firefox 64.0 or Nightly 66.0a1 (2018-12-27), I'm always getting my 1080p resolution 1920x1080 for the width and height. Can you please try this issue with a fresh profile ? you can find the steps here https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles?redirectlocale=en-US&redirectslug=Managing-profiles#w_starting-the-profile-manager also please let us know if this issue occurs in our latest nightly build maybe its been fixed in the mean time, you can find the build here: https://nightly.mozilla.org/
Flags: needinfo?(vvianyy)
With a new profile, the issue still exists in Firefox 64.0 for Mac. This is the needinfo after: 1. read https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles?redirectlocale=en-US&redirectslug=Managing-profiles#w_starting-the-profile-manager 2. close firefox window; 3. add a new profile named issue; 4. click open firefox; 5. log in using github; 6. open console , type screen and press enter key; window.navigator.userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:64.0) Gecko/20100101 Firefox/64.0 In Nightly 66.0a1 , type screen and enter, it returns the same: { availHeight: 529 ​ availLeft: 1280 ​ availTop: 12 ​ availWidth: 960 ​ colorDepth: 24 ​ height: 540 ​ left: 1280 ​ mozOrientation: "landscape-primary" ​ onmozorientationchange: null ​ orientation: ScreenOrientation { type: "landscape-primary", angle: 0, onchange: null } ​ pixelDepth: 24 ​ top: 0 ​ width: 960 } This is the needinfo after: 1. download Firefox Nightly and install; 2. copy typed needinfo to sublime; 3. open Firefox Nightly and log in again; 4. open console , type screen and press enter key; window.navigator.userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0 The os system version is : macOS Mojave 10.14.2 The reply has taken about 20 minutes for me.
Flags: needinfo?(vvianyy)
BDSHYF000106121:prod yuanyuan07$ /Applications/Firefox.app/Contents/MacOS/firefox-bin -P Can't find symbol 'GetGraphicsResetStatus'. BDSHYF000106121:prod yuanyuan07$ Can't find symbol 'GetGraphicsResetStatus'. Can't find symbol 'GetGraphicsResetStatus'. Can't find symbol 'GetGraphicsResetStatus'. This is the output of profiles and it doesn't seem to be closed. Does it help?
Well. This issue occurs in my user's computer, and the product manager's and mine.
Component: Untriaged → Graphics
Product: Firefox → Core
OS: Unspecified → macOS
Priority: -- → P3
Hardware: Unspecified → x86_64
Whiteboard: [gfx-noted]

Same. Posting details here, but will search for and/or open new bug for crash on Mac OSX CLI -P argument launch causing crash`, as this bug is originally something different.

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0

MBP:/ clarson$ /Applications/Firefox.app/Contents/macOS/firefox -P "Any Profile"
Can't find symbol 'GetGraphicsResetStatus'.
MBP:/ user$

Followed by Crash Reporter.

Crash Reporter Details:

AdapterDeviceID: 0x0166
AdapterVendorID: 0x8086
Add-ons: fxmonitor%40mozilla.org:2.8,formautofill%40mozilla.org:1.0,screenshots%40mozilla.org:35.0.0,webcompat%40mozilla.org:3.0.0
BuildID: 20190124174741
ContentSandboxCapable: 1
ContentSandboxLevel: 3
CrashTime: 1549828384
DOMIPCEnabled: 1
Email: cklarson@gmail.com
EventLoopNestingLevel: 1
FramePoisonBase: 9223372036600930304
FramePoisonSize: 4096
InstallTime: 1549568294
MozCrashReason: MOZ_CRASH(Failed to get app dir paths)
Notes: FP(D00-L1000-W00000000-T000) WR? WR- OMTP? OMTP+4 
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: release
SafeMode: 0
SecondsSinceLastCrash: 1065
StartupCrash: 0
StartupTime: 1549828379
TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86-64","buildId":"20190124174741","version":"65.0","vendor":"Mozilla","displayVersion":"65.0","platformVersion":"65.0","xpcomAbi":"x86_64-gcc3","updaterAvailable":true},"partner":{"distributionId":null,"distributionVersion":null,"partnerId":null,"distributor":null,"distributorChannel":null,"partnerNames":[]},"system":{"memoryMB":16384,"virtualMaxMB":null,"cpu":{"count":8,"cores":4,"vendor":"GenuineIntel","family":6,"model":58,"stepping":9,"l2cacheKB":256,"l3cacheKB":6144,"speedMHz":2700,"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3","hasSSSE3","hasSSE4_1","hasSSE4_2","hasAVX","hasAES"]},"os":{"name":"Darwin","version":"18.2.0","locale":"en-US"},"hdd":{"profile":{"model":null,"revision":null},"binary":{"model":null,"revision":null},"system":{"model":null,"revision":null}},"gfx":{"D2DEnabled":null,"DWriteEnabled":null,"ContentBackend":"Skia","adapters":[{"description":null,"vendorID":"0x8086","deviceID":"0x0166","subsysID":null,"RAM":null,"driver":null,"driverVersion":null,"driverDate":null,"GPUActive":true}],"monitors":[{"screenWidth":1440,"screenHeight":900,"scale":2}],"features":{"compositor":"none","gpuProcess":{"status":"unused"},"wrQualified":{"status":"blocked"},"webrender":{"status":"opt-in"}}},"appleModelId":"MacBookPro10,1"},"settings":{"blocklistEnabled":true,"e10sEnabled":true,"e10sMultiProcesses":4,"telemetryEnabled":false,"locale":"en-US","update":{"channel":"release","enabled":true},"userPrefs":{"browser.cache.disk.capacity":860160,"browser.search.region":"US","browser.search.widget.inNavBar":false,"browser.startup.page":3},"sandbox":{"effectiveContentProcessLevel":3},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":null},"profile":{}}
ThreadIdNameMapping: 6:"Gecko_IOThread",6:"JS Watchdog",13:"JS Helper",8:"JS Helper",9:"JS Helper",10:"JS Helper",11:"JS Helper",12:"JS Helper",7:"JS Helper",14:"JS Helper",15:"Timer",16:"Socket Thread",18:"Cache2 I/O",19:"Cookie",21:"GMPThread",22:"Worker Launcher",23:"Compositor",24:"ImgDecoder #1",25:"ImageIO",26:"IPDL Background",28:"DOM Worker",37:"StyleThread#1",40:"StyleThread#4",36:"StyleThread#0",41:"StyleThread#5",38:"StyleThread#2",39:"StyleThread#3",41:"StreamTrans #17",36:"ImageBridgeChild",
Throttleable: 1
UptimeTS: 4.44807424
Vendor: Mozilla
Version: 65.0
useragent_locale: en-US

This report also contains technical information about the state of the application when it crashed.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.