From 00942a1ab7ce9e859adbdc45ea0551090a9a403d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 29 Nov 2018 17:05:04 +0000 Subject: [PATCH] Prevent exponential blowup of custom properties. Put a hard cap on the value length instead of counting substitutions, because it works best, see the comment. Differential Revision: https://phabricator.services.mozilla.com/D13352 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1510862 gecko-commit: e593d06bcd929ab543824921434def8c6e4c6c5b gecko-integration-branch: central gecko-reviewers: jwatt --- .../variable-exponential-blowup.html | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 css/css-variables/variable-exponential-blowup.html diff --git a/css/css-variables/variable-exponential-blowup.html b/css/css-variables/variable-exponential-blowup.html new file mode 100644 index 00000000000000..513a6f1628f17d --- /dev/null +++ b/css/css-variables/variable-exponential-blowup.html @@ -0,0 +1,28 @@ + +CSS Variables Test: Exponential blowup doesn't crash + + + + + + + +PASS if doesn't crash +