Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 3 users
Status: Verified
Closed: Oct 2012
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug

issue 153398

Sign in to add a comment
Cannot set Chromium as default HTTP handler on Windows 8.
Project Member Reported by, Oct 1 2012 Back to list
Version: r159494
OS: Windows 8

What steps will reproduce the problem?
1. Install Chromium (not Chrome)
2. Try to set it as default.

What is the expected output?
Click "Chromium" in the greg dialog (the browser choice Win8 dialog) and have it become the HTTP handler.

What do you see instead?
"Chromium" doesn't show up in the list of browsers available in the greg dialog (see SS -- after invoking make default from Chromium).
24.1 KB View Download
Comment 1 by, Oct 1 2012
Labels: -Pri-1 Pri-2
Status: Assigned
So, the problem is that Chromium's progid for user-level installs is "ChromiumHTML.{26 chars suffix}" which is exactly 39 characters in length.

As per MSDN, a valid progid has a maximum length of 39 characters:

In fact the suffix generation method we currently use (generating a 26 chars suffix) was chosen for many of its properties including that it satisfied our tightest constraint (i.e. that it made exactly 39 characters with the longest prefix we have for progids, e.g. "ChromiumHTML.").

Upon making this decision we did not know what having an invalid progid did so that we could not test this... we were simply acting out of good faith, trying our best to respect the MSDN docs.

***However it appears that Windows 8 only considers a valid progid, one that has less than or equal to 39 characters INCLUDING the NULL character...***

For example, here is a patch that can fix this for someone building anew and re-installing from scratch:
diff --git a/chrome/installer/util/ b/chrome/installer/util/
index 113b479..f12b453 100644
--- a/chrome/installer/util/
+++ b/chrome/installer/util/
@@ -958,7 +958,7 @@ const wchar_t* ShellUtil::kAppPathsRegistryPathName = L"Path";
 const wchar_t* ShellUtil::kChromeHTMLProgId = L"ChromeHTML";
 const wchar_t* ShellUtil::kChromeHTMLProgIdDesc = L"Chrome HTML Document";
-const wchar_t* ShellUtil::kChromeHTMLProgId = L"ChromiumHTML";
+const wchar_t* ShellUtil::kChromeHTMLProgId = L"ChromiuHTML";
 const wchar_t* ShellUtil::kChromeHTMLProgIdDesc = L"Chromium HTML Document";

However, this cannot be checked in as is as migration code is required for auto-updates to go smoothly. As well as cleanup code on uninstall...
Comment 2 by, Oct 1 2012
FWIW, the same Windows 8 validation affects the Default Program dialog (i.e. when selection defaults for Chromium: HTTP/HTTPS are listed, but when selecting those and saving, the defaults are not set for these two (although they are for every other protocol using the same progid)).
Comment 3 by, Oct 1 2012
Blocking: chromium:153398
Comment 4 by, Oct 4 2012
I just thought this through, I'll just change the progid which will result in:

1) On new-installs: no problemo.
2) Updating a Chromium that was never made default: all good, but HKCU\Software\Classes\ChromiumHTML will be left behind on uninstall (harmless)
3) Updating a Chromium that was made default: Chromium is still default, but it might think it's not, remaking it default through the infobar/settings will register everything appropriately again -- this will require UAC on Win7- (HKLM\Software\Classes\ChromiumHTML left
behind on uninstall).

I've tested various forms of updates and all seemed well.
Sounds good and sensible to me.
Project Member Comment 6 by, Oct 4 2012
The following revision refers to this bug:

r160173 | | 2012-10-04T18:37:02.383701Z

Changed paths:

ChromiumHTM instead of ChromiumHTML to respect progid restriction of 39 characters INCLUDING the NULL character...

See  for more dtails.

BUG= 153349 
TEST=Chromium can be set as default on Win8.
Updating the old Chromium with this new progid makes it think it's not default, but it can be made default again and everything is good.

Review URL:
Comment 7 by, Oct 4 2012
Status: Fixed
Comment 8 by, Oct 5 2012
thanks for the fix it work for me now :)
Comment 9 by, Oct 5 2012
Status: Verified
Yay :), thanks for verifying!
Project Member Comment 10 by, Mar 10 2013
Labels: -Area-Internals -Internals-Install Cr-Internals-Install Cr-Internals
Project Member Comment 11 by, Apr 5 2013
Labels: -Cr-Internals-Install Cr-Internals-Installer
Sign in to add a comment