diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2025-06-04 14:59:07 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2025-06-06 13:04:41 +0200 |
| commit | 048213a812fcde09ccf7dbb869b6d769d0c78a3e (patch) | |
| tree | 2e2138fa1e1c10ef52c47eaa9db305683f0c0da7 /src/qmlworkerscript/qquickworkerscript.cpp | |
| parent | 250ee00574ef88bd77701c04b9d22573a955da9f (diff) | |
QtQml: Drop source URL from WorkerScript
Nobody is using it and it's a thread safety risk.
Change-Id: Ifdf79cfbcb50542036509c9301917077c45a303f
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'src/qmlworkerscript/qquickworkerscript.cpp')
| -rw-r--r-- | src/qmlworkerscript/qquickworkerscript.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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<QNetworkAccessManager> 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)) { |
