From 07112251572da13a76ac348a29c9f2aaeda8d080 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sat, 9 Aug 2003 08:16:15 +0000 Subject: [PATCH] Fixing font bug Asa found. git-svn-id: svn://10.0.0.236/trunk@145804 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/components/prefwindow/content/pref-features.js | 1 - mozilla/browser/components/prefwindow/content/pref-fonts.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mozilla/browser/components/prefwindow/content/pref-features.js b/mozilla/browser/components/prefwindow/content/pref-features.js index cc1baf8a68b..c4ce3c72bff 100644 --- a/mozilla/browser/components/prefwindow/content/pref-features.js +++ b/mozilla/browser/components/prefwindow/content/pref-features.js @@ -337,7 +337,6 @@ function HandlePermissionKeyPress(e) { function showFontsAndColors() { - top.hPrefWindow.registerOKCallbackFunc(saveFontPrefs); openDialog("chrome://browser/content/pref/pref-fonts.xul", "", "centerscreen,chrome,modal=yes,dialog=yes"); } diff --git a/mozilla/browser/components/prefwindow/content/pref-fonts.js b/mozilla/browser/components/prefwindow/content/pref-fonts.js index 819685f21c1..46105bbbf3a 100644 --- a/mozilla/browser/components/prefwindow/content/pref-fonts.js +++ b/mozilla/browser/components/prefwindow/content/pref-fonts.js @@ -256,8 +256,8 @@ function Startup() function onFontsDialogOK() { - window.opener.top.hPrefWindow.wsm.savePageData(window.location.href, window); - + gPrefWindow.registerOKCallbackFunc(window.opener.saveFontPrefs); + gPrefWindow.wsm.savePageData(window.location.href, window); return true; }