Bug 287955

Summary: [WPEPlatform] Restrict values used for screen output device scaling
Product: WebKit Reporter: Adrian Perez <aperez>
Component: WPE WebKitAssignee: Adrian Perez <aperez>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Adrian Perez
Reported 2025-02-19 06:37:44 PST
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
Adrian Perez
Comment 1 2025-02-19 06:45:34 PST
EWS
Comment 2 2025-02-20 01:42:45 PST
Committed 290696@main (d09efa1a1a10): <https://commits.webkit.org/290696@main> Reviewed commits have been landed. Closing PR #40850 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.