WebPageProxy::requestAttachmentIcon should only be called if the attachment element is enabled. Also, passing a full pathname when creating the icon for the attachment is not needed, it is sufficient to create a dummy filename with the same extension.
<rdar://96832034>
Pull request: https://github.com/WebKit/WebKit/pull/2364
Committed 252533@main (334993de44ee): <https://commits.webkit.org/252533@main> Reviewed commits have been landed. Closing PR #2364 and removing active labels.