diff --git a/dom/chrome-webidl/InspectorUtils.webidl b/dom/chrome-webidl/InspectorUtils.webidl index 4eae9e65513a..5d785e8051b2 100644 --- a/dom/chrome-webidl/InspectorUtils.webidl +++ b/dom/chrome-webidl/InspectorUtils.webidl @@ -156,9 +156,6 @@ dictionary InspectorCSSPropertyDefinition { required boolean inherits; required UTF8String? initialValue; required boolean fromJS; - required unsigned long line; - required unsigned long column; - required DOMString uri; }; [Func="nsContentUtils::IsCallerChromeOrFuzzingEnabled", diff --git a/layout/inspector/InspectorUtils.cpp b/layout/inspector/InspectorUtils.cpp index 06cac78d6fe2..acebb863066c 100644 --- a/layout/inspector/InspectorUtils.cpp +++ b/layout/inspector/InspectorUtils.cpp @@ -898,11 +898,6 @@ void InspectorUtils::GetCSSRegisteredProperties( property.mInitialValue.SetIsVoid(true); } property.mFromJS = propDef.from_js; - - NS_MakeAbsoluteURI(property.mUri, property.mUri, - propDef.url_data->BaseURI()); - property.mLine = propDef.line; - property.mColumn = propDef.column; } } diff --git a/layout/inspector/tests/at_property.css b/layout/inspector/tests/at_property.css deleted file mode 100644 index db4e6406bd95..000000000000 --- a/layout/inspector/tests/at_property.css +++ /dev/null @@ -1,4 +0,0 @@ -@property --color-2 { - syntax: "*"; - inherits: false; -} \ No newline at end of file diff --git a/layout/inspector/tests/css_register_property.js b/layout/inspector/tests/css_register_property.js deleted file mode 100644 index 4101d6dff2e9..000000000000 --- a/layout/inspector/tests/css_register_property.js +++ /dev/null @@ -1,12 +0,0 @@ -CSS.registerProperty({ - name: "--length-3", - syntax: "*", - inherits: false, -}); - -CSS.registerProperty({ - name: "--length-4", - syntax: "*", - initialValue: "", - inherits: false, -}); diff --git a/layout/inspector/tests/mochitest.toml b/layout/inspector/tests/mochitest.toml index a29279b81c4b..9c9ba8e60a57 100644 --- a/layout/inspector/tests/mochitest.toml +++ b/layout/inspector/tests/mochitest.toml @@ -6,11 +6,9 @@ prefs = [ "dom.customHighlightAPI.enabled=true", ] support-files = [ - "at_property.css", "bug1202095.css", "bug1202095-2.css", "bug856317.css", - "css_register_property.js", "file_bug522601.html", ] diff --git a/layout/inspector/tests/test_getRegisteredCustomProperties.html b/layout/inspector/tests/test_getRegisteredCustomProperties.html index 3ef2711341cc..10eaba992d5f 100644 --- a/layout/inspector/tests/test_getRegisteredCustomProperties.html +++ b/layout/inspector/tests/test_getRegisteredCustomProperties.html @@ -4,29 +4,17 @@
InspectorUtils.getCSSRegisteredProperties
@@ -41,15 +29,35 @@ const { Assert } = SpecialPowers.ChromeUtils.importESModule(
);
const InspectorUtils = SpecialPowers.InspectorUtils;
+CSS.registerProperty({
+ name: "--length-1",
+ syntax: "