Adding code to force the user into STANDARD mode. Otherwise the chrome

malfunctions.
This commit is contained in:
hyatt@netscape.com
1999-06-08 06:05:53 +00:00
parent 63d11cc3fd
commit 6ddd8d4031
+8
View File
@@ -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);
}