Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-12-06 03:41:53 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-12-06 04:18:24 +0300
commit9708a54b30f8475e60c40d80aa5ec88c26ad8abd (patch)
tree2739739ac5c2acfabc9b4b22448b80ca0372a0ed /lib/Listener
parent9c470ba16b307e417bf0e3d9d59271a126672a37 (diff)
Offload generation of blurred backgrounds to a worker
Until now the generation of the blurred backgrounds was done in a normal canvas, so it happened in the main thread and made the UI unresponsive while the image was being generated. Now, to solve that, the blurred background is generated in an OffscreenCanvas in a worker (if supported by the browser). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/Listener')
-rw-r--r--lib/Listener/CSPListener.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Listener/CSPListener.php b/lib/Listener/CSPListener.php
index 491a0d6fe..d430a68bb 100644
--- a/lib/Listener/CSPListener.php
+++ b/lib/Listener/CSPListener.php
@@ -50,6 +50,8 @@ class CSPListener implements IEventListener {
$csp->addAllowedConnectDomain($server);
}
+ $csp->addAllowedWorkerSrcDomain('\'self\'');
+
$event->addPolicy($csp);
}
}