Bug 1750987 Comment 9 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I got a good handle on these pieces today, and the news does not appear to be great when it comes to the Windows 10 Set Defaults UI.

(In reply to bhearsum@mozilla.com (:bhearsum) from comment #8)
> * Firefox doesn't show up in the Windows 10 "Default Apps" (but it does show up if you drill down to "apps by file type", "apps by protocol", or "defaults by app")

I _was_ able to get both entries to show up in the main "Default Apps" list by adjusting the private mode HKLM\Software\Classes\$ProgID\shell\open\command key. By changing that to a unique binary (in this case, I copied firefox.exe to firefox-private.exe and changed the registry), both were shown.

> * Private and non-private mode are showing the same strings and icons in most places on Windows 10, and in a couple of places on Windows 7.

This is still an issue though, at least on Windows 10. As best I can tell, both the name and the icon are picked up automatically by looking at the metadata of the file in the aforementioned command. I was able to manipulate the name by using [Resource Hacker](http://angusj.com/resourcehacker/) to adjust it -- but this breaks signatures, so the only way we'd be able to achieve this in proper builds is shipping a second binary with these parts tweaked. I haven't tested adjusting the icon, but it's probably _possible_ (I haven't seen it caching the icon it uses anywhere, so I suspect it just uses the first icon every time).

It's worth noting that none of this stops Firefox (private browsing or otherwise) from becoming the default browser -- it just breaks or makes worse certain parts of the Windows UI for doing so.
I got a good handle on these pieces today, and the news does not appear to be great when it comes to the Windows 10 Set Defaults UI.

(In reply to bhearsum@mozilla.com (:bhearsum) from comment #8)
> * Firefox doesn't show up in the Windows 10 "Default Apps" (but it does show up if you drill down to "apps by file type", "apps by protocol", or "defaults by app")

I _was_ able to get both entries to show up in the main "Default Apps" list by adjusting the private mode HKLM\Software\Classes\$ProgID\shell\open\command key. By changing that to a unique binary (in this case, I copied firefox.exe to firefox-private.exe and changed the registry), both were shown.

I tried other things to get it show up as well -- such as adjusting other parts of the registry to be distinct (various strings and paths in `RegisteredApplications` and `StartMenuInternet` subkeys) -- but none of them had any effect.

> * Private and non-private mode are showing the same strings and icons in most places on Windows 10, and in a couple of places on Windows 7.

This is still an issue though, at least on Windows 10. As best I can tell, both the name and the icon are picked up automatically by looking at the metadata of the file in the aforementioned command. I was able to manipulate the name by using [Resource Hacker](http://angusj.com/resourcehacker/) to adjust it -- but this breaks signatures, so the only way we'd be able to achieve this in proper builds is shipping a second binary with these parts tweaked. I haven't tested adjusting the icon, but it's probably _possible_ (I haven't seen it caching the icon it uses anywhere, so I suspect it just uses the first icon every time).

It's worth noting that none of this stops Firefox (private browsing or otherwise) from becoming the default browser -- it just breaks or makes worse certain parts of the Windows UI for doing so.

Back to Bug 1750987 Comment 9