Skip to content

Commit

Permalink
Bug 828284 - Force shortcut desktop icons off on Windows XP. r=bbondy
Browse files Browse the repository at this point in the history
  • Loading branch information
Adri Hilviu committed May 29, 2013
1 parent 8960a4f commit eae58da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ pref("general.useragent.complexOverride.moodle", false); // bug 797703

// At startup, check if we're the default browser and prompt user if not.
pref("browser.shell.checkDefaultBrowser", true);
pref("browser.shell.shortcutFavicons",true);

// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
// The behavior of option 3 is detailed at: http://wiki.mozilla.org/Session_Restore
Expand Down
4 changes: 3 additions & 1 deletion widget/windows/nsDataObj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@


using namespace mozilla;
using namespace mozilla::widget;

#define DEFAULT_THREAD_TIMEOUT_MS 30000

Expand Down Expand Up @@ -1114,7 +1115,8 @@ nsDataObj :: GetFileContentsInternetShortcut ( FORMATETC& aFE, STGMEDIUM& aSTG )
const char *shortcutFormatStr;
int totalLen;
nsCString path;
if (!Preferences::GetBool(kShellIconPref, true)) {
if (!Preferences::GetBool(kShellIconPref, true) ||
WinUtils::GetWindowsVersion() < WinUtils::VISTA_VERSION) {
shortcutFormatStr = "[InternetShortcut]\r\nURL=%s\r\n";
const int formatLen = strlen(shortcutFormatStr) - 2; // don't include %s
totalLen = formatLen + asciiUrl.Length(); // don't include null character
Expand Down

0 comments on commit eae58da

Please sign in to comment.