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
This commit is contained in:
hyatt%netscape.com
1999-06-08 06:05:53 +00:00
parent 4bad1b96b8
commit 49c2c26e26

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);
}