History

whitelist -> allowlist

HifiExperiments committed 2 years ago

Commit f2d8fa21 parent 2876a4d28 files · +199 −199Browse files

Showing the changes to interface/src/Application.cpp (1 of 28 files). Show all

Unified · Split

interface/src/Application.cpp+4−4
@@ -3293,9 +3293,9 @@ void Application::initializeUi() { · 3292 unmodified lines
32933293 {
32943294 auto defaultUrlValidator = OffscreenQmlSurface::getUrlValidator();
32953295 auto newValidator = [=](const QUrl& url) -> bool {
3296− QString whitelistPrefix = "[WHITELIST ENTITY SCRIPTS]";
3296+ QString allowlistPrefix = "[ALLOWLIST ENTITY SCRIPTS]";
32973297 QList<QString> safeURLS = { "" };
3298− safeURLS += qEnvironmentVariable("EXTRA_WHITELIST").trimmed().split(QRegExp("\\s*,\\s*"), Qt::SkipEmptyParts);
3298+ safeURLS += qEnvironmentVariable("EXTRA_ALLOWLIST").trimmed().split(QRegExp("\\s*,\\s*"), Qt::SkipEmptyParts);
32993299
33003300 // PULL SAFEURLS FROM INTERFACE.JSON Settings
33013301
@@ -3332,7 +3332,7 @@ void Application::initializeUi() { · 30 unmodified lines
33323332 QmlContextCallback platformInfoCallback = [](QQmlContext* context) {
33333333 context->setContextProperty("PlatformInfo", new PlatformInfoScriptingInterface());
33343334 };
3335− OffscreenQmlSurface::addWhitelistContextHandler({
3335+ OffscreenQmlSurface::addAllowlistContextHandler({
33363336 QUrl{ "hifi/tablet/TabletAddressDialog.qml" },
33373337 QUrl{ "hifi/Card.qml" },
33383338 QUrl{ "hifi/Pal.qml" },
@@ -3342,7 +3342,7 @@ void Application::initializeUi() { · 3 unmodified lines
33423342 QmlContextCallback ttsCallback = [](QQmlContext* context) {
33433343 context->setContextProperty("TextToSpeech", DependencyManager::get<TTSScriptingInterface>().data());
33443344 };
3345− OffscreenQmlSurface::addWhitelistContextHandler({
3345+ OffscreenQmlSurface::addAllowlistContextHandler({
33463346 QUrl{ "hifi/tts/TTS.qml" }
33473347 }, ttsCallback);
33483348 qmlRegisterType<ResourceImageItem>("Hifi", 1, 0, "ResourceImageItem");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t