Skip to content

Commit

Permalink
[sailfishos][embedlite] Introduce EMBED_SAFEMODE environment variable…
Browse files Browse the repository at this point in the history
…. JB#52738

The gfxPlatform.cpp must be fixed to ignore safemode so that rendering
pipeline keeps on working.
  • Loading branch information
rainemak committed Jan 14, 2021
1 parent d62dfbf commit d0ba715
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion embedding/embedlite/utils/EmbedLiteXulAppInfo.cpp
Expand Up @@ -114,7 +114,10 @@ NS_IMETHODIMP EmbedLiteXulAppInfo::GetWidgetToolkit(nsACString& aWidgetToolkit)

NS_IMETHODIMP EmbedLiteXulAppInfo::GetInSafeMode(bool* aInSafeMode)
{
*aInSafeMode = false;
static const char* embedSafeModeEnv = PR_GetEnv("EMBED_SAFEMODE");
static const bool embedSafeMode = embedSafeModeEnv && *embedSafeModeEnv == '1';

*aInSafeMode = embedSafeMode;
return NS_OK;
}

Expand Down

0 comments on commit d0ba715

Please sign in to comment.