mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 19:32:07 -08:00
Fix forced colors & reduced motion overrides
This commit is contained in:
parent
f25c39749d
commit
ff43c62ddc
1 changed files with 11 additions and 2 deletions
|
|
@ -297,10 +297,19 @@ index 61135ab0d7..cc8eb043f1 100644
|
||||||
|
|
||||||
bool CanSet(FieldIndex<IDX_SuspendMediaWhenInactive>, bool, ContentParent*) {
|
bool CanSet(FieldIndex<IDX_SuspendMediaWhenInactive>, bool, ContentParent*) {
|
||||||
diff --git a/docshell/base/CanonicalBrowsingContext.cpp b/docshell/base/CanonicalBrowsingContext.cpp
|
diff --git a/docshell/base/CanonicalBrowsingContext.cpp b/docshell/base/CanonicalBrowsingContext.cpp
|
||||||
index f0d8cb2539..535434ba4b 100644
|
index f0d8cb2539..a680d44583 100644
|
||||||
--- a/docshell/base/CanonicalBrowsingContext.cpp
|
--- a/docshell/base/CanonicalBrowsingContext.cpp
|
||||||
+++ b/docshell/base/CanonicalBrowsingContext.cpp
|
+++ b/docshell/base/CanonicalBrowsingContext.cpp
|
||||||
@@ -1594,6 +1594,12 @@ void CanonicalBrowsingContext::LoadURI(nsIURI* aURI,
|
@@ -324,6 +324,8 @@ void CanonicalBrowsingContext::ReplacedBy(
|
||||||
|
txn.SetHasRestoreData(GetHasRestoreData());
|
||||||
|
txn.SetShouldDelayMediaFromStart(GetShouldDelayMediaFromStart());
|
||||||
|
txn.SetForceOffline(GetForceOffline());
|
||||||
|
+ txn.SetPrefersReducedMotionOverride(GetPrefersReducedMotionOverride());
|
||||||
|
+ txn.SetForcedColorsOverride(GetForcedColorsOverride());
|
||||||
|
|
||||||
|
// Propagate some settings on BrowsingContext replacement so they're not lost
|
||||||
|
// on bfcached navigations. These are important for GeckoView (see bug
|
||||||
|
@@ -1594,6 +1596,12 @@ void CanonicalBrowsingContext::LoadURI(nsIURI* aURI,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue