If you have the Accessibility Verifier application (part of the Xcode Tools) installed, then when you type "file:" or "file:::" in Safari's address bar, the icon in the address bar changes to the Accessibilty Verifier application icon. Accessibility Verifier registers the "????" file type with Launch Services. -[WebIconDatabase _iconForFileURL:withSize] calls [workspace iconForFileType:@"????"] for getting the generic icon. I think the correct call is [workspace iconForFileType:NSFileTypeForHFSTypeCode(kGenericDocumentIcon)];
Created attachment 5053 [details] suggested patch
Comment on attachment 5053 [details] suggested patch Nice solution.
Sounds like a bug w/ Accessibility Verifier.