Article View: alt.windows7.general
Article #72Re: HTML Icon
From: Paul
Date: Mon, 30 Nov 2026 07:48
Date: Mon, 30 Nov 2026 07:48
197 lines
7374 bytes
7374 bytes
On Sun, 11/29/2026 4:06 PM, David E. Ross wrote:
> On 11/29/2026 12:33 AM, Paul wrote:
>
> [snipped]
>
>> In the sample VM I dug up, I could see copious usage of FirefoxHTML-nnnnnnn
>> type construct once Firefox 115ESR was installed. The nnnnnnn might have
>> some relationship to a progID but it was being used in this case as a
>> decoration. I figured it was time to give this a whirl.
>>
>> ******* CoPilot Question *******
>>
>> Windows 7 - what registry area sets the DefaultIcon on a
>> data file, once Firefox is made the Default Browser ?
>>
>> Where should I look, if attempting to correct a "blank" icon
>> for an html ot htm file in my Downloads folder ?
>>
>> ******* CoPilot Answer *******
>>
>> On Windows 7, once Firefox becomes the default browser, the icon shown for
>> .htm and .html files is usually determined through the file association chain:
>>
>> .html --> htmlfile (or FirefoxHTML)
>> |
>> +--> DefaultIcon
>>
>> The registry locations worth checking are:
>>
>> 1. Extension association
>>
>> HKEY_CLASSES_ROOT\.html
>> HKEY_CLASSES_ROOT\.htm
>>
>> The default value typically points to a ProgID such as:
>>
>> htmlfile
>> or
>> FirefoxHTML
>>
>> You can also check the per-user override:
>>
>> HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice
>> HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice
>>
>> The Progid value there often takes precedence.
>>
>> 2. The ProgID's DefaultIcon key
>>
>> If the ProgID is FirefoxHTML, inspect:
>>
>> HKEY_CLASSES_ROOT\FirefoxHTML\DefaultIcon
>>
>> Typical value:
>>
>> "C:\Program Files\Mozilla Firefox\firefox.exe",1
>>
>> (or similar)
>>
>> If the ProgID is htmlfile, inspect:
>>
>> HKEY_CLASSES_ROOT\htmlfile\DefaultIcon
>>
>> Typical Windows value:
>>
>> %SystemRoot%\System32\ieframe.dll,-190
>>
>> 3. Firefox application registration
>>
>> Firefox also registers under:
>>
>> HKEY_CLASSES_ROOT\Applications\firefox.exe
>>
>> and sometimes:
>>
>> HKEY_CLASSES_ROOT\FirefoxHTML
>>
>> Look for:
>>
>> FirefoxHTML\DefaultIcon
>>
>> and:
>>
>> FirefoxHTML\shell\open\command
>>
>> If DefaultIcon is missing or references a nonexistent file, Explorer may display a blank icon.
>>
>> 4. Verify the icon resource actually exists
>>
>> A common failure mode is that the registry points to:
>>
>> "C:\Program Files\Mozilla Firefox\firefox.exe",1
>>
>> but:
>>
>> Firefox was moved
>> Firefox was uninstalled/reinstalled
>> the icon index is invalid
>> a 32-bit/64-bit path mismatch exists
>>
>> In that case Explorer frequently falls back to a blank document icon.
>>
>> 5. Icon cache corruption
>>
>> If the registry entries look correct, the next suspect is the icon cache.
>>
>> Windows 7 stores icon cache files under:
>>
>> %LOCALAPPDATA%
>>
>> typically:
>>
>> C:\Users\<username>\AppData\Local\IconCache.db
>>
>> Deleting the icon cache and restarting Explorer (or rebooting) often
>> fixes a blank icon when the registry data is already correct.
>>
>> Quick diagnostic
>>
>> Open a command prompt and run:
>>
>> assoc .html
>> assoc .htm
>>
>> Example:
>>
>> .html=FirefoxHTML
>> .htm=FirefoxHTML
>>
>> Then run:
>>
>> ftype FirefoxHTML
>>
>> to verify which ProgID is actually being used.
>>
>> Finally inspect:
>>
>> HKEY_CLASSES_ROOT\FirefoxHTML\DefaultIcon
>>
>> That registry key is usually the first place I would look for a
>> blank icon on .htm and .html files in a Downloads folder
>> after Firefox has been set as the default browser.
>>
>> ******* End: CoPilot Answer *******
>>
>> Paul
>>
>
> Using RegEdit, I searched for all instances of FirefoxHTML and also
> SeaMonkeyHTML, maing sure that DefaultIcon pointed to my desired icon.
> A few instance required changing the value of DefaultIcon. I then
> deleted IconCache.db from my C:\Users\David\AppData\Local.
>
> After terminating Windows and doing a cold boot, no success. );
>
I followed the LLM-AI train of thought, and I ended up (via UserChoice override) at:
HKCR\FirefoxHTML-30804680AF4A39CB
DefaultIcon REG_SZ C:\Program Files\Mozilla Firefox\firefox.exe,1
Using 7ZIP on Firefox.exe (Firefox Setup 115.10.0esr--x86.exe), shows
.rsrc
ICON
1.ico Plain firefox logo with mask for background to leak through
4
8
12 These are a purple sheet with bent upper-right corner
and Plain firefox logo laid on top
And it would seem File Explorer is displaying 8 right now.
On my Win7 then, the UserChoice name is FirefoxHTML-30804680AF4A39CB .
Whereas on Windows 11, with some old copy of Firefox, the
document icon is Plain firefox logo with mask for background to leak through.
And File Explorer displays this as a white sheet with a bent upper-right corner
and the Plain firefox icon on top of it.
So while the resource path would tend to suggest 1.ico be used,
in practice multiple icon sizes are in the ICON folder and by
some means the software picks the one with the right dimensions
(like 64x64 icon instead of 16x16 kind of thing).
The same thing can happen with cache implementations in Windows.
There can be a db for each size, and the size File Explorer is
looking for is the one it will use. Presumably all of the
sizes are consulted during installation or so. One version of
Windows, put them all in one file, later on the database files
were split out, according to size (large icon, extra large icon).
You can change the File Explorer icon choice in the view options
and try out the various sizes. The ones I get in my Windows 7 VM
from small icons to extra large icons are consistent, purple sheet
with the orange logo in the center.
Paul
Technical Details
Message-ID:
<11ej9od$7gt4$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11edma1$28vh4$1@dont-email.me> <121vc1oa0mb3j.dlg@v.nguard.lh> <11edq81$2a0j1$1@dont-email.me> <19sgpg2cvsnma$.1nxgre96j807g$.dlg@40tude.net> <11egdke$382eu$1@dont-email.me> <11ego0r$3av5f$1@dont-email.me> <11ei449$3s07s$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Paul <nospam@needed.invalid> Newsgroups: alt.windows7.general Subject: Re: HTML Icon Date: Mon, 30 Nov 2026 02:48:27 -0500 Organization: A noiseless patient Spider Lines: 197 Message-ID: <11ej9od$7gt4$1@dont-email.me> References: <11edma1$28vh4$1@dont-email.me> <121vc1oa0mb3j.dlg@v.nguard.lh> <11edq81$2a0j1$1@dont-email.me> <19sgpg2cvsnma$.1nxgre96j807g$.dlg@40tude.net> <11egdke$382eu$1@dont-email.me> <11ego0r$3av5f$1@dont-email.me> <11ei449$3s07s$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 30 Nov 2026 07:48:30 +0000 (UTC) Injection-Info: dont-email.me; logging-data="246692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+A3VxC3cm0JOr1m//p3cDFhxcR6jD3Csk="; posting-host="398b0c300adab4f66a445b69cbec31bf" User-Agent: THIS SPACE FOR RENT Cancel-Lock: sha1:54L/H3unFFAdd9w7O63q9GslB1Y= sha256:PyWgCB9C/3EdICPrYw6TmTIHED8TbHFxNq2QZZStEco= sha1:oi8AlO2zM6yF9pXm9dmKshD9KZ0= sha256:o8UV0/MuJW5b9Afj8JpvS4vNs4k4HN7Myuqv+UnJG1Y= In-Reply-To: <11ei449$3s07s$1@dont-email.me> Content-Language: en-US