WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED MOVED
66587
Consider using the view's host window's backing scale factor when the view is not in a window
https://bugs.webkit.org/show_bug.cgi?id=66587
Summary
Consider using the view's host window's backing scale factor when the view is...
Adam Roben (:aroben)
Reported
2011-08-19 14:06:59 PDT
Bug 66564
is about what WebKit's behavior should be wrt. the device scale factor when the WebView/WKView isn't in a window. One special case of this is when the view isn't in a window but it does have a host window. In that case, we could choose to use the backing scale factor of the host window. This would have the advantage of having window.devicePixelRatio return the same value for all tabs in a Safari window. (Background tabs have a host window but aren't in a window.) The only reason I can think of why we wouldn't want to do this is because it would mean we wouldn't match AppKit's idea of the view's scale factor, and it's possible that could cause problems. But maybe it won't!
Attachments
Add attachment
proposed patch, testcase, etc.
Adam Roben (:aroben)
Comment 1
2011-08-19 14:07:31 PDT
Note that WKView has no host window concept. We'd have to add one if we wanted to do this.
Radar WebKit Bug Importer
Comment 2
2011-08-19 15:13:12 PDT
<
rdar://problem/9987507
>
Brent Fulgham
Comment 3
2022-06-23 11:33:43 PDT
This was addressed in Safari, not WebKit.
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