diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-09-12 17:08:18 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-09-29 18:46:59 +0000 |
commit | 774f8d3d8099286ee1202fb8b809b399b4632fb3 (patch) | |
tree | 056b8247806061119748aca8e50adeba2e55f8f3 /tests/auto/widgets/origins/resources/createObjectURL.html | |
parent | 033c0c3ffec807b86d6c08e5dc95ec541927c53d (diff) |
Add test for URL.createObjectURL on custom schemes
Works with registered custom schemes, does not work with unregistered ones. In
the latter case the function call is treated as a security violation and the
renderer process is killed.
Task-number: QTBUG-70420
Change-Id: I9c6fc0f02b44854bbceaffd1efbfe065dee61582
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/widgets/origins/resources/createObjectURL.html')
-rw-r--r-- | tests/auto/widgets/origins/resources/createObjectURL.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/widgets/origins/resources/createObjectURL.html b/tests/auto/widgets/origins/resources/createObjectURL.html new file mode 100644 index 000000000..133f636bb --- /dev/null +++ b/tests/auto/widgets/origins/resources/createObjectURL.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>createObjectURL</title> + <script> + const blob = new Blob(['foo']); + const result = URL.createObjectURL(blob); + </script> + </head> + <body></body> +</html> |