From c2b391478af63389dbc2ef0db11a9c8f0dd45a0d Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Mon, 20 Jul 2026 16:37:06 +0200 Subject: [PATCH] no-bug: Add browsing context setters --- src/docshell/base/BrowsingContext-h.patch | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/docshell/base/BrowsingContext-h.patch b/src/docshell/base/BrowsingContext-h.patch index 4be5e028b..770ca7994 100644 --- a/src/docshell/base/BrowsingContext-h.patch +++ b/src/docshell/base/BrowsingContext-h.patch @@ -1,5 +1,5 @@ diff --git a/docshell/base/BrowsingContext.h b/docshell/base/BrowsingContext.h -index 6f7f58bba3be6f08b3b27e81f30864c61d683351..3b8f2c14c80d931ec03c124d96f797ddda3f5431 100644 +index 6f7f58bba3be6f08b3b27e81f30864c61d683351..2516126365ee9e1c07e245a873efe5f48767aff7 100644 --- a/docshell/base/BrowsingContext.h +++ b/docshell/base/BrowsingContext.h @@ -265,6 +265,9 @@ struct EmbedderColorSchemes { @@ -24,13 +24,23 @@ index 6f7f58bba3be6f08b3b27e81f30864c61d683351..3b8f2c14c80d931ec03c124d96f797dd float FullZoom() const { return GetFullZoom(); } float TextZoom() const { return GetTextZoom(); } -@@ -1290,6 +1298,9 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache { +@@ -1290,6 +1298,19 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache { } void DidSet(FieldIndex, uint32_t aOldValue); + void DidSet(FieldIndex, nscolor aOldValue); + void DidSet(FieldIndex, float aOldValue); + void DidSet(FieldIndex, bool aOldValue); ++ bool CanSet(FieldIndex, const nscolor&, ContentParent*) { ++ return true; ++ } ++ bool CanSet(FieldIndex, const float&, ++ ContentParent*) { ++ return true; ++ } ++ bool CanSet(FieldIndex, const bool&, ContentParent*) { ++ return true; ++ } // Ensure that opener is in the same BrowsingContextGroup. bool CanSet(FieldIndex, const uint64_t& aValue,