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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user