зеркало из https://github.com/mozilla/pjs.git
Bug 750287 - don't cache 'is form fill enabled' pref, r=surkov, f=tbsaunde
This commit is contained in:
Родитель
388020ea34
Коммит
421218dc84
|
@ -49,8 +49,6 @@
|
||||||
#include "nsIDOMWindow.h"
|
#include "nsIDOMWindow.h"
|
||||||
#include "nsIFrame.h"
|
#include "nsIFrame.h"
|
||||||
#include "nsIInterfaceRequestorUtils.h"
|
#include "nsIInterfaceRequestorUtils.h"
|
||||||
#include "nsIPrefBranch.h"
|
|
||||||
#include "nsIPrefService.h"
|
|
||||||
#include "nsIPresShell.h"
|
#include "nsIPresShell.h"
|
||||||
#include "nsIServiceManager.h"
|
#include "nsIServiceManager.h"
|
||||||
#include "nsIStringBundle.h"
|
#include "nsIStringBundle.h"
|
||||||
|
@ -66,8 +64,6 @@ using namespace mozilla::a11y;
|
||||||
|
|
||||||
nsIStringBundle *nsAccessNode::gStringBundle = 0;
|
nsIStringBundle *nsAccessNode::gStringBundle = 0;
|
||||||
|
|
||||||
bool nsAccessNode::gIsFormFillEnabled = false;
|
|
||||||
|
|
||||||
ApplicationAccessible* nsAccessNode::gApplicationAccessible = nsnull;
|
ApplicationAccessible* nsAccessNode::gApplicationAccessible = nsnull;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -162,11 +158,6 @@ void nsAccessNode::InitXPAccessibility()
|
||||||
stringBundleService->CreateBundle(ACCESSIBLE_BUNDLE_URL,
|
stringBundleService->CreateBundle(ACCESSIBLE_BUNDLE_URL,
|
||||||
&gStringBundle);
|
&gStringBundle);
|
||||||
}
|
}
|
||||||
|
|
||||||
nsCOMPtr<nsIPrefBranch> prefBranch(do_GetService(NS_PREFSERVICE_CONTRACTID));
|
|
||||||
if (prefBranch) {
|
|
||||||
prefBranch->GetBoolPref("browser.formfill.enable", &gIsFormFillEnabled);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void nsAccessNode::ShutdownXPAccessibility()
|
void nsAccessNode::ShutdownXPAccessibility()
|
||||||
|
|
|
@ -167,8 +167,6 @@ protected:
|
||||||
// Static data, we do our own refcounting for our static data.
|
// Static data, we do our own refcounting for our static data.
|
||||||
static nsIStringBundle* gStringBundle;
|
static nsIStringBundle* gStringBundle;
|
||||||
|
|
||||||
static bool gIsFormFillEnabled;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
nsAccessNode() MOZ_DELETE;
|
nsAccessNode() MOZ_DELETE;
|
||||||
nsAccessNode(const nsAccessNode&) MOZ_DELETE;
|
nsAccessNode(const nsAccessNode&) MOZ_DELETE;
|
||||||
|
|
|
@ -63,6 +63,9 @@
|
||||||
#include "nsIServiceManager.h"
|
#include "nsIServiceManager.h"
|
||||||
#include "nsITextControlFrame.h"
|
#include "nsITextControlFrame.h"
|
||||||
|
|
||||||
|
#include "mozilla/Preferences.h"
|
||||||
|
|
||||||
|
using namespace mozilla;
|
||||||
using namespace mozilla::a11y;
|
using namespace mozilla::a11y;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -496,7 +499,7 @@ HTMLTextFieldAccessible::NativeState()
|
||||||
|
|
||||||
// No parent can mean a fake widget created for XUL textbox. If accessible
|
// No parent can mean a fake widget created for XUL textbox. If accessible
|
||||||
// is unattached from tree then we don't care.
|
// is unattached from tree then we don't care.
|
||||||
if (mParent && gIsFormFillEnabled) {
|
if (mParent && Preferences::GetBool("browser.formfill.enable")) {
|
||||||
// Check to see if autocompletion is allowed on this input. We don't expose
|
// Check to see if autocompletion is allowed on this input. We don't expose
|
||||||
// it for password fields even though the entire password can be remembered
|
// it for password fields even though the entire password can be remembered
|
||||||
// for a page if the user asks it to be. However, the kind of autocomplete
|
// for a page if the user asks it to be. However, the kind of autocomplete
|
||||||
|
|
Загрузка…
Ссылка в новой задаче