Bug 253364

Summary: Sync 'naturalWidth' and 'naturalHeight' with Spec and change from 'int' to 'unsigned'
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2023-03-03 17:26:09 PST
Hi Team,

Looking into HTMLImageElement.cpp, I noted that we have 'naturalWidth' and 'naturalHeight' as 'int' rather than 'unsigned' while spec says that it should be 'unsigned'.

Web-Spec: https://html.spec.whatwg.org/#the-img-element

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLImageElement.cpp#569 & https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLImageElement.cpp#577 & https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLImageElement.idl#39 etc.

Appreciate if someone can confirm whether this is still pending or we have it as intentional?

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-03-10 17:27:16 PST
<rdar://problem/106580337>
Comment 2 EWS 2023-07-25 14:12:29 PDT
Committed 266302@main (e7d267d296c7): <https://commits.webkit.org/266302@main>

Reviewed commits have been landed. Closing PR #16075 and removing active labels.