Closed Bug 1925981 Opened 2 years ago Closed 1 year ago

Mailto handler setting shows mixed language and includes "Pick an application" as an app name

Categories

(Firefox :: Settings UI, defect, P3)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: lamalbrut, Unassigned)

Details

Attachments

(3 files, 1 obsolete file)

Hello. A source string for Firefox locales containing an expression incorrectly defined for being queried from the Windows system locale file instead of the Firefox locale file

Steps to reproduce

  1. Set current Windows system locale to non-English or non-English derivative.
  2. Set current Firefox locale to English or a derivative of it.
  3. In Firefox | in the about:preferences page, inspect assigned action for content type mailto; see attachment firefox_v.133_UI_content_type_mailto.action.png.

So, in step 2., e.g. for en_GB, a correctly configured source string would have thus been expressed as "Use Pick an application (default)".

Can you provide a screenshot of the actual dropdown? On my system I can only see Use (name of the app) (default), so I'm surprised to see Pick an application in there, independently of the language.

What do you see with the OS set to English, if that's something you can test?

https://searchfox.org/mozilla-central/source/browser/locales/en-US/browser/preferences/preferences.ftl#411-419

Please attach to the bug the raw content of your about:support:

  • Type about:support in the address bar, press enter.
  • Click Copy raw data to clipboard.
  • Come back to this bug, click the Attach new file button above your first comment.
  • Paste the content from your clipboard, add a description and hit Submit at the bottom.
Flags: needinfo?(lamalbrut)
Component: Untriaged → Shell Integration
Summary: Mix of Windows system and Firefox locales involved in source string → Mailto handler setting shows mixed language and include "Pick default" as an app
Flags: needinfo?(lamalbrut)
Attachment #9432497 - Attachment is obsolete: true
Summary: Mailto handler setting shows mixed language and include "Pick default" as an app → Mailto handler setting shows mixed language and includes "Pick an application" as an app name

Fairly confident that we don't own this interface.

Component: Shell Integration → Settings UI

(In reply to Robin Steuber (she/her) [:bytesized] from comment #5)

Fairly confident that we don't own this interface.

I assume the problem would be starting in nsILocalHandlerApp? All bugs for that file are either here or in File Handling.

I'm a little confused. It seems like the blame for the code you just linked to mostly leads to Bug 1365133 and Bug 1581383, both of which are in this component.

I linked to the code used for the dropdown (which would be Settings material).

        document.l10n.setAttributes(
          defaultMenuItem,
          "applications-use-app-default",
          {
            "app-name": handlerInfo.defaultDescription,
          }
        );

But where does handlerInfo.defaultDescription come from? That feels like Shell Integration territory.

With that said, I don't mind where the bug ends, as long as someone familiar with the code can take a look.

Tried to trace this back but things got murky pretty quickly. My best guess is that the value is coming from here, which seems to be the file handling component. Maybe it belongs there? I'm not entirely sure.

Severity: -- → S3
Priority: -- → P3

NI :mpohle, just verifying this wouldn't have been impacted by your work.

Flags: needinfo?(mpohle)

Thanks for sharing, I will keep this on my radar.

  • I see no way how my changes could have let to this, because I have not changed the field where this string comes from.
  • I tried to reproduce the problem with a German locale, but I could not reproduce it.

However, I think the string is dynamic and takes the form of Use { $app-name } (default). So I wonder how that looks in the Windows settings for you? To find that out you can use:

  • [Windows key]-r to open the run dialog, enter ms-settings:defaultapps in the text field and click on Ok
  • Scroll way down and click on "Choose default apps by link type"
  • Search for mailto
Flags: needinfo?(mpohle) → needinfo?(lamalbrut)

A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.

For more information, please visit BugBot documentation.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Flags: needinfo?(lamalbrut)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: