Closed Bug 1609873 Opened 6 years ago Closed 5 years ago

Make about:privatebrowsing an HTML page

Categories

(Firefox :: Private Browsing, task, P5)

task

Tracking

()

RESOLVED FIXED
Firefox 75
Tracking Status
firefox75 --- fixed

People

(Reporter: ntim, Assigned: jacquelinechan2, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

I don't think there's any dependency on this being an xhtml file, so this could be a good first bug, right, Tim?

Flags: needinfo?(ntim.bugs)

(In reply to Johann Hofmann [:johannh] from comment #1)

I don't think there's any dependency on this being an xhtml file, so this could be a good first bug, right, Tim?

There's no dependency on being an XHTML file, so yes :)

The steps to fix this bug would be:

EDIT: forgot one step:

  • In browser/components/about/AboutRedirector.cpp and browser/components/privatebrowsing/jar.mn, aboutPrivateBrowsing.xhtml needs to be replaced with aboutPrivateBrowsing.html
Flags: needinfo?(ntim.bugs)
Keywords: good-first-bug

Johann, is this something you'd like to mentor ?

Flags: needinfo?(jhofmann)

Sure, though you could, too, if you want to.

Mentor: jhofmann
Flags: needinfo?(jhofmann)
Priority: -- → P5

Hi, I'd like to tackle a first issue to help me get familiar with the code base and how to contribute to a project in general.
Can I be assigned to this new issue? If I have any questions can I come to you for help? I am a newbie :3

Hey, sorry for the delay, of course, please let me know if you have any questions!

Assignee: nobody → jacquelinechan2
Status: NEW → ASSIGNED

Hey, I was thinking I might be able to work on this bug, Jacqueline are you still working on it?

(In reply to jcadler from comment #7)

Hey, I was thinking I might be able to work on this bug, Jacqueline are you still working on it?

Yeah I am, I want to do this bug because it looked like a good first issue (and it'll be good because I'm new to this). I just got assigned to it.

Ok great, I'm new as well so just wanted to check. It looks very doable...good luck to you.

(In reply to jcadler from comment #9)

Ok great, I'm new as well so just wanted to check. It looks very doable...good luck to you.

There are some similar issues if you're interested: https://bugzilla.mozilla.org/buglist.cgi?bug_id=1609871%2C1609822%2C1609825%2C1609821%2C1609823%2C1609872

I'm happy to mentor any of them :)

Hi Johann, I checked out the files and I also know what I need to do to make the changes in the folders however I was wondering whether you can tell me what the process is to make the patch. I see this documentation here: https://moz-conduit.readthedocs.io/en/latest/walkthrough.html

But I am hesitant because they didn't mention any branching. So would I just make the changes on the default branch, and then just do the commit, and request a review via the command moz-phab ?

Yup, that sounds correct :)

When your patch has been reviewed on Phabricator, it will be automatically put into a separate "integration" branch. When tests are passing on that branch, your patch is again automatically merged into master ("central").

You should always base your commits on top of the latest central.

Let me know if anything is unclear still.

Hi Johann,

So I made all the bug changes and when I tested the look of the page, I found out that it breaks the styling (even though I did not touch any of css files, only the mention files above)

It looks like this: https://imgur.com/9bFq7gp

I tried to inspect it to further look for the bug but no luck.

Can you please give me a suggestion as to what you suspect the issue is?

(In reply to jacquelinechan2 from comment #13)

Hi Johann,

So I made all the bug changes and when I tested the look of the page, I found out that it breaks the styling (even though I did not touch any of css files, only the mention files above)

It looks like this: https://imgur.com/9bFq7gp

I tried to inspect it to further look for the bug but no luck.

Can you please give me a suggestion as to what you suspect the issue is?

Good catch! Sorry, I forgot that you also needed to correct some tags:

https://searchfox.org/mozilla-central/rev/2c16c5c5ea7e5a105f2ae56e03a6cbf0021d002d/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml#38

<a href="" id="open-search-options-link" data-l10n-name="link-options" />
needs to become <a href="" id="open-search-options-link" data-l10n-name="link-options"></a>

<div class="logo"/>, <div class="wordmark"/> and <div class="fake-caret"/> need the same adjustment as well.

This is because XHTML handles self-closing tags differently for non-replaced elements (eg. elements that can have children). Self-closing tags still work the same for <link> or <input> elements, because they're replaced and can't have children.

I made my patch request, lemme know if there's anything else to do :)

Pushed by jhofmann@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e01d0f2150c9 Make about:privatebrowsing an HTML page r=johannh

(In reply to jacquelinechan2 from comment #16)

I made my patch request, lemme know if there's anything else to do :)

You could tackle one of the bugs Tim listed in comment 10. Otherwise, how about bug 1578086 or bug 1583790?

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: