Bug 287955
| Summary: | [WPEPlatform] Restrict values used for screen output device scaling | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> |
| Component: | WPE WebKit | Assignee: | Adrian Perez <aperez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Adrian Perez
Currently we allow values between 0.0 and G_MAXDOUBLE for the Screen:scale property, but the zero value should be forbidden to avoid ending up with a 0x0 physical output pixel size, and too high values would cause huge output pixel sizes. In practice, allowing scaling by twenty times smaller (0.05) or bigger (20.0) than 1:1 rendering should be way more than enough for any use case.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adrian Perez
Pull request: https://github.com/WebKit/WebKit/pull/40850
EWS
Committed 290696@main (d09efa1a1a10): <https://commits.webkit.org/290696@main>
Reviewed commits have been landed. Closing PR #40850 and removing active labels.