From 8a9e5f2c367fc3f095c061c78d55a6135146e7fb Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Thu, 27 Nov 2014 19:12:03 +0000 Subject: [PATCH] Bug 639134 - update pref UI and internet explorer profile migration code for new tristate pref, r=jaws --- .../components/migration/IEProfileMigrator.js | 4 ++-- browser/components/preferences/colors.xul | 18 ++++++++++++------ .../chrome/browser/preferences/colors.dtd | 8 ++++++-- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/browser/components/migration/IEProfileMigrator.js b/browser/components/migration/IEProfileMigrator.js index dcfe1b8ed393..a16cf5a6366e 100644 --- a/browser/components/migration/IEProfileMigrator.js +++ b/browser/components/migration/IEProfileMigrator.js @@ -531,8 +531,8 @@ Settings.prototype = { yesNoToBoolean); this._set("Software\\Microsoft\\Internet Explorer\\Settings", "Always Use My Colors", - "browser.display.use_document_colors", - function (v) !Boolean(v)); + "browser.display.document_color_use", + function (v) !Boolean(v) ? 0 : 2); this._set("Software\\Microsoft\\Internet Explorer\\Settings", "Always Use My Font Face", "browser.display.use_document_fonts", diff --git a/browser/components/preferences/colors.xul b/browser/components/preferences/colors.xul index 6d09f86e257b..50d8c2e50c08 100644 --- a/browser/components/preferences/colors.xul +++ b/browser/components/preferences/colors.xul @@ -28,7 +28,7 @@ helpTopic="prefs-fonts-and-colors"> - + @@ -80,10 +80,16 @@ - - - + + + + + + + + + + diff --git a/browser/locales/en-US/chrome/browser/preferences/colors.dtd b/browser/locales/en-US/chrome/browser/preferences/colors.dtd index 4063ce7c6ea8..81698ae33326 100644 --- a/browser/locales/en-US/chrome/browser/preferences/colors.dtd +++ b/browser/locales/en-US/chrome/browser/preferences/colors.dtd @@ -6,8 +6,12 @@ - - + + + + + +