From 49c2c26e26257fd10ec4d2bbd3e3e4f0379fd385 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. git-svn-id: svn://10.0.0.236/trunk@34184 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsWebShellWindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 49de0f932c9..7210925721a 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/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); }