Skip to content

Commit

Permalink
#621: better wallpaper for communities.apple.com
Browse files Browse the repository at this point in the history
  • Loading branch information
classilla committed Feb 18, 2021
1 parent 93249a1 commit 7b55a0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion caps/nsScriptSecurityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,17 +699,23 @@ nsScriptSecurityManager::CheckLoadURIWithPrincipal(nsIPrincipal* aPrincipal,
ToLowerCase(hostname);
#define BLOC(q) hostname.EqualsLiteral(q)
#define BLOCU(q) url.EqualsLiteral(q)
#define BLOCE(q) (StringEndsWith(url, NS_LITERAL_CSTRING(q)))

if (0 ||

#ifdef __ppc__
// wallpapers for issue 621
BLOC("static-exp1.licdn.com") ||
BLOCU("https://communities.apple.com/en202012231040/public/scripts/tldr/index.js") ||
(
BLOC("communities.apple.com") &&
BLOCE("/public/scripts/tldr/index.js")
) ||
#endif // __ppc__

0) {
#undef BLOC
#undef BLOCU
#undef BLOCE

#ifndef DEBUG
if (mIsTenFourFoxTroublesomeJsLoggingEnabled)
Expand Down

0 comments on commit 7b55a0c

Please sign in to comment.