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