From c7e6b33282888f4258662a5a2cad8097307bfa7a Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Thu, 6 Feb 2025 12:18:30 +0000 Subject: [PATCH] Bug 1945858 - Resolve many broken links to firefox-source-docs.mozilla.org r=webdriver-reviewers,perftest-reviewers,devtools-reviewers,translations-reviewers,android-reviewers,frontend-codestyle-reviewers,sparky,ohall Differential Revision: https://phabricator.services.mozilla.com/D236721 --- accessible/docs/ColorsAndHighContrastMode.md | 2 +- devtools/client/application/README.md | 2 +- mach | 2 +- mobile/android/focus-android/docs/Telemetry.md | 2 +- python/mozbuild/mozbuild/config_status.py | 2 +- .../periodic-updates/scripts/periodic_file_updates.sh | 2 +- testing/geckodriver/CHANGES.md | 6 +++--- testing/geckodriver/README.md | 2 +- testing/mozbase/mozgeckoprofiler/setup.py | 2 +- testing/perfdocs/generated/contributing.rst | 2 +- testing/raptor/raptor/perfdocs/contributing.rst | 2 +- toolkit/components/glean/src/init/user_activity.rs | 2 +- .../components/translations/docs/resources/03_bergamot.md | 4 ++-- .../lib/rules/reject-eager-module-in-lazy-getter.js | 2 +- .../lib/rules/reject-mixing-eager-and-lazy.js | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/accessible/docs/ColorsAndHighContrastMode.md b/accessible/docs/ColorsAndHighContrastMode.md index 30fd51d17c3035..236f4ed107cf34 100644 --- a/accessible/docs/ColorsAndHighContrastMode.md +++ b/accessible/docs/ColorsAndHighContrastMode.md @@ -36,7 +36,7 @@ System colors are colors queried from the operating system. They help Firefox ad Users on non-Windows platforms will see their selections in the colors dialog reflected automatically, but they will _not_ see OS changes until they check "Use system colors". -For a simplified flow chart of this decision tree, check out our [HCM Settings page](/https://firefox-source-docs.mozilla.org/accessible/HCMSettings.html) +For a simplified flow chart of this decision tree, check out our [HCM Settings page](https://firefox-source-docs.mozilla.org/accessible/HCMSettings.html) ## High Contrast Mode diff --git a/devtools/client/application/README.md b/devtools/client/application/README.md index c7abb926f302c8..7259eaee7a79db 100644 --- a/devtools/client/application/README.md +++ b/devtools/client/application/README.md @@ -37,7 +37,7 @@ The panel is registered along the rest of the Developer Tools panels, in `devtoo The panel uses the [fluent-react](https://github.com/projectfluent/fluent.js/wiki/React-Bindings) library. The localization file is located at `devtools/client/locales/en-US/application.ftl` and it follows [Fluent syntax](https://projectfluent.org/fluent/guide/). -You should read the [Fluent for Firefox developers](https://firefox-source-docs.mozilla.org/l10n/fluent/tutorial.html) and [Guidelines for Fluent Reviewers](https://firefox-source-docs.mozilla.org/intl/l10n/l10n/fluent_review.html) guides. +You should read the [Fluent for Firefox developers](https://firefox-source-docs.mozilla.org/l10n/fluent/tutorial.html) and [Guidelines for Fluent Reviewers](https://firefox-source-docs.mozilla.org/l10n/fluent/review.html) guides. #### Adding a new string diff --git a/mach b/mach index 5ea05fb643c0cb..141fc246fc640a 100755 --- a/mach +++ b/mach @@ -92,7 +92,7 @@ def main(args): print( dedent( """ - See https://firefox-source-docs.mozilla.org/setup/linux_build.html#installingpython + See https://firefox-source-docs.mozilla.org/setup/linux_build.html#install-python for guidance on how to install Python on your system. """ ).strip() diff --git a/mobile/android/focus-android/docs/Telemetry.md b/mobile/android/focus-android/docs/Telemetry.md index a6d202a93ec934..79ed93ab34334e 100644 --- a/mobile/android/focus-android/docs/Telemetry.md +++ b/mobile/android/focus-android/docs/Telemetry.md @@ -3,7 +3,7 @@ For clients that have "send anonymous usage data" enabled Focus sends a "core" p ## Core ping -Focus for Android creates and tries to send a "core" ping whenever the app goes to the background. This core ping uses the same format as Firefox for Android and is [documented on firefox-source-docs.mozilla.org](https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/data/core-ping.html). +Focus for Android creates and tries to send a "core" ping whenever the app goes to the background. This core ping uses the same format as Firefox for Android and is [documented on firefox-source-docs.mozilla.org](https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/obsolete/core-ping.html). ## Event ping diff --git a/python/mozbuild/mozbuild/config_status.py b/python/mozbuild/mozbuild/config_status.py index f99d0c5d3ba057..bd62d5ee6528e7 100644 --- a/python/mozbuild/mozbuild/config_status.py +++ b/python/mozbuild/mozbuild/config_status.py @@ -36,7 +36,7 @@ the top source directory in Android Studio directly and build using Gradle. See the documentation at -https://firefox-source-docs.mozilla.org/mobile/android/geckoview/contributor/geckoview-quick-start.html#build-using-android-studio +https://firefox-source-docs.mozilla.org/mobile/android/index.html#build-using-android-studio ============= """.strip() diff --git a/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh b/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh index ad8afba2cc6611..ff2de1e260ab75 100755 --- a/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh +++ b/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh @@ -471,7 +471,7 @@ function compare_remote_settings_files { # Helper for compare_remote_settings_files to download attachments from remote settings. # The format and location is documented at: -# https://firefox-source-docs.mozilla.org/services/common/services/RemoteSettings.html#packaging-attachments +# https://firefox-source-docs.mozilla.org/services/settings/index.html#services-packaging-attachments function update_remote_settings_attachment() { local bucket=$1 local collection=$2 diff --git a/testing/geckodriver/CHANGES.md b/testing/geckodriver/CHANGES.md index c94a70be6bddf6..d10494ada0226f 100644 --- a/testing/geckodriver/CHANGES.md +++ b/testing/geckodriver/CHANGES.md @@ -1858,7 +1858,7 @@ and greater. [README]: https://github.com/mozilla/geckodriver/blob/master/README.md [crash reports]: -[usage documentation]: +[usage documentation]: [Browser Toolbox]: https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox [WebDriver conformance]: https://wpt.fyi/results/webdriver/tests?label=experimental [`webSocketUrl`]: https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/webSocketUrl @@ -1869,8 +1869,8 @@ and greater. [Fission]: https://wiki.mozilla.org/Project_Fission [Capabilities]: https://firefox-source-docs.mozilla.org/testing/geckodriver/Capabilities.html [Flags]: https://firefox-source-docs.mozilla.org/testing/geckodriver/Flags.html -[`--allow-hosts`]: https://firefox-source-docs.mozilla.org/testing/geckodriver/Flags.html#code-allow-hosts-var-allow-hosts-var-code -[`--allow-origins`]: https://firefox-source-docs.mozilla.org/testing/geckodriver/Flags.html#code-allow-origins-var-allow-origins-var-code +[`--allow-hosts`]: https://firefox-source-docs.mozilla.org/testing/geckodriver/Flags.html#allow-hosts-allow-hosts +[`--allow-origins`]: https://firefox-source-docs.mozilla.org/testing/geckodriver/Flags.html#allow-origins-allow-origins [enable remote debugging on the Android device]: https://developers.google.com/web/tools/chrome-devtools/remote-debugging [macOS notarization]: https://firefox-source-docs.mozilla.org/testing/geckodriver/Notarization.html [Rust]: https://rustup.rs/ diff --git a/testing/geckodriver/README.md b/testing/geckodriver/README.md index 7d117e78bbe152..e6f1d05bf3cc60 100644 --- a/testing/geckodriver/README.md +++ b/testing/geckodriver/README.md @@ -46,7 +46,7 @@ For a detailed list of changes included in each release, please refer to the [ch * [geckodriver usage](https://firefox-source-docs.mozilla.org/testing/geckodriver/Usage.html) * [Supported platforms](https://firefox-source-docs.mozilla.org/testing/geckodriver/Support.html) * [Firefox capabilities](https://firefox-source-docs.mozilla.org/testing/geckodriver/Capabilities.html) - * [Capabilities example](https://firefox-source-docs.mozilla.org/testing/geckodriver/Capabilities.html#capabilities-example) + * [Capabilities example](https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions#example) * [Enabling trace logs](https://firefox-source-docs.mozilla.org/testing/geckodriver/TraceLogs.html) * [Analyzing crash data from Firefox](https://firefox-source-docs.mozilla.org/testing/geckodriver/CrashReports.html) diff --git a/testing/mozbase/mozgeckoprofiler/setup.py b/testing/mozbase/mozgeckoprofiler/setup.py index 0c7949cae9f160..041f8d1a7ac526 100644 --- a/testing/mozbase/mozgeckoprofiler/setup.py +++ b/testing/mozbase/mozgeckoprofiler/setup.py @@ -11,7 +11,7 @@ name=PACKAGE_NAME, version=PACKAGE_VERSION, description="Library to generate and view performance data in the Firefox Profiler", - long_description="see https://firefox-source-docs.mozilla.org/mozgeckoprofiler/index.html", + long_description="see https://firefox-source-docs.mozilla.org/mozbase/mozgeckoprofiler.html", classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", diff --git a/testing/perfdocs/generated/contributing.rst b/testing/perfdocs/generated/contributing.rst index d7e5395322156a..56cb5ba4ef91e0 100644 --- a/testing/perfdocs/generated/contributing.rst +++ b/testing/perfdocs/generated/contributing.rst @@ -37,6 +37,6 @@ Code formatting on Raptor ************************* As Raptor is a Mozilla project we follow the general Python coding style: -* https://firefox-source-docs.mozilla.org/tools/lint/coding-style/coding_style_python.html +* https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_python.html `black `_ is the tool used to reformat the Python code. diff --git a/testing/raptor/raptor/perfdocs/contributing.rst b/testing/raptor/raptor/perfdocs/contributing.rst index d7e5395322156a..56cb5ba4ef91e0 100644 --- a/testing/raptor/raptor/perfdocs/contributing.rst +++ b/testing/raptor/raptor/perfdocs/contributing.rst @@ -37,6 +37,6 @@ Code formatting on Raptor ************************* As Raptor is a Mozilla project we follow the general Python coding style: -* https://firefox-source-docs.mozilla.org/tools/lint/coding-style/coding_style_python.html +* https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_python.html `black `_ is the tool used to reformat the Python code. diff --git a/toolkit/components/glean/src/init/user_activity.rs b/toolkit/components/glean/src/init/user_activity.rs index ff952869aa5e5c..9582e1ec33ac25 100644 --- a/toolkit/components/glean/src/init/user_activity.rs +++ b/toolkit/components/glean/src/init/user_activity.rs @@ -27,7 +27,7 @@ pub(crate) struct UserActivityObserver { /// Listens to Firefox Desktop's `user-interaction-(in)active` topics, /// debouncing them before calling into the Glean SDK Client Activity API. /// See -/// [the docs](https://firefox-source-docs.mozilla.org/toolkit/components/glean/builtin_pings.html) +/// [the docs](https://firefox-source-docs.mozilla.org/toolkit/components/glean/dev/builtin_pings.html) /// for more info. #[allow(non_snake_case)] impl UserActivityObserver { diff --git a/toolkit/components/translations/docs/resources/03_bergamot.md b/toolkit/components/translations/docs/resources/03_bergamot.md index 2c49b48f9cb1b3..a4f81332c379d4 100644 --- a/toolkit/components/translations/docs/resources/03_bergamot.md +++ b/toolkit/components/translations/docs/resources/03_bergamot.md @@ -95,7 +95,7 @@ no issues. We can roll back the release if any unexpected issues are found. The plan for this release is available: -https://firefox-source-docs.mozilla.org/toolkit/components/translations/resources/03_bergamot.html#release +https://firefox-source-docs.mozilla.org/toolkit/components/translations/resources/03_bergamot.html#releasing Thank you, [NAME] @@ -112,7 +112,7 @@ found. We can roll back the release if any unexpected issues are found. The plan for this release is available: -https://firefox-source-docs.mozilla.org/toolkit/components/translations/resources/03_bergamot.html#release +https://firefox-source-docs.mozilla.org/toolkit/components/translations/resources/03_bergamot.html#releasing Thank you, [NAME] diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-eager-module-in-lazy-getter.js b/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-eager-module-in-lazy-getter.js index ad4b76a335a720..aa9158dd6e1237 100644 --- a/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-eager-module-in-lazy-getter.js +++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-eager-module-in-lazy-getter.js @@ -35,7 +35,7 @@ function checkEagerModule(context, node, resourceURI) { module.exports = { meta: { docs: { - url: "https://firefox-source-docs.mozilla.org/code-quality/lint/linters/eslint-plugin-mozilla/rules/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-eager-module-in-lazy-getter.html", + url: "https://firefox-source-docs.mozilla.org/code-quality/lint/linters/eslint-plugin-mozilla/rules/reject-eager-module-in-lazy-getter.html", }, messages: { eagerModule: diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-mixing-eager-and-lazy.js b/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-mixing-eager-and-lazy.js index 43603f5f7da602..422131d7a05263 100644 --- a/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-mixing-eager-and-lazy.js +++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-mixing-eager-and-lazy.js @@ -37,7 +37,7 @@ function checkMixed(loadedModules, context, node, type, resourceURI) { module.exports = { meta: { docs: { - url: "https://firefox-source-docs.mozilla.org/code-quality/lint/linters/eslint-plugin-mozilla/rules/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-mixed-eager-and-lazy.html", + url: "https://firefox-source-docs.mozilla.org/code-quality/lint/linters/eslint-plugin-mozilla/rules/reject-mixing-eager-and-lazy.html", }, messages: { mixedEagerAndLazy: