Closed Bug 2016933 Opened 1 month ago Closed 25 days ago

Profile delete page title should enclose profile name in quotes

Categories

(Toolkit :: Startup and Profile System, defect, P3)

defect

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: jhirsch, Assigned: jasub270, Mentored, NeedInfo)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(1 file, 1 obsolete file)

[Cloned from bug 2016932 - the difference is that this bug is about correcting the page title, shown in the tab, while the other bug focuses on the heading shown inside the page.]

For security reasons, we want to better separate parts of the UI that are user-generated from parts of the UI that belong to Firefox.

When a user has multiple profiles and clicks the "delete" button for one of them*, they are taken to the about:deleteprofile page. If the name of the profile is "My Profile", the page title of the about:deleteprofile page currently reads, Delete My Profile? but we want it to instead read Delete “My Profile”?, where the user-generated profile name is enclosed in quotes. Note we don't want to use the normal quote symbol ", but rather the unicode characters for open quote and close quote , because this distinction is important to our localization system.

To make this change, we'll need to update the string that renders the title of the delete page. We will also need to change the name of the string, because our localization system only exposes strings to our volunteer localizers when the string ID is new. (See the fluent tutorial for more details.)

To complete this task, you'll need to

  • Figure out where in the Firefox source code you can find the source for the about:deleteprofile page
  • Figure out the l10n-id of the page's title
  • Find the .ftl file containing that l10n-id
  • Update the string in the ftl file to enclose the { $profilename } variable in unicode open and close quotes, like “{ $profilename }”, then update the ID of that string to something different (just adding a -2 at the end of the ID is fine).
  • Finally, update the code that renders the delete page title to change that element's l10n-id attribute from the old ID to the new ID.

String changes aren't typically tested, so we'll likely skip that step here.

Mentor: jhirsch
Keywords: good-first-bug

Hi, can this be assigned to me as a first bug

Hey there! Thanks for your interest in contributing to Firefox. I'm happy to assign this bug to you. I'll add some more information from our good-first-bug template which I missed in the description. Start with these steps, and if you get stuck or need more guidance, you can needinfo me here (check the "Request information from" checkbox below the comment box and search for :jhirsch in the search box).

  1. Download and build the Firefox source code

  2. Start working on this bug.

    • A good first step is to get a local build running, create additional profiles, then go to the about:deleteprofile page. Enable the browser toolbox and be sure to toggle the mode to "Multiprocess (slower)". This will allow you to inspect both the browser UI and the contents of the about:deleteprofile page.
    • The bug description contains a list of bullet points which provide general guidance on things you'll need to figure out. I've deliberately left them a little bit vague to encourage you to explore the code and documentation :-) but please feel free to ask questions if you get stuck for more than half an hour or so.
    • https://searchfox.org is the recommended tool to search through the Firefox source code.
    • Note that, after you have built your changes with ./mach build, you'll need to run your build using ./mach run -n, not plain ./mach run, in order to use the multiple profiles feature.
    • Also, you can find me and my teammates in the Firefox Profile Management channel on Element/Matrix most hours of most days.
    • Finally, because this change simply changes a string, we won't add tests as part of this bug.
  3. Build your change with mach build and check your changes for adherence to our style guidelines by using mach lint.

  4. Submit the patch for review.
    Mark me as a reviewer so I'll get an email to come look at your code.

  5. After a series of reviews and changes to your patch,
    I'll mark it for checkin.
    Your code will soon be shipping to Firefox users worldwide!

  6. ...now you get to think about what kind of bug you'd like to work on next.
    Let me know what you're interested in and I can help you find your next contribution.

Flags: needinfo?(jasub270)

Whoops, forgot to actually assign the bug...

Assignee: nobody → jasub270
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P3

Thanks for assigning this bug to me! I've submitted my patch for review. For my next contribution I'm interested in simple JavaScript logic bugs — do you have any recommendations in the profiles area or elsewhere?

Flags: needinfo?(jasub270)

Hey Jocsan - I'm very sorry for the long delay in getting back to you. Your patch is approved, and I've queued it to land. It should land in Nightly in the next day or so. Congratulations! Thanks for contributing to Firefox :-)

For my next contribution I'm interested in simple JavaScript logic bugs — do you have any recommendations in the profiles area or elsewhere?

How about taking a look at the good-next-bugs on Codetribute--do any of these look interesting?

https://codetribute.mozilla.org/projects/firefox-frontend?tag%3Dgood-next-bug

Flags: needinfo?(jasub270)
Attachment #9547381 - Attachment is obsolete: true
Pushed by jhirsch@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/188a76dfbe97 https://hg.mozilla.org/integration/autoland/rev/1f2f36f62693 Use typographical quotes around profile name in delete profile page title r=fluent-reviewers,profiles-reviewers,bolsson,mossop
Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: