From 048213a812fcde09ccf7dbb869b6d769d0c78a3e Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 4 Jun 2025 14:59:07 +0200 Subject: QtQml: Drop source URL from WorkerScript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nobody is using it and it's a thread safety risk. Change-Id: Ifdf79cfbcb50542036509c9301917077c45a303f Reviewed-by: Olivier De Cannière --- src/qmlworkerscript/qquickworkerscript.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/qmlworkerscript/qquickworkerscript.cpp') diff --git a/src/qmlworkerscript/qquickworkerscript.cpp b/src/qmlworkerscript/qquickworkerscript.cpp index 750a2ab805..283e8adaf0 100644 --- a/src/qmlworkerscript/qquickworkerscript.cpp +++ b/src/qmlworkerscript/qquickworkerscript.cpp @@ -95,7 +95,6 @@ struct WorkerScript : public QV4::ExecutionEngine::Deletable ~WorkerScript() = default; QQuickWorkerScriptEnginePrivate *p = nullptr; - QUrl source; QQuickWorkerScript *owner = nullptr; #if QT_CONFIG(qml_network) QScopedPointer scriptLocalNAM; @@ -250,7 +249,6 @@ void QQuickWorkerScriptEnginePrivate::processLoad(int id, const QUrl &url) return; WorkerScript *script = workerScriptExtension(engine); - script->source = url; if (fileName.endsWith(QLatin1String(".mjs"))) { if (auto module = engine->loadModule(url)) { -- cgit v1.2.3