Closed Bug 1959305 Opened 2 months ago Closed 2 months ago

When Parental Controls Service is disabled, DNS Over HTTPS settings fail to work with uncaught exception

Categories

(Core :: Networking: DNS, defect, P2)

Firefox 128
defect

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: dan, Assigned: dan)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged][necko-priority-new][tor 43544])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0

Steps to reproduce:

  • Built firefox with parental controls disabled (tor-browser, base-browser, mullvad-browser).
  • navigated to settings / privacy and security
  • changed the Enabled DNS over HTTPS to "Max Protection"

Actual results:

  • observed the info pane above that it stayed as "learn more"
  • observed error in terminal JavaScript error: chrome://browser/content/preferences/privacy.js, line 761: TypeError: lazy.gParentalControlsService is undefined

Expected results:

  • info pane changes and shows as "Active" and lists a "provider"
  • no error in console or browser terminal

From: Sarah Jamie Lewis <sarah@openprivacy.ca>
Date: Fri, 28 Feb 2025 09:30:45 -0800
Subject: [PATCH 1/1] DoH Settings: Check for nulll gParentalControlsService

When the parental controls service is disabled in a build, the DoH
settings now display the correct stauts when Increased or Max Protection
is enabled.

Previously, selecting either of these options would cause DoH to be
enabled, but the "Status" and "Provider" fields would not be properly
populated, due to a check on the gParentalControlsService causing an
error.

This check is now identical to the same check in DownloadIntegration.sys.mjs

Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: ma1 <giorgio@maone.net>

Assignee: nobody → dan
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

The Bugbug bot thinks this bug should belong to the 'Core::Networking: DNS' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Networking: DNS
Product: Firefox → Core
Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged][necko-priority-new]
Whiteboard: [necko-triaged][necko-priority-new] → [necko-triaged][necko-priority-new][tor 43544]
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/7c6dff2dd98c DoH pane undefined error in Privacy and Security when ParentalControlsServices disabled. r=settings-reviewers,Gijs
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: