Firefox default but Windows Media Player opens .html files

User Help for Mozilla Firefox
User avatar
KenAlcock
Posts: 14
Joined: May 19th, 2009, 12:46 pm

Firefox default but Windows Media Player opens .html files

Post by KenAlcock »

I did search the forums for this topic and googled for it. One other person had a somewhat similar issue, but his was on start-up and his fix does not apply to my situation.

So for about 6-8 month now, the following happens with each new Firefox update:

  1. Install new Firefox update.
    NOTE: I always shut down my browser for such an update.

  2. During the update, my Firefox profile gets completely blown away, with a saved folder on my Windows Desktop to everything inside of it.

    Q: In the past, I remember my: add-ons, extensions and other profile-related settings being carried forward from version-to-version. Any incompatible add-ons or extensions were simply disabled. Did this process change or is this an issue in and of itself?

  3. I can't remember if it is during the update or sometime after, but Firefox will prompt me to be the default browser.
    NOTE: I always set Firefox to my windows default browser.

  4. I manually re-install all of my Firefox add-ons, and reconfigure my browser all over again.

  5. Eventually, I will double click one of many .html or .htm files I have saved on my computer. At which time, Windows Media Player, not Firefox, will attempt to open the file, which of course results in failure.

  6. At this time I get smart, right-click the file, and use the "open with" option and configure it to use Firefox.

  7. The very next time I launch Firefox, it will once again prompt me to ask if I want it to be my default browser.
    NOTE: If I set Firefox to my windows default browser again, then the next time I double-click an .html or .htm file, then it will be Windows Media Player trying to open it, not Firefox.

It is as if Windows Media Player and Firefox have installed a new application named Whack-a-Mole. I can work around this by setting Firefox as my default, and disabling it from checking further that it is the default, and then going to manually set .html and .htm files to open in Firefox. And all of that will last until the next update when I get to play the whole game over again from the start.

Q: Any ideas what is happening or why here?

My system and Firefox data:

Application: Firefox 16.0.2 (20121024073032)
Operating System: Windows Vista Ultimate Edition 32-bit

November 19, 2012

Total number of items: 16


Applicable Windows Registry Values:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\OpenWithList]
"a"="firefox.exe"
"MRUList"="ba"
"b"="Notepad2.exe"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\OpenWithProgids]
"htmlfile"=hex(0):
"FirefoxHTML"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice]
"Progid"="Applications\\firefox.exe"


Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\OpenWithList]
"a"="firefox.exe"
"MRUList"="ba"
"b"="Notepad2.exe"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\OpenWithProgids]
"htmlfile"=hex(0):
"FirefoxHTML"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice]
"Progid"="Applications\\firefox.exe"
Last edited by KenAlcock on November 20th, 2012, 8:21 pm, edited 2 times in total.
Kenneth R. Alcock
"I'm still looking for that damned <Any> key!"
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Firefox default but Windows Media Player opens .html fil

Post by patrickjdempsey »

I'm very confused. How does Firefox update if it's shut down? Also, the default browser question usually only appears when you *install* Firefox. Also the profile deletion sounds suspiciously like your entire Firefox installation is being uninstalled with the option selected to delete all user data.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
User avatar
malliz
Folder@Home
Posts: 43796
Joined: December 7th, 2002, 4:34 am
Location: Australia

Re: Firefox default but Windows Media Player opens .html fil

Post by malliz »

What is your security software?
What sort of man would put a known criminal in charge of a major branch of government? Apart from, say, the average voter.
"Terry Pratchett"
User avatar
KenAlcock
Posts: 14
Joined: May 19th, 2009, 12:46 pm

Re: Firefox default but Windows Media Player opens .html fil

Post by KenAlcock »

Answers to the above questions.

A: There is absolutely no security software that comes into play for this issue. My system is behind a two different hardware firewalls, and I never install software on my PC that I do not first test inside a virtual environment. Instead of keeping security software running all the time, I periodically run system scans from portable drives.

A: If you have a Firefox browser window open when it finds an update, it will ask you to shut it down. However, I usually download the latest version of Firefox and install it while the browser is shut down. The word "update" was meant to imply installing the latest version.
Kenneth R. Alcock
"I'm still looking for that damned <Any> key!"
User avatar
KenAlcock
Posts: 14
Joined: May 19th, 2009, 12:46 pm

Re: Firefox default but Windows Media Player opens .html fil

Post by KenAlcock »

And before anyone suggest it, I should note that I have tried using the Windows Vista function to set your program defaults to all Internet Explorer, then switching them back to Firefox. I still get the same results.
Kenneth R. Alcock
"I'm still looking for that damned <Any> key!"
User avatar
JayhawksRock
Posts: 10433
Joined: October 24th, 2010, 8:51 am

Re: Firefox default but Windows Media Player opens .html fil

Post by JayhawksRock »

[delete] wrong thread sorry
Last edited by JayhawksRock on November 20th, 2012, 8:46 pm, edited 1 time in total.
"The trouble with quotes on the internet is you never know if they are genuine" ...Abraham Lincoln
User avatar
malliz
Folder@Home
Posts: 43796
Joined: December 7th, 2002, 4:34 am
Location: Australia

Re: Firefox default but Windows Media Player opens .html fil

Post by malliz »

Did you install Firefox in the default location?
You could try right click on a html document and choose open with "choose default program" For some reason the file associations on your computer are messed up. What worries me most of all is your profile loss.
What sort of man would put a known criminal in charge of a major branch of government? Apart from, say, the average voter.
"Terry Pratchett"
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Firefox default but Windows Media Player opens .html fil

Post by patrickjdempsey »

That is definitely not normal Firefox behavior, normally Firefox updates in the background while it is running and then asks you to restart it to apply the update. This process only replaces the few files required for the update. It is completely unnecessary to uninstall/reinstall Firefox to apply an update.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Firefox default but Windows Media Player opens .html fil

Post by patrickjdempsey »

I think he lost his profile due to uninstalling/reinstalling Firefox for some reason instead of just updating. Profile deletion being an option of the uninstaller. It's also possible that for some reason his old profile was renamed and isolated and a new profile created.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
User avatar
malliz
Folder@Home
Posts: 43796
Joined: December 7th, 2002, 4:34 am
Location: Australia

Re: Firefox default but Windows Media Player opens .html fil

Post by malliz »

Yep that could be the case. It's pretty rare to lose a profile just installing a new version over the top though. Before the update tool for nightly became usable. I used to install over the top all the time.
What sort of man would put a known criminal in charge of a major branch of government? Apart from, say, the average voter.
"Terry Pratchett"
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Firefox default but Windows Media Player opens .html fil

Post by patrickjdempsey »

Are you running Firefox inside of a sandbox maybe?
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
User avatar
KenAlcock
Posts: 14
Joined: May 19th, 2009, 12:46 pm

Re: Firefox default but Windows Media Player opens .html fil

Post by KenAlcock »

Okay, I managed to fix this issue myself...finally. 8-) There is another Windows registry area that deals with how any file type is opened. (And I should have figured this out much earlier because I have worked with the Windows registry before.) I'll post what happened here so others may benefit.

I was poking around again tonight trying to fix this and I finally found the clue that I missed before under:

Open the "Set Default Programs" dialog - Click on "Firefox" in the list of programs - Click on "Choose defaults for this program"

There are several html document file extensions displayed in the list: .htm, .html, .shtml, .xht, and .xhtml. Each of these extensions has a description of: "Firefox HTML Document". Before I fixed my issues, the "Current Default" field displayed Windows Media Player (despite the steps I took above). As I mentioned above, I inspected the .html and .htm registry listings and they still store now (after my issue is fixed) exactly what I posted in my first post. However, this is not the end of file association Windows Registry entries. The key clue was the file type Description of: "Firefox HTML Document". That is the proper file type installed in the Windows registry. And if you inspect the registry exports I posted earlier, you will not see that description in either of those. That is because Windows does not actually store File Type Descriptions under the HKCU hive, those go under HKEY_CLASSES_ROOT. So basically there is one file type, but it could have many different extensions associated with it. And Windows can store associated applications under both hives. One is system-wide and one is per-user. So all I needed to do was search the registry for: "Firefox HTML Document", which found me the key and related settings below (what you see below is correct after fixing my issue).

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\FirefoxHTML]
@="Firefox HTML Document"
"FriendlyTypeName"="Firefox HTML Document"
"EditFlags"=dword:00000002

[HKEY_CLASSES_ROOT\FirefoxHTML\DefaultIcon]
@="C:\\Program Files\\Mozilla Firefox\\firefox.exe,1"

[HKEY_CLASSES_ROOT\FirefoxHTML\shell]

[HKEY_CLASSES_ROOT\FirefoxHTML\shell\open]

[HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command]
@="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -osint -url \"%1\""

[HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec]
@=""


In addition to the correct keys noted above, there was an additional subkey of [HKEY_CLASSES_ROOT\FirefoxHTML\shell\play]. And under that subkey were entries that point to Windows Media Player. How they got there I have absolutely no clue, but they were what was telling Windows to hand off HTML documents to Windows Media Player.

So bascially the behind-the-scenes sequence of events is:

  1. User double-clicks a file.
  2. Windows checks the file extension.
  3. Windows resolves the file extension into the correct file type.
  4. Windows goes through a precedence of commands listed below the file type registry key and picks the most appropriate action to take

    NOTE: Apparently if you have both a play and an open action, play will be the default action. It's been awhile since I played in the registry, but I believe there is a way to designate a default action when double-clicking a file, but I don't remember how at this point.
So the fix was a simple, close the browser, delete the HKEY_CLASSES_ROOT\FirefoxHTML registry key and let Firefox put it back when it launched next. And this time without the erroneous play entry pointing to Windows Media Player.

The case is closed.

As to the profile thing. I consider that a separate issue. Next Firefox update, I will completely uninstall Firefox, and start with a clean profile for that one. I just wasn't sure if they were related things or not.
Kenneth R. Alcock
"I'm still looking for that damned <Any> key!"
User avatar
KenAlcock
Posts: 14
Joined: May 19th, 2009, 12:46 pm

Re: Firefox default but Windows Media Player opens .html fil

Post by KenAlcock »

patrickjdempsey wrote:I think he lost his profile due to uninstalling/reinstalling Firefox for some reason instead of just updating. Profile deletion being an option of the uninstaller. It's also possible that for some reason his old profile was renamed and isolated and a new profile created.


When I was done with the last update, Firefox put a folder on my Windows desktop that was my old profile folder, completely in-tact. Like I said though, that is really a separate issue and if it should happen again I will start a new thread for that.
Kenneth R. Alcock
"I'm still looking for that damned <Any> key!"
SonarX
New Member
Posts: 1
Joined: November 30th, 2012, 12:12 am
Location: Ubited States, California

Re: Firefox default but Windows Media Player opens .html fil

Post by SonarX »

I had the same problem with my Windows Media Player opening the .html and .htm files. It kept on reverting back to Windows Media Player as default for those files everytime I set Firefox as my default browser. Thanks to you, now my problem was fixed. I was going to do a reset on my PC but thankfully I found your registry edit. Thanks very much KenAlcock, kudos to you.
Cayley
Posts: 30
Joined: July 3rd, 2008, 1:28 am

Re: Firefox default but Windows Media Player opens .html fil

Post by Cayley »

I had the same problem with .htm files reverting to default opening by WMP, and Uncle Joe Google directed me to this thread. Your registry edit (in Windows 7 Pro) worked perfectly --- thanks very much. Could I just add the usual caution to create a restore point before touching the registry.
Post Reply