WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
61679
screen.width and screen.height are stale after screen resize on Chromium Linux
https://bugs.webkit.org/show_bug.cgi?id=61679
Summary
screen.width and screen.height are stale after screen resize on Chromium Linux
Daniel Erat
Reported
2011-05-27 17:51:03 PDT
On Chromium Linux, we currently use XDisplayWidth() and XDisplayHeight() to get the screen dimensions in WebScreenInfoFactory (this code is only used for Chrome OS; the Linux port calls it but then overwrites the data that it returns). These dimensions are stale after the screen is resized. I have a patch to make us instead query the root window's geometry each time. Even better would be using XRandR to query the monitor dimensions, but that's a more involved change.
Attachments
Patch
(3.69 KB, patch)
2011-05-27 17:58 PDT
,
Daniel Erat
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Erat
Comment 1
2011-05-27 17:58:45 PDT
Created
attachment 95236
[details]
Patch
Tony Chang
Comment 2
2011-05-27 18:02:31 PDT
Comment on
attachment 95236
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95236&action=review
> Source/WebKit/chromium/src/x11/WebScreenInfoFactory.cpp:54 > + XGetGeometry( > + display, root, &rootRet, &x, &y, &width, &height, &border, &depth);
Should you check the return status?
Daniel Erat
Comment 3
2011-05-27 18:08:06 PDT
I don't think it'd accomplish anything: 1. I think that it's impossible for this to fail, and (more importantly), 2. If it does fail, we'll get an error back from the X server and crash. Xlib return values are sort of a joke. :-(
WebKit Commit Bot
Comment 4
2011-05-31 17:42:07 PDT
The commit-queue encountered the following flaky tests while processing
attachment 95236
[details]
: http/tests/websocket/tests/handshake-fail-by-sub-protocol-mismatch.html
bug 53809
(author:
abarth@webkit.org
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 5
2011-05-31 17:43:43 PDT
Comment on
attachment 95236
[details]
Patch Clearing flags on attachment: 95236 Committed
r87764
: <
http://trac.webkit.org/changeset/87764
>
WebKit Commit Bot
Comment 6
2011-05-31 17:43:47 PDT
All reviewed patches have been landed. Closing bug.
WebKit Commit Bot
Comment 7
2011-05-31 17:51:46 PDT
The commit-queue encountered the following flaky tests while processing
attachment 95236
[details]
: http/tests/websocket/tests/error-detect.html
bug 54012
(author:
abarth@webkit.org
) The commit-queue is continuing to process your patch.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug