summaryrefslogtreecommitdiff
path: root/indra/llplugin/llpluginclassmedia.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2026-05-20 11:57:48 -0400
committerGitHub <noreply@github.com>2026-05-20 11:57:48 -0400
commit9c2ee024bef564ebb6e2e8942b43ffae1d99232c (patch)
tree6c6c6bebf982cda7b056156fb206378dbc443fe7 /indra/llplugin/llpluginclassmedia.cpp
parent491b0b32c74e2186dd34f9be8513bb08d390dfe2 (diff)
parent3f82abe033887ff690398381563100735e008df4 (diff)
Merge pull request #5843 from secondlife/geenz/26.2-to-26.3
26.2 to 26.3
Diffstat (limited to 'indra/llplugin/llpluginclassmedia.cpp')
-rw-r--r--indra/llplugin/llpluginclassmedia.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llplugin/llpluginclassmedia.cpp b/indra/llplugin/llpluginclassmedia.cpp
index 88d428c233..4e80f4c0ca 100644
--- a/indra/llplugin/llpluginclassmedia.cpp
+++ b/indra/llplugin/llpluginclassmedia.cpp
@@ -1642,3 +1642,15 @@ void LLPluginClassMedia::initializeUrlHistory(const LLSD& url_history)
LL_DEBUGS("Plugin") << "Sending history" << LL_ENDL;
}
+
+void LLPluginClassMedia::forceRenderRefresh()
+{
+ // Force layout recalculation by briefly hiding/showing the web content
+ // Used to clear black screen issues after resize, see #5607
+ const std::string refresh_script =
+ "document.documentElement.style.visibility='hidden';"
+ "document.documentElement.offsetHeight;"
+ "document.documentElement.style.visibility='';";
+
+ executeJavaScript(refresh_script);
+}