Bug 1640889 [wpt PR 23767] - [@property] Avoid crash with non-matching 'media' attribute, a=testonly
authorAnders Hartvoll Ruud <andruud@chromium.org>
Sat, 30 May 2020 09:50:07 +0000
changeset 597303 0cc9ccac66c6883628e132aab1ac5e3e0041749a
parent 597302 0f16ea25eded5cb8ca91f1795ccb1b3243441a8a
child 597304 7ce73f5b515c5e8be5daa763ad60bf92e64a0f63
push id13310
push userffxbld-merge
push dateMon, 29 Jun 2020 14:50:06 +0000
treeherdermozilla-beta@15a59a0afa5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1640889, 23767, 1085994, 2214537, 771897
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1640889 [wpt PR 23767] - [@property] Avoid crash with non-matching 'media' attribute, a=testonly Automatic update from web-platform-tests [@property] Avoid crash with non-matching 'media' attribute The RuleSet of an ActiveStyleSheet can be nullptr for non-matching media (see StyleEngine::RuleSetForSheet), hence we can't DCHECK that it exists. Bug: 1085994 Change-Id: Iac7f746045f46ad7752b30cccce8b6f403cf19b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2214537 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#771897} -- wpt-commits: d004c9c8e0265fc20535110d31be7042b7fbc509 wpt-pr: 23767
testing/web-platform/tests/css/css-properties-values-api/at-property-non-matching-media-crash.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-properties-values-api/at-property-non-matching-media-crash.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html class="test-wait">
+  <link rel="help" href="https://crbug.com/1085994">
+  <style id="style">
+    @property --x {
+      syntax: "<length>";
+      inherits: false;
+      initial-value: 0px;
+    }
+  </style>
+  <script>
+      document.documentElement.offsetTop;
+      style.setAttribute('media', 'braille');
+      document.documentElement.className = '';
+  </script>
+  <p>
+    PASS if no crash
+  </p>
+</html>