From 6ddd8d4031dec89fb4c4e22a5db476b9b70ee182 Mon Sep 17 00:00:00 2001 From: "hyatt@netscape.com" Date: Tue, 8 Jun 1999 06:05:53 +0000 Subject: [PATCH] Adding code to force the user into STANDARD mode. Otherwise the chrome malfunctions. --- xpfe/appshell/src/nsWebShellWindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xpfe/appshell/src/nsWebShellWindow.cpp b/xpfe/appshell/src/nsWebShellWindow.cpp index 49de0f932c9a..7210925721a9 100644 --- a/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/xpfe/appshell/src/nsWebShellWindow.cpp @@ -332,6 +332,14 @@ nsresult nsWebShellWindow::Initialize(nsIWebShellWindow* aParent, nsIPref::GetIID(), (nsISupports **)&prefs); if (NS_SUCCEEDED(rv)) { + // XXX Enforce the STANDARD compatibility mode? Nav Quirks causes + // the chrome to malfunction. Having this be a general pref applied + // everywhere seems bogus to me. We certainly don't want it on for + // the chrome. + prefs->SetIntPref("nglayout.compatibility.mode", eCompatibility_Standard); + prefs->SavePrefFile(); + + // Set the prefs in the outermost webshell. mWebShell->SetPrefs(prefs); nsServiceManager::ReleaseService(kPrefCID, prefs); }