Fixing Broken HTML Document Icons
October 7, 2007
I recently ran into a problem on my system where all the HTML document icons had been reset to the generic default icon: ![]()
Apparently, the Minefield build of Firefox had at some point corrupted this icon. I found that I was unable to change or reset the icon through the Folder Options » File Types dialog in Windows Explorer. No matter what I tried, I couldn’t restore the icon, and it drove me nuts. Then I figured out what to do, thanks to this forum post at MozillaZine:
- Open RegEdit.
- Browse to the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxHTML registry branch.
- Delete the ShellEx\IconHandler registry key entry.
- Close RegEdit.
- In Windows Explorer, browse to the Documents and Settings\{username}\Local Settings\Application Data folder.
- Delete the iconcache.db file. It’s hidden, so you may need to tweak your Windows Explorer settings to see it.
- Reboot.
Problem solved!
Previous: Configuring the Linksys WRT54GL Next: Windows XP SP3 in Beta
thanks a lot 21-01-09 works on my vista 32 bye
Thanks, it works for me!
Thanks. It worked for me.
Thank you so much. Have been trying to find a fix for that problem for ages.
Your solution worked for my Vista x64.
Amazing, such a simple way around.
Thanks a lot
Bye TC
Great advice, hit the problem last night and this did the work. Thanks again!
This has been driving me crazy for months! I have seriously had at least a dozen other failed attempts at fixing this problem: file associations, reinstall, deleting the icon cache — nothing worked. Deleting that registry key was the answer.
You actually don’t need a reboot to see the icons. You can start task manager, click on the process tab, right click on explorer.exe and select “end process”. Once the process has ended, you can then click on the file menu (still in task manager), click on “New Task (Run…)”, type “explorer”, and then hit “ok”.
The icons show up again! Thank you so much!
Thank you very much! It worked for me.
I’m using Windows 7 RC 64 bits with Firefox 3.5.1
Alas I cant find ShellEx\IconHandler registry key entry, also the iconcache.db file does not exist, I am using Win XP X64 2003 SP2
Why not Mozilla fix this annoying error ?!
Kudos Dude!
This bug was eating my brains past several months, Icon Manager or other blah blah shitty stuffs couldn’t solve the problem, while the answer was a simple registry key
Thanks
i don’t have ShellEx\IconHandler. look on this shot: http://novey.free.fr/type/MWSnap207.jpg
I can find and delete iconcache.db but problem is still here.
I’m running under xp xp2
Hell yeah! That is the only solution that works!!!
I’m using Firefox 3.5.3 on Windows 7 x64…
Thanks,for once I found a tutorial easy to follow.
Wow thanks a lot for this, I’m not even using mozilla, I’m using Opera and I did this to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Firefox.HTML and it worked! Thank you!
worked for me… I noticed this IconHandler key in there, i guess it’s supposed to render a preview of the HTML file?? perhaps… odd maybe it’s not x64 compatible… anyway removing that brings back the familiar firefox document icon.
Thank you! I tried everything I could google up, but this is the only thing that worked. I also use Opera, but deleted the keys under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML
Yes Buck, you’re right, the same solution also helped me.
If this does not work, try this additional step. It’ll work for sure as this IS the solution:
1- After applying the above fix and before rebooting, also check this key:
HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\DefaultIcon
If the key’s value says “%1″, copy/paste this instead:
C:\Program Files (x86)\Mozilla Firefox\firefox.exe,1
>> when there is a blank icon that key is set to “%1″….with a new installation
this key is set to “C:\Program Files (x86)\Mozilla Firefox\firefox.exe,1″ (without “”).
Note: this path is for win 7 64-bits, it might bedifferent on other system. Simply enter the path to firefox.exe, followed by the “,1″.
It works! Thank you very much!
Great!!!It works!Thx!
Coco, It worksssssssssssssssssssssssssss
Thanks Cocoooooooooooooooooooooooooooooo
!!!!!!!!!!!!!!!!
You’re a legend, thankyou.
(Mine was broken because I’m using firefox portable, and deleted previous local install of firefox.)
Thank you so much. I’m a Windows 7 user and just discovered this problem today. Your helpful tip helped me to reassociate the Firefox icon with HTML documents.