tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 2fb3147ab5669020e435601b3b18a34c0f40f4aa
parent 55e51e6a9a3a35cb977849d539db3d633b57d2ac
Author: Nicolas Chevobbe <nchevobbe@mozilla.com>
Date:   Thu, 27 Nov 2025 16:21:17 +0000

Bug 2002268 - [devtools] Update MDN Web/CSS urls. r=devtools-reviewers,jdescottes.

Differential Revision: https://phabricator.services.mozilla.com/D274284

Diffstat:
Mdevtools/client/inspector/computed/computed.js | 4+++-
Mdevtools/client/inspector/rules/test/browser_rules_css-compatibility-learn-more-link.js | 2+-
Mdevtools/client/inspector/rules/test/head.js | 2+-
Mdevtools/client/shared/test/browser_cubic-bezier-07.js | 2+-
Mdevtools/client/shared/widgets/tooltip/inactive-css-tooltip-helper.js | 3++-
Mdevtools/server/actors/utils/inactive-property-helper.js | 5+++--
Mdevtools/server/actors/utils/style-utils.js | 2+-
7 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/devtools/client/inspector/computed/computed.js b/devtools/client/inspector/computed/computed.js @@ -1040,7 +1040,9 @@ class PropertyView { this.isCustomProperty = isCustomProperty; if (!this.isCustomProperty) { - this.link = "https://developer.mozilla.org/docs/Web/CSS/" + name; + this.link = + "https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/" + + name; } this.#propertyInfo = new PropertyInfo(tree, name); diff --git a/devtools/client/inspector/rules/test/browser_rules_css-compatibility-learn-more-link.js b/devtools/client/inspector/rules/test/browser_rules_css-compatibility-learn-more-link.js @@ -28,7 +28,7 @@ const TEST_DATA_INITIAL = [ expected: COMPATIBILITY_TOOLTIP_MESSAGE.default, // MDN url expectedLearnMoreUrl: - "https://developer.mozilla.org/docs/Web/CSS/user-select?utm_source=devtools&utm_medium=inspector-css-compatibility&utm_campaign=default", + "https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/user-select?utm_source=devtools&utm_medium=inspector-css-compatibility&utm_campaign=default", }, "background-repeat-x": { value: "repeat", diff --git a/devtools/client/inspector/rules/test/head.js b/devtools/client/inspector/rules/test/head.js @@ -1042,7 +1042,7 @@ async function checkInteractiveTooltip(view, type, ruleIndex, declaration) { * { * value: "grab", * expected: INCOMPATIBILITY_TOOLTIP_MESSAGE.default, - * expectedLearnMoreUrl: "https://developer.mozilla.org/en-US/docs/Web/CSS/cursor", + * expectedLearnMoreUrl: "https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/cursor", * }, * }, * ], diff --git a/devtools/client/shared/test/browser_cubic-bezier-07.js b/devtools/client/shared/test/browser_cubic-bezier-07.js @@ -23,7 +23,7 @@ add_task(async function () { const { host, doc } = await createHost("bottom", TEST_URI); // Unset "prefers reduced motion", otherwise the dot animation preview won't be created. // See Bug 1637842 - // https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion + // https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-reduced-motion await pushPref("ui.prefersReducedMotion", 0); const container = doc.querySelector("#cubic-bezier-container"); diff --git a/devtools/client/shared/widgets/tooltip/inactive-css-tooltip-helper.js b/devtools/client/shared/widgets/tooltip/inactive-css-tooltip-helper.js @@ -61,7 +61,8 @@ class InactiveCssTooltipHelper { const { doc } = tooltip; const documentUrl = new URL( - learnMoreURL || `https://developer.mozilla.org/docs/Web/CSS/${property}` + learnMoreURL || + `https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/${property}` ); this._currentTooltip = tooltip; const { searchParams } = documentUrl; diff --git a/devtools/server/actors/utils/inactive-property-helper.js b/devtools/server/actors/utils/inactive-property-helper.js @@ -16,7 +16,8 @@ const TEXT_WRAP_BALANCE_LIMIT = Services.prefs.getIntPref( 10 ); -const VISITED_MDN_LINK = "https://developer.mozilla.org/docs/Web/CSS/:visited"; +const VISITED_MDN_LINK = + "https://developer.mozilla.org/docs/Web/CSS/Reference/Selectors/:visited"; const VISITED_INVALID_PROPERTIES = allCssPropertiesExcept([ "all", "color", @@ -71,7 +72,7 @@ const REPLACED_ELEMENTS_NAMES = new Set([ ]); const CUE_PSEUDO_ELEMENT_STYLING_SPEC_URL = - "https://developer.mozilla.org/docs/Web/CSS/::cue"; + "https://developer.mozilla.org/docs/Web/CSS/Reference/Selectors/::cue"; const HIGHLIGHT_PSEUDO_ELEMENTS_STYLING_SPEC_URL = "https://www.w3.org/TR/css-pseudo-4/#highlight-styling"; diff --git a/devtools/server/actors/utils/style-utils.js b/devtools/server/actors/utils/style-utils.js @@ -46,7 +46,7 @@ function getFontPreviewData(font, doc, options) { // properly applied, but we don't want to wrap all fonts, otherwise generic family names // (e.g. `monospace`) wouldn't work. // It should be safe to only add the quotes when the font has some spaces (generic family - // names don't have spaces, https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#generic-name) + // names don't have spaces, https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/font-family#generic-name) // We also don't want to add quotes if there are already some // `font` is the declaration value, so it can have multiple parts, // e.g: `"Menlo", MonoLisa, monospace`