зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom_presentation_testing_simulate_receiver, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29526 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
f50233ec54
Коммит
7bc0fed6d6
|
@ -9156,7 +9156,7 @@ void nsContentUtils::GetPresentationURL(nsIDocShell* aDocShell,
|
|||
MOZ_ASSERT(aDocShell);
|
||||
|
||||
// Simulate receiver context for web platform test
|
||||
if (Preferences::GetBool("dom.presentation.testing.simulate-receiver")) {
|
||||
if (StaticPrefs::dom_presentation_testing_simulate_receiver()) {
|
||||
RefPtr<Document> doc;
|
||||
|
||||
nsCOMPtr<nsPIDOMWindowOuter> docShellWin =
|
||||
|
|
|
@ -124,7 +124,7 @@ bool Presentation::HasReceiverSupport() const {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!Preferences::GetBool("dom.presentation.testing.simulate-receiver") &&
|
||||
if (!StaticPrefs::dom_presentation_testing_simulate_receiver() &&
|
||||
!docShell->GetIsInMozBrowser() &&
|
||||
!docShell->GetIsTopLevelContentDocShell()) {
|
||||
return false;
|
||||
|
|
|
@ -708,6 +708,12 @@ VARCACHE_PREF(
|
|||
bool, true
|
||||
)
|
||||
|
||||
VARCACHE_PREF(
|
||||
"dom.presentation.testing.simulate-receiver",
|
||||
dom_presentation_testing_simulate_receiver,
|
||||
bool, false
|
||||
)
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Extension prefs
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче